Skip to content

Commit 2e0f53f

Browse files
committed
chore: add .eslintrc.js
1 parent fe0f489 commit 2e0f53f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.eslintrc.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
module.exports = {
2+
'env': {
3+
'browser': true,
4+
'es2021': true,
5+
'jest': true,
6+
},
7+
'extends': [
8+
'google',
9+
],
10+
'parserOptions': {
11+
'ecmaVersion': 12,
12+
},
13+
'plugins': [
14+
'no-floating-promise',
15+
],
16+
'root': true,
17+
'rules': {
18+
'dot-notation': ['error', {'allowKeywords': true }],
19+
'max-len': 'off',
20+
'new-cap': 'warn',
21+
'no-floating-promise/no-floating-promise': 'error',
22+
'no-reserved-keys': 'off',
23+
'no-unused-vars': 'warn',
24+
'no-wrap-func': 'off',
25+
'require-jsdoc': 'warn',
26+
'space-after-keywords': 'off',
27+
'space-return-throw-case': 'off',
28+
'spaced-line-comment': 'off',
29+
},
30+
};

0 commit comments

Comments
 (0)