36 lines
847 B
JavaScript
36 lines
847 B
JavaScript
module.exports = {
|
|
plugins: ['lodash'],
|
|
extends: ['eslint:recommended'],
|
|
ignorePatterns: ['lib'],
|
|
env: {
|
|
node: true,
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['**/*.ts'],
|
|
plugins: ['@typescript-eslint'],
|
|
extends: ['plugin:@typescript-eslint/recommended'],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
tsconfigRootDir: __dirname,
|
|
project: ['./tsconfig.json'],
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-extra-semi': 'off',
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'warn',
|
|
{
|
|
argsIgnorePattern: '^_',
|
|
varsIgnorePattern: '^_',
|
|
caughtErrorsIgnorePattern: '^_',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
],
|
|
rules: {
|
|
'lodash/import-scope': [2, 'member'],
|
|
},
|
|
}
|