-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
56 lines (52 loc) · 1.53 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
module.exports = {
plugins: ['filenames'],
extends: [
'eslint:recommended',
'airbnb-base',
'plugin:import/recommended',
'plugin:eslint-comments/recommended',
'plugin:anti-trojan-source/recommended'
],
parserOptions: {
ecmaVersion: 2020
},
rules: {
'no-console': 'error',
'comma-dangle': ['error', 'never'],
'object-curly-spacing': ['error', 'never'],
'object-curly-newline': [
'error',
{
ObjectExpression: {
multiline: true,
consistent: true
},
ObjectPattern: {
multiline: true,
consistent: true
},
ImportDeclaration: {
multiline: true,
consistent: true,
minProperties: 0
}
}
],
'filenames/match-regex': ['error', '^[a-z0-9\\-\\.]+$'],
'arrow-parens': ['error', 'as-needed'],
yoda: ['error', 'always'],
'no-multi-spaces': ['error', {ignoreEOLComments: true}],
'max-len': ['error', 120],
'one-var': ['error', {uninitialized: 'always', initialized: 'never'}],
'one-var-declaration-per-line': ['error', 'initializations'],
'global-require': 'off',
'import/prefer-default-export': 'off',
'import/extensions': ['error', 'ignorePackages'],
'no-unused-vars': ['error', {ignoreRestSiblings: true}],
'no-restricted-exports': ['error', {restrictedNamedExports: ['then']}]
},
overrides: [{
files: ['example.js', 'rollup.config.js'],
rules: {'import/no-extraneous-dependencies': ['error', {devDependencies: true}]}
}]
};