Skip to content

Commit

Permalink
Removing Babel & Updating ESLint rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
dreadera committed Jun 4, 2021
1 parent f259f22 commit 815ffe3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 25 deletions.
23 changes: 17 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,32 +1,43 @@
{
"plugins": [
"babel"
"react",
"@typescript-eslint"
],
"parser": "babel-eslint",
"parser": "@typescript-eslint/parser",
"rules": {

// stops the 'React' was used before it was defined no-use-before-define error for .js files.
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],

"react/prop-types": 1,
"react/jsx-handler-names": "off",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",

"comma-dangle": [2, {
"arrays": "always-multiline",
"exports": "always-multiline",
"functions": "never",
"imports": "always-multiline",
"objects": "always-multiline"
}],

"space-before-function-paren": [2, {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"react/jsx-handler-names": "off",

"jsx-quotes": [2, "prefer-double"],
"no-var": 2,

"babel/no-invalid-this": 1,
"babel/semi": [2, "never"],
"react/prop-types": 1,
"semi": [2, "never"],
"lines-between-class-members": "off"
},

"extends": ["standard", "standard-react"],

"env": {
"browser": true,
"jest": true,
Expand Down
19 changes: 0 additions & 19 deletions babel.config.js

This file was deleted.

0 comments on commit 815ffe3

Please sign in to comment.