2021-03-25 21:24:46 +03:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2021-10-08 01:44:43 +03:00
|
|
|
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
|
2021-03-25 21:24:46 +03:00
|
|
|
overrides: [
|
|
|
|
{
|
2021-10-08 01:44:43 +03:00
|
|
|
files: ['**/*.js'],
|
2021-03-25 21:24:46 +03:00
|
|
|
env: {
|
|
|
|
es6: true,
|
2022-10-09 23:52:44 +03:00
|
|
|
node: true,
|
2021-03-25 21:24:46 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
2021-10-08 01:44:43 +03:00
|
|
|
files: ['**/*.ts'],
|
2021-03-25 21:24:46 +03:00
|
|
|
parser: '@typescript-eslint/parser',
|
2021-10-08 01:44:43 +03:00
|
|
|
plugins: ['@typescript-eslint'],
|
|
|
|
extends: ['plugin:@typescript-eslint/recommended'],
|
2021-03-25 21:24:46 +03:00
|
|
|
rules: {
|
|
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
|
|
'@typescript-eslint/no-empty-function': 'off',
|
|
|
|
'@typescript-eslint/no-empty-interface': 'off',
|
|
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
|
|
'@typescript-eslint/no-this-alias': 'off',
|
|
|
|
'@typescript-eslint/no-unused-vars': 'off',
|
|
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
|
|
'no-case-declarations': 'off',
|
|
|
|
'no-constant-condition': 'off',
|
|
|
|
'no-empty': 'off',
|
|
|
|
'no-ex-assign': 'off',
|
|
|
|
'no-inner-declarations': 'off',
|
|
|
|
'no-useless-catch': 'off',
|
|
|
|
'prefer-const': 'off',
|
|
|
|
'prefer-rest-params': 'off',
|
|
|
|
'prefer-spread': 'off',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|