-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
61 lines (61 loc) · 1.99 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
module.exports = {
parser: 'babel-eslint',
extends: ['airbnb-base'],
parserOptions: {
ecmaVersion: 11,
},
plugins: ['html', 'simple-import-sort', 'babel'],
rules: {
'babel/no-unused-expressions': 'error',
'array-callback-return': 'off',
'class-methods-use-this': 'off',
'consistent-return': 'off',
'dot-notation': 'off',
'eol-last': ['error', 'always'],
'func-names': 'off',
'import/extensions': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'off',
'import/order': 'off',
'import/prefer-default-export': 'off',
'lines-between-class-members': 'off',
'max-len': ['error', { code: 120 }],
'no-alert': 'off',
'no-await-in-loop': 'off',
'no-bitwise': 'off',
'no-console': 'off',
'no-continue': 'off',
'no-nested-ternary': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'no-restricted-globals': 'off',
'no-restricted-syntax': 'off',
'no-return-assign': 'off',
'no-shadow': 'off',
'no-undef': 'off',
'no-underscore-dangle': 'off',
'no-unused-expressions': 'off',
'no-use-before-define': 'off',
'object-curly-newline': 'off',
'operator-linebreak': ['error', 'before'],
'prefer-const': 'warn',
'require-await': 'error',
'require-yield': 'error',
'simple-import-sort/sort': [
'error',
{
groups: [
['^\\u0000'],
['^react', '^next', '^\\w'],
['^@?\\w'],
['^[^.]'],
['^\\.'],
],
},
],
'sort-imports': 'off',
indent: ['error', 4, { SwitchCase: 1, ignoredNodes: ['TemplateLiteral *'] }],
quotes: ['error', 'single', { allowTemplateLiterals: true }],
semi: ['error', 'always'],
},
};