2024-04-29 18:54:32 +03:00
|
|
|
module.exports = {
|
2024-11-01 03:30:14 +03:00
|
|
|
env: {
|
|
|
|
es2021: true,
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
'prettier',
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:@typescript-eslint/recommended',
|
|
|
|
'plugin:import/recommended',
|
|
|
|
'plugin:import/typescript',
|
|
|
|
'plugin:prettier/recommended',
|
2024-04-29 18:54:32 +03:00
|
|
|
],
|
2024-11-01 03:30:14 +03:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
files: ['.eslintrc.{js,cjs}'],
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'script',
|
|
|
|
},
|
|
|
|
},
|
2024-04-29 18:54:32 +03:00
|
|
|
],
|
2024-11-01 03:30:14 +03:00
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 'latest',
|
|
|
|
sourceType: 'module',
|
|
|
|
},
|
|
|
|
plugins: ['@typescript-eslint', 'prettier'],
|
|
|
|
rules: {
|
|
|
|
'prettier/prettier': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
tabWidth: 4,
|
|
|
|
printWidth: 120,
|
|
|
|
singleQuote: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
'import/order': ['error'],
|
|
|
|
'@typescript-eslint/no-unused-vars': ['warn'],
|
|
|
|
'@typescript-eslint/no-unused-expressions': ['off'],
|
|
|
|
},
|
|
|
|
};
|