Skip to content

Commit 42db179

Browse files
committed
Adding .eslintrc.js
2 parents e274ac7 + 936847a commit 42db179

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.eslintrc.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
commonjs: true,
5+
es6: true,
6+
node: true
7+
},
8+
extends: 'eslint:recommended',
9+
parserOptions: {
10+
ecmaVersion: 2018,
11+
sourceType: 'script'
12+
},
13+
rules: {
14+
'indent': ['error', 2],
15+
'linebreak-style': ['error', 'unix'],
16+
'quotes': ['error', 'single'],
17+
'semi': ['error', 'always'],
18+
'no-unused-vars': ['error', { 'args': 'none' }],
19+
'no-console': 'off',
20+
'no-useless-escape': 'off',
21+
'no-prototype-builtins': 'off',
22+
'no-control-regex': 'off',
23+
'no-empty': 'off',
24+
'no-unsafe-finally': 'off'
25+
},
26+
globals: {
27+
'WebSocket': 'readonly',
28+
'globalThis': 'readonly'
29+
}
30+
};

0 commit comments

Comments
 (0)