Skip to content

Commit

Permalink
Create React config
Browse files Browse the repository at this point in the history
  • Loading branch information
au2001 committed Jan 26, 2024
1 parent 427cd86 commit 497d3a2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ module.exports = {
"plugin:prettier/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: true,
},
root: true,
rules: {
"@typescript-eslint/consistent-type-exports": "error",
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"url": "git+https://github.com/avicenne-studio/eslint-config.git"
},
"files": [
"index.js"
"index.js",
"react.js"
],
"keywords": [
"eslint",
Expand Down
7 changes: 7 additions & 0 deletions react.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
extends: [
"@avicenne-studio",
"plugin:react/recommended",
"plugin:prettier/recommended",
],
};

0 comments on commit 497d3a2

Please sign in to comment.