Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 98e16522c3 | |||
| 8222bfb350 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@sebastianbrenner/eslint-config",
|
"name": "@sebastianbrenner/eslint-config",
|
||||||
"version": "1.1.2",
|
"version": "1.2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
16
src/index.js
16
src/index.js
@@ -14,6 +14,12 @@ export default [
|
|||||||
...tseslint.configs.recommendedTypeChecked.map(config => ({
|
...tseslint.configs.recommendedTypeChecked.map(config => ({
|
||||||
...config,
|
...config,
|
||||||
files: ["**/*.ts", "**/*.tsx"],
|
files: ["**/*.ts", "**/*.tsx"],
|
||||||
|
languageOptions: {
|
||||||
|
...config.languageOptions,
|
||||||
|
parserOptions: {
|
||||||
|
projectService: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
})),
|
})),
|
||||||
|
|
||||||
/* React */
|
/* React */
|
||||||
@@ -53,6 +59,16 @@ export default [
|
|||||||
react: {
|
react: {
|
||||||
version: "detect",
|
version: "detect",
|
||||||
},
|
},
|
||||||
|
"import/resolver": {
|
||||||
|
typescript: {
|
||||||
|
project : "./tsconfig.json",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"import/resolver": {
|
||||||
|
"node": {
|
||||||
|
"extensions": [".js", ".jsx", ".ts", ".tsx"]
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user