Add new code new version
[sdc.git] / openecomp-ui / .eslintrc
1 {
2   "parser": "babel-eslint",
3   "env": {
4     "es6": true,
5     "jquery": true,
6     "node": true,
7     "mocha": true
8   },
9   "plugins": [
10     "react",
11     "import"
12   ],
13   "ecmaFeatures": {
14     "jsx": true,
15     "classes": true,
16     "modules": true
17   },
18   "globals": {
19     "Event": true,
20     "window": true,
21     "navigator": true,
22     "System": true,
23     "document": true,
24     "localStorage": true,
25     "sessionStorage": true,
26     "Image": true,
27     "requestAnimationFrame": true,
28     "cancelAnimationFrame": true,
29     "DEBUG": true,
30     "SVGElement": true,
31     "FormData": true,
32     "DEV": true,
33     "Blob": true,
34     "XMLHttpRequest": true,
35     "URL": true,
36     "PunchOutRegistry": true,
37     "it": true,
38     "describe": true
39   },
40   "rules": {
41     "linebreak-style": 0,
42     "no-unused-vars": 2,
43     "no-bitwise": 0,
44     "no-eq-null": 2,
45     "eqeqeq": 2,
46     "wrap-iife": [
47       2,
48       "any"
49     ],
50     "no-unused-expressions": 2,
51     "indent": [
52       1,
53       "tab",
54       {
55         "SwitchCase": 1
56       }
57     ],
58     "no-use-before-define": 2,
59     "new-cap": [
60       2,
61       {
62         "capIsNewExceptions": [
63           "DataTable",
64           "V"
65         ]
66       }
67     ],
68     "no-caller": 2,
69     "no-empty": 2,
70     "no-undef": 2,
71     "quotes": [
72       2,
73       "single",
74       "avoid-escape"
75     ],
76     "jsx-quotes": [
77       2,
78       "prefer-single"
79     ],
80     "no-plusplus": 0,
81     "no-cond-assign": [
82       2,
83       "except-parens"
84     ],
85     "comma-style": [
86       2,
87       "last"
88     ],
89     "no-invalid-this": 0,
90     "dot-notation": 0,
91     "max-len": [
92       1,
93       200
94     ],
95     "camelcase": [
96       2,
97       {
98         "properties": "never"
99       }
100     ],
101     "curly": 2,
102     "brace-style": 0,
103     "semi": [
104       2,
105       "always"
106     ],
107     "space-in-brackets": [
108       0,
109       "never"
110     ],
111     "space-infix-ops": 2,
112     "import/default": 0,
113     "import/no-unresolved": 0,
114     "import/no-named-as-default": 2,
115     "import/no-duplicates": 0,
116     "import/imports-first": 2,
117     "import/export": 2,
118     "react/display-name": 0,
119     "react/forbid-prop-types": 0,
120     "react/jsx-boolean-value": 0,
121     "react/jsx-closing-bracket-location": [
122       1,
123       {
124         "nonEmpty": "after-props",
125         "selfClosing": "after-props"
126       }
127     ],
128     "react/jsx-curly-spacing": 0,
129     "react/jsx-indent-props": [
130       1,
131       "tab"
132     ],
133     "react/jsx-max-props-per-line": 0,
134     "react/jsx-no-duplicate-props": 1,
135     "react/jsx-no-literals": 0,
136     "react/jsx-no-undef": 1,
137     "react/jsx-sort-prop-types": 0,
138     "react/jsx-sort-props": 0,
139     "react/jsx-uses-react": 1,
140     "react/jsx-uses-vars": 1,
141     "react/no-danger": 1,
142     "react/no-did-mount-set-state": 2,
143     "react/no-did-update-set-state": 2,
144     "react/no-direct-mutation-state": 1,
145     "react/no-multi-comp": 0,
146     "react/no-set-state": 0,
147     "react/no-unknown-property": 1,
148     "react/prop-types": 0,
149     "react/react-in-jsx-scope": 1,
150     "react/require-extension": 1,
151     "react/self-closing-comp": 1,
152     "react/sort-comp": 0,
153     "react/wrap-multilines": 1
154   }
155 }