2022-05-22 07:35:43 +00:00
|
|
|
module.exports = {
|
2022-05-22 08:36:05 +00:00
|
|
|
plugins: ['lodash'],
|
2022-05-22 07:35:43 +00:00
|
|
|
extends: ['eslint:recommended'],
|
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['**/*.ts'],
|
|
|
|
plugins: ['@typescript-eslint'],
|
2022-05-26 00:12:36 +00:00
|
|
|
extends: ['plugin:@typescript-eslint/recommended'],
|
2022-05-22 07:35:43 +00:00
|
|
|
parser: '@typescript-eslint/parser',
|
2022-05-26 00:12:36 +00:00
|
|
|
parserOptions: {
|
|
|
|
tsconfigRootDir: __dirname,
|
|
|
|
project: ['./tsconfig.json'],
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
|
|
},
|
2022-05-22 07:35:43 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
rules: {
|
2022-05-26 21:37:51 +00:00
|
|
|
'no-extra-semi': 'off',
|
2022-05-22 07:35:43 +00:00
|
|
|
'no-constant-condition': ['error', { checkLoops: false }],
|
2022-05-22 08:36:05 +00:00
|
|
|
'lodash/import-scope': [2, 'member'],
|
2022-05-22 07:35:43 +00:00
|
|
|
},
|
|
|
|
}
|