Skip to content

Commit 2357c95

Browse files
authored
added new eslint rules for @/ (#12)
1 parent 0983d34 commit 2357c95

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

.eslintrc.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
module.exports = {
2-
extends: ['@calblueprint/eslint-config-react'],
2+
extends: [
3+
'@calblueprint/eslint-config-react',
4+
'plugin:@typescript-eslint/recommended',
5+
],
36
rules: {
47
// Add any custom rules here
58
// Disable the rule that requires React to be in scope -- we don't need this with React 18
69
'react/react-in-jsx-scope': 'off',
710
'react/jsx-uses-react': 'off',
811
},
12+
settings: {
13+
'import/resolver': {
14+
typescript: {}
15+
}
16+
},
17+
plugins: [
18+
'@typescript-eslint',
19+
'import'
20+
]
921
};

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@types/react-dom": "18.2.7",
2020
"dotenv": "^16.3.1",
2121
"eslint-config-next": "13.5.2",
22+
"eslint-import-resolver-typescript": "^3.6.1",
2223
"next": "13.5.2",
2324
"react": "18.2.0",
2425
"react-dom": "18.2.0",

0 commit comments

Comments
 (0)