Skip to content

Commit 5ae2561

Browse files
committed
⬆️ Deprecating tslint in favor of eslint
1 parent e78e127 commit 5ae2561

File tree

5 files changed

+2376
-336
lines changed

5 files changed

+2376
-336
lines changed

Diff for: .eslintrc

+28-132
Original file line numberDiff line numberDiff line change
@@ -1,135 +1,31 @@
11
{
2-
"extends": [
3-
"airbnb",
4-
"prettier",
5-
"prettier/react"
2+
"extends": ["airbnb-typescript-prettier"],
3+
"parserOptions": {
4+
"project": "./tsconfig.json"
5+
},
6+
"env": {
7+
"jest": true
8+
},
9+
"rules": {
10+
"import/no-extraneous-dependencies": [
11+
"error",
12+
{
13+
"devDependencies": true
14+
}
615
],
7-
"parser": "babel-eslint",
8-
"parserOptions": {
9-
"ecmaVersion": 2018,
10-
"ecmaFeatures": {
11-
"impliedStrict": true,
12-
"classes": true
13-
}
14-
},
15-
"env": {
16-
"browser": true,
17-
"node": true,
18-
"jquery": true,
19-
"jest": true
20-
},
21-
"rules": {
22-
"no-debugger": 0,
23-
"no-alert": 0,
24-
"no-await-in-loop": 0,
25-
"no-return-assign": [
26-
"error",
27-
"except-parens"
28-
],
29-
"no-restricted-syntax": [
30-
2,
31-
"ForInStatement",
32-
"LabeledStatement",
33-
"WithStatement"
34-
],
35-
"no-unused-vars": [
36-
1,
37-
{
38-
"ignoreSiblings": true,
39-
"argsIgnorePattern": "res|next|^err"
40-
}
41-
],
42-
"prefer-const": [
43-
"error",
44-
{
45-
"destructuring": "all"
46-
}
47-
],
48-
"arrow-body-style": [
49-
2,
50-
"as-needed"
51-
],
52-
"no-unused-expressions": [
53-
2,
54-
{
55-
"allowTaggedTemplates": true
56-
}
57-
],
58-
"no-param-reassign": [
59-
2,
60-
{
61-
"props": false
62-
}
63-
],
64-
"no-console": 0,
65-
"import/prefer-default-export": 0,
66-
"import": 0,
67-
"func-names": 0,
68-
"space-before-function-paren": 0,
69-
"comma-dangle": 0,
70-
"max-len": 0,
71-
"import/extensions": 0,
72-
"no-underscore-dangle": 0,
73-
"consistent-return": 0,
74-
"react/display-name": 1,
75-
"react/no-array-index-key": 0,
76-
"react/react-in-jsx-scope": 0,
77-
"react/prefer-stateless-function": 0,
78-
"react/forbid-prop-types": 0,
79-
"react/no-unescaped-entities": 0,
80-
"jsx-a11y/accessible-emoji": 0,
81-
"react/require-default-props": 0,
82-
"react/jsx-filename-extension": [
83-
1,
84-
{
85-
"extensions": [
86-
".js",
87-
".jsx"
88-
]
89-
}
90-
],
91-
"radix": 0,
92-
"no-shadow": [
93-
2,
94-
{
95-
"hoist": "all",
96-
"allow": [
97-
"resolve",
98-
"reject",
99-
"done",
100-
"next",
101-
"err",
102-
"error"
103-
]
104-
}
105-
],
106-
"quotes": [
107-
2,
108-
"single",
109-
{
110-
"avoidEscape": true,
111-
"allowTemplateLiterals": true
112-
}
113-
],
114-
"prettier/prettier": [
115-
"error",
116-
{
117-
"trailingComma": "es5",
118-
"singleQuote": true,
119-
"printWidth": 80
120-
}
121-
],
122-
"jsx-a11y/href-no-hash": "off",
123-
"jsx-a11y/anchor-is-valid": [
124-
"warn",
125-
{
126-
"aspects": [
127-
"invalidHref"
128-
]
129-
}
130-
]
131-
},
132-
"plugins": [
133-
"prettier"
16+
"react/jsx-props-no-spreading": [
17+
"error",
18+
{
19+
"custom": "ignore"
20+
}
21+
],
22+
"@typescript-eslint/no-non-null-assertion": "off",
23+
"@typescript-eslint/no-explicit-any": "off",
24+
"@typescript-eslint/interface-name-prefix": [
25+
"error",
26+
{
27+
"prefixWithI": "always"
28+
}
13429
]
135-
}
30+
}
31+
}

0 commit comments

Comments
 (0)