Skip to content
This repository was archived by the owner on Jan 27, 2025. It is now read-only.

Commit 815ffe3

Browse files
committed
Removing Babel & Updating ESLint rules.
1 parent f259f22 commit 815ffe3

File tree

2 files changed

+17
-25
lines changed

2 files changed

+17
-25
lines changed

Diff for: .eslintrc

+17-6
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,43 @@
11
{
22
"plugins": [
3-
"babel"
3+
"react",
4+
"@typescript-eslint"
45
],
5-
"parser": "babel-eslint",
6+
"parser": "@typescript-eslint/parser",
67
"rules": {
8+
9+
// stops the 'React' was used before it was defined no-use-before-define error for .js files.
10+
"no-use-before-define": "off",
11+
"@typescript-eslint/no-use-before-define": ["error"],
12+
13+
"react/prop-types": 1,
14+
"react/jsx-handler-names": "off",
15+
"react/jsx-uses-react": "error",
16+
"react/jsx-uses-vars": "error",
17+
718
"comma-dangle": [2, {
819
"arrays": "always-multiline",
920
"exports": "always-multiline",
1021
"functions": "never",
1122
"imports": "always-multiline",
1223
"objects": "always-multiline"
1324
}],
25+
1426
"space-before-function-paren": [2, {
1527
"anonymous": "never",
1628
"named": "never",
1729
"asyncArrow": "always"
1830
}],
19-
"react/jsx-handler-names": "off",
31+
2032
"jsx-quotes": [2, "prefer-double"],
2133
"no-var": 2,
2234

23-
"babel/no-invalid-this": 1,
24-
"babel/semi": [2, "never"],
25-
"react/prop-types": 1,
2635
"semi": [2, "never"],
2736
"lines-between-class-members": "off"
2837
},
38+
2939
"extends": ["standard", "standard-react"],
40+
3041
"env": {
3142
"browser": true,
3243
"jest": true,

Diff for: babel.config.js

-19
This file was deleted.

0 commit comments

Comments
 (0)