Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| dc26326eab | |||
| 0077ffb3c9 |
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@sebastianbrenner/eslint-config",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.2",
|
||||
"type": "module",
|
||||
"main": "./index.js",
|
||||
"scripts": {
|
||||
|
||||
18
src/index.js
18
src/index.js
@@ -7,11 +7,14 @@ import importPlugin from "eslint-plugin-import";
|
||||
import unusedImports from "eslint-plugin-unused-imports";
|
||||
|
||||
export default [
|
||||
/* Core ESLint recommended rules */
|
||||
/* Base JS rules (all files) */
|
||||
js.configs.recommended,
|
||||
|
||||
/* TypeScript (flat, type-checked) */
|
||||
...tseslint.configs.recommendedTypeChecked,
|
||||
/* TypeScript – typed, scoped, flat-config correct */
|
||||
...tseslint.configs.recommendedTypeChecked.map(config => ({
|
||||
...config,
|
||||
files: ["**/*.ts", "**/*.tsx"],
|
||||
})),
|
||||
|
||||
/* React */
|
||||
react.configs.flat.recommended,
|
||||
@@ -43,4 +46,13 @@ export default [
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
/* React version detection */
|
||||
{
|
||||
settings: {
|
||||
react: {
|
||||
version: "detect",
|
||||
},
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user