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 7, 2023
1 parent 0e673eb commit f52cd72
Show file tree
Hide file tree
Showing 3 changed files with 2,603 additions and 140 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'
]
};
Loading

0 comments on commit f52cd72

Please sign in to comment.