-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
45 lines (45 loc) · 1.34 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
38
39
40
41
42
43
44
45
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
node: true
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json'
},
plugins: ['@typescript-eslint', 'eslint-plugin-import-helpers'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended'
],
ignorePatterns: ['webpack.config.js','**/*.config.js', '.eslintrc.js'],
rules: {
'import-helpers/order-imports': [
'error', {
newlinesBetween: 'never',
groups: [
'absolute',
'module',
['parent', 'sibling', 'index'],
'/^@shared/',
],
alphabetize: { order: 'asc', ignoreCase: true },
},
],
'no-prototype-builtins': 0,
'no-extra-boolean-cast': 'off',
'@typescript-eslint/array-type': ['error', { default: 'array' }],
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/member-ordering': 'error',
'@typescript-eslint/method-signature-style': ['error', 'method'],
'@typescript-eslint/no-confusing-void-expression': 'error',
'@typescript-eslint/no-duplicate-imports': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/type-annotation-spacing': 'error',
}
}