1 | {
|
2 | "globals": {
|
3 | "expect": true,
|
4 | "sinon": true,
|
5 | "describe": true,
|
6 | "chai": true,
|
7 | "it": true
|
8 | },
|
9 | "ecmaFeatures": {
|
10 | "arrowFunctions": true,
|
11 | "binaryLiterals": true,
|
12 | "blockBindings": true,
|
13 | "defaultParams": true,
|
14 | "forOf": true,
|
15 | "generators": true,
|
16 | "globalReturn": true,
|
17 | "jsx": true,
|
18 | "modules": true,
|
19 | "objectLiteralComputedProperties": true,
|
20 | "objectLiteralDuplicateProperties": true,
|
21 | "objectLiteralShorthandMethods": true,
|
22 | "objectLiteralShorthandProperties": true,
|
23 | "octalLiterals": true,
|
24 | "regexUFlag": true,
|
25 | "regexYFlag": true,
|
26 | "superInFunctions": true,
|
27 | "templateStrings": true,
|
28 | "unicodeCodePointEscapes": true
|
29 | },
|
30 | "env": {
|
31 | "amd": true,
|
32 | "browser": true,
|
33 | "es6": true,
|
34 | "mocha": true,
|
35 | "node": true
|
36 | },
|
37 | "plugins": [
|
38 | "nodeca",
|
39 | "react"
|
40 | ],
|
41 | "rules": {
|
42 | "array-bracket-spacing": [2, "always"],
|
43 | "brace-style": [
|
44 | 2,
|
45 | "1tbs",
|
46 | { "allowSingleLine": false }
|
47 | ],
|
48 | "camelcase": 2,
|
49 | "comma-dangle": [2, "always-multiline"],
|
50 | "complexity": [1, 5],
|
51 | "computed-property-spacing": [2, "never"],
|
52 | "consistent-this": [2, "self"],
|
53 | "consistent-return": 2,
|
54 | "curly": [2, "all"],
|
55 | "dot-notation": 0,
|
56 | "eqeqeq": [2, "allow-null"],
|
57 | "guard-for-in": 2,
|
58 | "indent": [2, 2],
|
59 | "key-spacing": [2, {
|
60 | "beforeColon": false,
|
61 | "afterColon": true
|
62 | }],
|
63 | "max-depth": [2, 3],
|
64 | "max-len": [2, 120],
|
65 | "max-params": [2, 5],
|
66 | "max-statements": [2, 50],
|
67 | "new-cap": 2,
|
68 | "no-bitwise": 2,
|
69 | "no-caller": 2,
|
70 | "no-empty": 2,
|
71 | "no-extend-native": 2,
|
72 | "no-floating-decimal": 2,
|
73 | "no-lone-blocks": 2,
|
74 | "no-loop-func": 2,
|
75 | "no-mixed-spaces-and-tabs": 2,
|
76 | "no-multi-str": 2,
|
77 | "no-native-reassign": 2,
|
78 | "no-new": 2,
|
79 | "no-new-wrappers": 2,
|
80 | "no-redeclare": 2,
|
81 | "no-trailing-spaces": 2,
|
82 | "no-unused-vars": [2, {"vars": "all", "args": "after-used"}],
|
83 | "no-undef": 2,
|
84 | "no-underscore-dangle": 0,
|
85 | "no-use-before-define": 2,
|
86 | "nodeca/no-lodash-aliases": 2,
|
87 | "object-curly-spacing": [2, "always"],
|
88 | "quotes": [2, "single"],
|
89 | "react/display-name": 1,
|
90 | "react/jsx-boolean-value": 1,
|
91 | "react/jsx-quotes": 1,
|
92 | "react/jsx-no-undef": 2,
|
93 | "react/jsx-sort-props": 1,
|
94 | "react/jsx-sort-prop-types": 1,
|
95 | "react/jsx-uses-react": 1,
|
96 | "react/jsx-uses-vars": 1,
|
97 | "react/no-did-mount-set-state": 1,
|
98 | "react/no-did-update-set-state": 1,
|
99 | "react/no-multi-comp": 1,
|
100 | "react/no-unknown-property": 1,
|
101 | "react/prop-types": 1,
|
102 | "react/react-in-jsx-scope": 1,
|
103 | "react/self-closing-comp": 1,
|
104 | "react/wrap-multilines": 1,
|
105 | "semi": [2, "never"],
|
106 | "semi-spacing": 2,
|
107 | "strict": 2,
|
108 | "space-after-keywords": [2, "always"],
|
109 | "space-before-function-paren": [
|
110 | 2,
|
111 | {
|
112 | "anonymous": "always",
|
113 | "named": "never"
|
114 | }
|
115 | ],
|
116 | "space-in-parens": [2, "never"],
|
117 | "space-infix-ops": 2,
|
118 | "space-unary-ops": 2,
|
119 | "valid-jsdoc": [
|
120 | 2,
|
121 | {
|
122 | "prefer": {
|
123 | "virtual": "abstract",
|
124 | "extends": "augments",
|
125 | "constructor": "class",
|
126 | "const": "constant",
|
127 | "defaultvalue": "default",
|
128 | "desc": "description",
|
129 | "host": "external",
|
130 | "fileoverview": "file",
|
131 | "overview": "file",
|
132 | "emits": "fires",
|
133 | "func": "function",
|
134 | "method": "function",
|
135 | "var": "member",
|
136 | "arg": "param",
|
137 | "argument": "param",
|
138 | "return": "returns",
|
139 | "exception": "throws"
|
140 | },
|
141 | "requireReturn": false
|
142 | }
|
143 | ],
|
144 | "wrap-iife": [2, "outside"]
|
145 | },
|
146 | "settings": {
|
147 | "ecmascript": 6,
|
148 | "jsx": true
|
149 | }
|
150 | }
|