-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
75 lines (75 loc) · 1.74 KB
/
.eslintrc
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"env": {
"browser": true,
"es6": true,
"jasmine": true
},
"plugins": [
"jasmine",
"react",
"vue",
"jsx-a11y",
"security"
],
"parserOptions": {
"parser": "babel-eslint",
"sourceType": "module",
"allowImportExportEverywhere": false,
"codeFrame": false,
"ecmaFeatures": {
"jsx": true
}
},
"globals": {
"inject": true,
"react": true,
"vue": true,
"module": true,
"process": true,
"global": true
},
"extends": [
"plugin:jest/recommended",
"eslint:recommended",
"plugin:react/all",
"plugin:vue/strongly-recommended",
"plugin:security/recommended"
],
"rules": {
"vue/html-indent": 0,
"vue/html-self-closing": ["error", {
"html": {
"void": "always",
"normal": "always",
"component": "always"
},
"svg": "always",
"math": "always"
}],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"sort-imports": [0, {
"ignoreCase": false,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
}],
"react/prefer-stateless-function": [0, { "ignorePureComponents": true }],
"react/jsx-indent": [2, "tab"],
"react/jsx-indent-props": [2, "tab"],
"react/no-set-state": [0],
"react/jsx-max-depth": [2, { "max": 3 }],
"react/no-unknown-property": [2, { "ignore": [ "fill-rule", "clip-rule" ] }],
"react/no-multi-comp": [2, { "ignoreStateless": true }],
"react/require-optimization": [0, {}],
"react/no-danger": [0, {}],
"react/jsx-fragments": [1, "element"],
"react/jsx-no-useless-fragment": [0],
"react/jsx-props-no-spreading": 0,
"react/prop-types": [2, { "ignore": [ "getDataFindAll", "docs", "loading", "getDataFindByTag" ] }]
},
"settings": {
"react": {
"pragma": "React",
"version": "16.10.2"
}
}
}