-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint-base.js
More file actions
55 lines (51 loc) · 1.29 KB
/
eslint-base.js
File metadata and controls
55 lines (51 loc) · 1.29 KB
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
46
47
48
49
50
51
52
53
54
55
module.exports = {
extends: ['airbnb-base', 'prettier'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
requireConfigFile: false
},
plugins: ['jest', 'prettier', '@typescript-eslint'],
env: {
node: true,
'jest/globals': true
},
rules: {
// Enforce syntax, but warn
'arrow-body-style': 'warn',
'arrow-parens': 'warn',
'lines-between-class-members': 'warn',
'max-len': 'warn',
'no-extra-semi': 'warn',
'prefer-destructuring': 'warn',
'prettier/prettier': 'warn',
'class-methods-use-this': 'warn',
'default-param-last': 'warn',
camelcase: 'warn',
radix: 'warn',
// Disabled rules
'comma-dangle': 'off', // @TODO to reconsider
'max-classes-per-file': 'off',
'operator-linebreak': 'off',
'import/prefer-default-export': 'off', // we prefer named exports
'import/no-useless-path-segments': 'off',
// Disable - coliding with prettier
'implicit-arrow-linebreak': 'off',
// do not require dependencies on story files
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true
}
],
'import/extensions': [
'error',
{
ts: 'never',
tsx: 'never',
json: 'always'
}
]
}
};