This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
60 lines (57 loc) · 1.57 KB
/
index.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
49
50
51
52
53
54
55
56
57
58
59
/**
* Конфигурация eslint для Webpractik
*/
'use strict';
module.exports = {
"extends": ["eslint:recommended", "plugin:react/recommended", "google"],
"env": {
"browser": true,
"jquery": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"parser": "babel-eslint",
"rules": {
"indent": ["error", 4],
"no-var": "off",
"no-invalid-this": "off",
"no-duplicate-imports": "warn",
"require-jsdoc": "off",
"camelcase": "off",
"eqeqeq": ["warn", "always"],
"max-len": [1, {
"code": 120,
"tabWidth": 4,
"ignoreUrls": true,
"ignorePattern": "goog\\.(module|require)"
}],
"lines-between-class-members": ["error", "always", {
"exceptAfterSingleLine": false
}],
"yoda": "error",
"comma-dangle": ["error", "never"],
"block-scoped-var": "error",
"no-empty-pattern": "error",
"no-inner-declarations": "error",
"use-isnan": "error",
"no-dupe-class-members": "error",
"no-unused-vars": ["error", { "vars": "local" }],
"no-magic-numbers": ["warn", {
"ignoreArrayIndexes": true,
"ignore": [-1, 0, 1, 2]
}],
"no-use-before-define": "error",
"padded-blocks": "off",
"arrow-parens": "off",
"no-trailing-spaces": "off"
},
"globals": {
"BX": true
}
};