Skip to content

Commit 4a63c7d

Browse files
committed
fix: Fix eslint/ts configs
1 parent c6122ce commit 4a63c7d

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

.eslintrc.js

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,7 @@ module.exports = {
44
es6: true
55
},
66
extends: [
7-
'@codingame', 'standard-jsx'
8-
],
9-
parserOptions: {
10-
ecmaFeatures: {
11-
jsx: true
12-
}
13-
},
14-
plugins: [
15-
'react',
16-
'react-hooks'
17-
],
18-
rules: {
19-
'react-hooks/exhaustive-deps': 'error',
20-
'react-hooks/rules-of-hooks': 'error'
21-
}
7+
'@codingame/eslint-config',
8+
'@codingame/eslint-config-react'
9+
]
2210
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"build": "npm run lint && npm run compile",
77
"compile": "tsc",
8-
"lint": "eslint --ext .ts src"
8+
"lint": "eslint --ext .ts --ext .tsx src"
99
},
1010
"repository": {
1111
"type": "git",

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"outDir": "dist/",
55
"declaration": true,
66
"skipLibCheck": true,
7-
"baseUrl": "./app",
7+
"baseUrl": "./src",
88
"jsx": "react",
99
"lib": [
1010
"dom",
@@ -17,7 +17,6 @@
1717
"*"
1818
]
1919
},
20-
"resolveJsonModule": true,
2120
"sourceMap": true,
2221
"target": "ES2022"
2322
},

0 commit comments

Comments
 (0)