-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
36 lines (36 loc) · 1.01 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
module.exports = {
extends: ['alloy', 'alloy/typescript'],
plugins: ['simple-import-sort'],
env: {
// Your environments (which contains several predefined global variables)
//
// browser: true,
// node: true,
// mocha: true,
// jest: true,
// jquery: true
},
globals: {
// Your global variables (setting to false means it's not allowed to be reassigned)
//
// myGlobal: false
},
rules: {
// Customize your rules
// '@typescript-eslint/explicit-member-accessibility': 'off'
// Disable para limit
'max-params': 0,
complexity: ['error', 50],
'no-warning-comments': [1, { terms: ['todo', 'fixme', 'to-do'], location: 'anywhere' }],
'max-depth': ['error', 8],
'@typescript-eslint/consistent-type-definitions': 'off',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'no-unused-vars': 'error',
'prefer-const': 'error',
'no-irregular-whitespace': 'error',
'no-empty-function': 'error',
'no-duplicate-imports': 'error',
'newline-after-var': 'error'
}
};