-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
42 lines (42 loc) · 986 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
32
33
34
35
36
37
38
39
40
41
42
module.exports = {
env: {
browser: true,
es6: true,
},
extends: ['airbnb-base', 'prettier'],
plugins: ['prettier', 'import-helpers'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
radix: 0,
eqeqeq: 0,
camelcase: 0,
'prettier/prettier': 'error',
'class-methods-use-this': 0,
'no-underscore-dangle': 0,
'no-param-reassign': 0,
'no-console': 0,
'global-require': 0,
'consistent-return': 0,
'func-names': 0,
'no-unused-expressions': 0,
'no-const-assign': 0,
'no-plusplus': 0,
'linebreak-style': 0,
'no-unused-vars': ['error', { argsIgnorePattern: 'next' }],
'import-helpers/order-imports': [
'warn',
{
newlinesBetween: 'always',
groups: ['module', ['parent', 'sibling', 'index']],
alphabetize: { order: 'asc', ignoreCase: true },
},
],
},
};