Skip to content

Commit

Permalink
update react extends
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhxx committed Feb 25, 2022
1 parent 28f4b7a commit 6a9fb09
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eslint-config-proste",
"description": "preset eslint config",
"version": "2.5.2",
"version": "2.6.0",
"repository": "https://github.com/xyhxx/proste-eslint-config.git",
"author": "xyh <[email protected]>",
"license": "MIT",
Expand Down
7 changes: 4 additions & 3 deletions reactJS.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
module.exports = {
"extends": [
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"./base-js.js",
"./base-react.js",
"./base-import.js",
"./base-env.js"
"./base-env.js",
],
}
};
11 changes: 6 additions & 5 deletions reactTS.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
module.exports = {
"parserOptions": {
"parser": "@typescript-eslint/parser",
parserOptions: {
parser: "@typescript-eslint/parser",
},
"extends": [
extends: [
"eslint:recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:react/recommended",
"./base-js.js",
"./base-ts.js",
"./base-react.js",
"./base-import.js",
"./base-env.js"
"./base-env.js",
],
}
};

0 comments on commit 6a9fb09

Please sign in to comment.