-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
31 lines (31 loc) · 878 Bytes
/
.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
module.exports = {
extends: ['airbnb-base', 'prettier'],
env: {
browser: false,
es6: true,
node: true
},
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module'
},
plugins: ['prettier', 'import'],
root: true,
rules: {
'arrow-body-style': ['error', 'always'],
'array-callback-return': ['warn'],
'class-methods-use-this': ['error'],
'comma-dangle': ['error', 'never'],
'func-names': ['error', 'never'],
'linebreak-style': ['error', 'unix'],
'no-underscore-dangle': ['error', { allow: ['_original'] }],
'no-unneeded-ternary': ['error'],
'no-unused-vars': ['error', { args: 'none' }],
'object-curly-spacing': ['error', 'always'],
'prefer-destructuring': ['error'],
'prefer-object-spread': ['error'],
'prettier/prettier': ['error'],
'require-await': ['warn'],
'sort-keys': 'off'
}
};