forked from code-dot-org/code-dot-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
48 lines (48 loc) · 1.29 KB
/
.eslintrc.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
// This is the primary JavaScript linting rules for the entire
// project. In a few places, some of these rules are extended
// or overridden for a particular subset of the project. See
// other .eslintrc.js files for those rules.
module.exports = {
"extends": "eslint:recommended",
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true,
"ecmaVersion": 6
}
},
"rules": {
"array-bracket-spacing": ["error", "never"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"comma-dangle": "off",
"curly": "error",
"dot-location": ["error", "property"],
"eol-last": "error",
"keyword-spacing": "error",
"no-array-constructor": "error",
"no-console": "off",
"no-empty": "off",
"no-eval": "error",
"no-extra-boolean-cast": "off",
"no-implicit-globals": "error",
"no-new-object": "error",
"no-trailing-spaces": "error",
"no-undef": "error",
"no-unused-vars": "off",
"no-with": "error",
"object-curly-spacing": "off",
"semi": "error",
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never"
}],
"eqeqeq": "error"
}
};