forked from ivdiaz/web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
98 lines (98 loc) · 2.72 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/@typescript-eslint",
"airbnb",
"airbnb-base",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["@typescript-eslint", "prettier"],
"settings": {
"import/extensions": [".js", ".jsx", ".ts", ".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
},
"propWrapperFunctions": [
// The names of any function used to wrap propTypes, e.g. `forbidExtraProps`. If this isn't set, any propTypes wrapped in a function will be skipped.
"forbidExtraProps",
{
"property": "freeze",
"object": "Object"
},
{
"property": "myFavoriteWrapper"
}
],
"linkComponents": [
// Components used as alternatives to <a> for linking, eg. <Link to={ url } />
"Hyperlink",
{
"name": "Link",
"linkAttribute": "to"
}
]
},
"rules": {
//Checked by Typescript - ts(2378)
"getter-return": "off",
// Checked by Typescript - ts(2300)
"no-dupe-args": "off",
// Checked by Typescript - ts(1117)
"no-dupe-keys": "off",
// Checked by Typescript - ts(7027)
"no-unreachable": "off",
// Checked by Typescript - ts(2367)
"valid-typeof": "off",
// Checked by Typescript - ts(2588)
"no-const-assign": "off",
// Checked by Typescript - ts(2588)
"no-new-symbol": "off",
// Checked by Typescript - ts(2376)
"no-this-before-super": "off",
// This is checked by Typescript using the option `strictNullChecks`.
"no-undef": "off",
// This is already checked by Typescript.
"no-dupe-class-members": "off",
// This is already checked by Typescript.
"no-redeclare": "off",
"semi": ["error", "always"],
"quotes": ["error", "single"],
"@typescript-eslint/rule-name": "error",
"@typescript-eslint/restrict-plus-operands": "error",
"prettier/prettier": [
"error",
{
// Overrides eslint (using prettier)
"singleQuote": true
}
],
"@typescript-eslint/explicit-function-return-type": 0,
"no-restricted-imports": "off",
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"]
}
}