generated from materya/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
53 lines (52 loc) · 1.39 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
module.exports = {
env: {
browser: true,
node: true,
commonjs: true,
es6: true,
},
extends: [
'airbnb-base',
'plugin:import/errors',
'plugin:import/warnings',
],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
},
plugins: [
'import',
],
root: true,
rules: {
'array-element-newline': ['error', 'consistent'],
'arrow-parens': ['error', 'as-needed', { requireForBlockBody: false }],
camelcase: ['off', { ignoreDestructuring: true }],
'eol-last': ['error', 'always'],
'max-len': ['error', {
code: 79,
comments: 79,
tabWidth: 2,
ignoreComments: true,
ignoreUrls: true,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
}],
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'no-unused-expressions': ['off', { allowShortCircuit: true }],
'no-unused-vars': ['error', {
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
}],
'object-curly-newline': ['error', {
ObjectExpression: { consistent: true },
}],
semi: ['error', 'never'],
'semi-style': ['error', 'first'],
'space-before-function-paren': ['error', 'always'],
// plugin:import
'import/extensions': 'off',
'import/no-cycle': 'off',
},
}