1 | module.exports = {
|
2 | "env": {
|
3 | "browser": true,
|
4 | "commonjs": true,
|
5 | "es6": true,
|
6 | "jest": true,
|
7 | "node": true
|
8 | },
|
9 | "globals": {
|
10 | "jQuery": true,
|
11 | "requirejs": true,
|
12 | "require": true,
|
13 | "$": true,
|
14 | "define": true,
|
15 | "s": true,
|
16 | "Bonsai": true
|
17 | },
|
18 | "parserOptions": {
|
19 | "ecmaVersion": 6,
|
20 |
|
21 | "ecmaFeatures": {
|
22 | "generators": true,
|
23 | "experimentalObjectRestSpread": true,
|
24 | "jsx": true
|
25 | },
|
26 | "sourceType": "module"
|
27 | },
|
28 | "plugins": [
|
29 | "react"
|
30 | ],
|
31 | "rules": {
|
32 | "indent": ["error", 4, { "SwitchCase": 1 }],
|
33 | "linebreak-style": ["error","unix"],
|
34 | "quotes": ["error","double", { "allowTemplateLiterals": true }],
|
35 | "semi": ["error","always"],
|
36 | "curly": "error",
|
37 | "dot-notation": "off",
|
38 | "eqeqeq": ["error", "allow-null"],
|
39 | "no-caller": "error",
|
40 | "new-cap": "warn",
|
41 | "no-cond-assign": ["error", "always"],
|
42 | "no-eq-null": "error",
|
43 | "no-undef": "error",
|
44 | "no-use-before-define": ["error", "nofunc"],
|
45 | "wrap-iife": ["error","any"]
|
46 | },
|
47 | "target": {
|
48 | "src": [
|
49 | "*/js/*.js*"
|
50 | ]
|
51 | }
|
52 | };
|