-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
44 lines (41 loc) · 1.27 KB
/
index.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
module.exports = {
extends: [
'eslint-config-xo',
'plugin:unicorn/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
],
plugins: [
'unicorn',
'import',
'no-autofix',
],
rules: {
// Personal Rules
'camelcase': ['error'],
'func-style': ['error', 'expression'],
'no-shadow': ['error', {builtinGlobals: true, hoist: 'all'}],
// XO overrides
'padding-line-between-statements': 'off',
'no-warning-comments': 'off',
'capitalized-comments': 'off',
'no-await-in-loop': 'off',
// Unicorn Rules Overrides
'unicorn/no-for-loop': 'off',
'unicorn/no-array-for-each': 'off',
'unicorn/filename-case': 'off',
'unicorn/prevent-abbreviations': 'off',
'unicorn/prefer-ternary': 'off',
'unicorn/prefer-switch': 'off',
// Warn about prefer-const, but don't autofix it
'prefer-const': 'off',
'no-autofix/prefer-const': 'warn',
},
// TODO this doesn't seem necessary anymore, but the docs recommend it
// Check up in a few months and see if it's still strictly necessary
settings: {
'import/resolver': {
typescript: true,
},
},
}