-
Notifications
You must be signed in to change notification settings - Fork 21
/
.eslintrc.js
38 lines (34 loc) · 1.12 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
module.exports = {
plugins: ['@typescript-eslint', 'import', 'prefer-arrow', 'prettier', 'simple-import-sort', 'unicorn', 'promise'],
extends: [
'eslint:recommended',
'airbnb-base',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:prettier/recommended',
'plugin:promise/recommended',
],
parserOptions: {
project: 'tsconfig.json',
ecmaVersion: 2023,
sourceType: 'module',
},
rules: {
'import/extensions': 'off',
'import/prefer-default-export': 'off',
'prefer-destructuring': 'off',
'no-return-await': 'off',
'dot-notation': 'off',
radix: 'off',
camelcase: ['error', { properties: 'never', ignoreDestructuring: true }],
'no-console': 'error',
'@typescript-eslint/no-shadow': 'error',
'no-shadow': 'off',
'@typescript-eslint/no-unused-vars': ['error', { varsIgnorePattern: '^_', argsIgnorePattern: '^_' }],
'no-unused-vars': 'off',
},
};