Skip to content

Commit

Permalink
🧹 eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xurei committed Oct 23, 2024
1 parent d7b9b36 commit ec0a6f0
Show file tree
Hide file tree
Showing 12 changed files with 189 additions and 115 deletions.
1 change: 0 additions & 1 deletion .babelrc.main
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"corejs": 3,
"proposals": true
}],
"@babel/plugin-syntax-dynamic-import",
["@babel/plugin-proposal-decorators", {
"legacy": true
}],
Expand Down
1 change: 0 additions & 1 deletion .babelrc.web
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"corejs": 3,
"proposals": true
}],
"@babel/plugin-syntax-dynamic-import",
["@babel/plugin-proposal-decorators", {
"legacy": true
}],
Expand Down
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/test/*
/dist/*
/lab/*

.eslintrc.js
27 changes: 17 additions & 10 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
const fs= require('fs');
const babelOptions = JSON.parse(`${fs.readFileSync('./.babelrc.main')}`);

module.exports = {
"extends": "xurei/react",
"parser": "babel-eslint",

"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"babelOptions": babelOptions,
},

"plugins": [
"promise",
"jsx",
Expand All @@ -21,14 +34,6 @@ module.exports = {
"es6": true
},

"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"rules": {
"no-alert": "warn",
"no-eval": "error",
Expand Down Expand Up @@ -69,6 +74,8 @@ module.exports = {

"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",

"react-native/no-inline-styles": 0,

"no-class-assign": 0,

Expand Down
Loading

0 comments on commit ec0a6f0

Please sign in to comment.