47f10301c8
* Set common package.json sideEffects: false * Configure SWC to modularize lodash imports * Import specific lodash functions instead of _ * Add an eslint rule to avoid full lodash import
24 lines
497 B
JavaScript
24 lines
497 B
JavaScript
module.exports = {
|
|
plugins: ['lodash'],
|
|
extends: ['eslint:recommended'],
|
|
ignorePatterns: ['lib'],
|
|
env: {
|
|
node: true,
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['**/*.ts'],
|
|
plugins: ['@typescript-eslint'],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
project: ['./tsconfig.json'],
|
|
},
|
|
},
|
|
],
|
|
rules: {
|
|
'no-unused-vars': 'off',
|
|
'no-constant-condition': ['error', { checkLoops: false }],
|
|
'lodash/import-scope': [2, 'member'],
|
|
},
|
|
}
|