-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
40 lines (40 loc) · 1020 Bytes
/
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
module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
},
"extends": ["eslint:recommended", "plugin:prettier/recommended", "prettier"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
'prettier/prettier': [
'warn',
{
printWidth: 100,
singleQuote: true,
trailingComma: 'es5',
semi: false,
},
],
'arrow-parens': [2],
'no-console': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'consistent-return': 'off',
'default-case': 'off',
'no-unused-expressions': ['warn', { allowShortCircuit: true }],
'no-use-before-define': ['error', { functions: false, classes: true, variables: true }],
'no-warning-comments': 1,
'prefer-destructuring': 'off',
'import/no-dynamic-require': 'off',
'global-require': 'off',
'semi': ['error', 'never'],
}
}