This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 199
/
.eslintrc
111 lines (111 loc) · 3.54 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"extends": ["airbnb", "prettier"],
"parser": "babel-eslint",
"plugins": ["react"],
"globals": {
"proxyFetch": true
},
"env": {
"browser": true,
"es6": true,
"node": true
},
"rules": {
"comma-dangle": ["error", "never"],
"quotes": [2, "single"],
"eol-last": 2,
"no-debugger": 1,
"no-mixed-requires": 0,
"no-underscore-dangle": 0,
"no-multi-spaces": 0,
"no-trailing-spaces": 0,
"no-extra-boolean-cast": 0,
"no-undef": 2,
"no-unused-vars": 2,
"no-var": 2,
"no-param-reassign": 0,
"no-else-return": 0,
"no-console": 0,
"prefer-const": 2,
"new-cap": 0,
"camelcase": 2,
"semi": [2, "never"],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"react/prop-types": 0,
"react/sort-comp": 0,
"react/destructuring-assignment": 0,
"react/forbid-prop-types": 0,
"react/static-property-placement": 0,
"react/jsx-filename-extension": 0,
"react/state-in-constructor": 0,
"react/no-deprecated": 0,
"react/no-access-state-in-setstate": 0,
"react/jsx-closing-tag-location": 0,
"react/self-closing-comp": 0,
"react/default-props-match-prop-types": 0,
"react/jsx-max-props-per-line": 0,
"react/no-array-index-key": 0,
"react/no-unused-prop-types": 0,
"react/jsx-curly-newline": 0,
"react/jsx-wrap-multilines": 0,
"react/require-default-props": 0,
"react/jsx-props-no-spreading": 0,
"react/button-has-type": 0,
"react/no-unused-state": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-indent": 0,
"react/no-unescaped-entities": 0,
"react/jsx-no-target-blank": 0,
"react/jsx-curly-brace-presence": 0,
"jsx-a11y/label-has-associated-control": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-noninteractive-element-interactions": 0,
"jsx-a11y/alt-text": 0,
"prefer-object-spread": 0,
"prefer-destructuring": 0,
"no-useless-return": 0,
"class-methods-use-this": 0,
"no-lonely-if": 0,
"spaced-comment": 0,
"no-duplicate-imports": 0,
"no-prototype-builtins": 0,
"no-restricted-globals": 0,
"no-plusplus": 0,
"no-undef-init": 0,
"no-await-in-loop": 0,
"lines-between-class-members": 0,
"max-classes-per-file": 0,
"import/no-named-as-default": 0,
"import/prefer-default-export": 0,
"import/no-duplicates": 2,
"import/order": 0,
"import/first": 0,
"import/newline-after-import": 0,
"import/no-cycle": 0,
"no-useless-escape": 0
},
"settings": {
"react": {
"createClass": "createReactClass", // Regex for Component Factory to use, default to "createReactClass"
"pragma": "React", // Pragma to use, default to "React"
"version": "16.11" // React version, default to the latest React stable release
},
"import/resolver": {
"babel-module": {
"alias": {
"@components": "./app/js/components",
"@styled": "./app/js/components/styled",
"@blockstack/ui": "./app/js/components/ui",
"@ui/components": "./app/js/components/ui/components",
"@ui/containers": "./app/js/components/ui/containers",
"@ui/common": "./app/js/components/ui/common",
"log4js": "./app/js/logger.js"
}
}
},
"propWrapperFunctions": ["forbidExtraProps"] // The names of any functions used to wrap the propTypes object, such as `forbidExtraProps`. If this isn't set, any propTypes wrapped in a function will be skipped.
}
}