forked from 0beqz/realism-effects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
56 lines (55 loc) · 1.49 KB
/
.eslintrc.json
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
// eslint-disable-next-line no-undef
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": ["google"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"require-jsdoc": "off",
"no-undef": "error",
"indent": ["error", "tab"],
"no-tabs": "off",
"no-trailing-spaces": "error",
"linebreak-style": "off",
"quotes": ["error", "double"],
"space-infix-ops": ["error"],
"no-multi-spaces": ["error"],
"no-multiple-empty-lines": ["error", { "max": 1, "maxEOF": 1 }],
"no-var": "error",
"prefer-const": "error",
"no-else-return": "error",
"no-unneeded-ternary": "error",
"no-nested-ternary": "error",
"no-underscore-dangle": "off",
"no-use-before-define": "off",
"no-unused-expressions": "off",
"no-prototype-builtins": "off",
"no-restricted-syntax": "off",
"padded-blocks": "off",
"comma-dangle": ["error", "never"],
"semi": [2, "never"],
"no-unused-vars": "warn", // warn about unused variables instead of error
"no-console": "warn", // warn about console.log statements instead of error
"no-dupe-keys": "error",
"arrow-parens": ["error", "as-needed"],
"object-curly-spacing": ["error", "always"],
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"max-len": [
"error",
{
"code": 120,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
],
"eol-last": ["error", "always"],
"curly": ["error", "multi-line"]
}
}