Skip to content

Commit

Permalink
added new eslint rules for @/
Browse files Browse the repository at this point in the history
  • Loading branch information
jinkang-0 committed Oct 14, 2023
1 parent 0983d34 commit 7f95619
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
14 changes: 13 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
module.exports = {
extends: ['@calblueprint/eslint-config-react'],
extends: [
'@calblueprint/eslint-config-react',
'plugin:@typescript-eslint/recommended',
],
rules: {
// Add any custom rules here
// Disable the rule that requires React to be in scope -- we don't need this with React 18
'react/react-in-jsx-scope': 'off',
'react/jsx-uses-react': 'off',
},
settings: {
'import/resolver': {
typescript: {}
}
},
plugins: [
'@typescript-eslint',
'import'
]
};
7 changes: 4 additions & 3 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@types/react-dom": "18.2.7",
"dotenv": "^16.3.1",
"eslint-config-next": "13.5.2",
"eslint-import-resolver-typescript": "^3.6.1",
"next": "13.5.2",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down

0 comments on commit 7f95619

Please sign in to comment.