forked from stacks-archive/blockstack-browser
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc
More file actions
66 lines (66 loc) · 2 KB
/
.eslintrc
File metadata and controls
66 lines (66 loc) · 2 KB
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
{
"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": 2,
"react/sort-comp": 0,
"no-duplicate-imports": 0,
"import/no-duplicates": 2,
"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.4", // React version, default to the latest React stable release
"flowVersion": "0.53" // Flow version
},
"import/resolver": {
"babel-module": {
"alias": {
"@components": "./app/js/components",
"@common": "./app/js/common",
"@styled": "./app/js/components/styled",
"@utils": "./app/js/utils",
"@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.
}
}