2 Commits
1.1.0 ... 1.1.2

Author SHA1 Message Date
dc26326eab fix tseslint configuration
All checks were successful
Build ESLint Config and Release / build-and-release (push) Successful in 3s
2026-01-03 20:51:42 +01:00
0077ffb3c9 type checking for ts files only
All checks were successful
Build ESLint Config and Release / build-and-release (push) Successful in 3s
2026-01-03 20:42:34 +01:00
2 changed files with 16 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@sebastianbrenner/eslint-config", "name": "@sebastianbrenner/eslint-config",
"version": "1.1.0", "version": "1.1.2",
"type": "module", "type": "module",
"main": "./index.js", "main": "./index.js",
"scripts": { "scripts": {

View File

@@ -7,11 +7,14 @@ import importPlugin from "eslint-plugin-import";
import unusedImports from "eslint-plugin-unused-imports"; import unusedImports from "eslint-plugin-unused-imports";
export default [ export default [
/* Core ESLint recommended rules */ /* Base JS rules (all files) */
js.configs.recommended, js.configs.recommended,
/* TypeScript (flat, type-checked) */ /* TypeScript typed, scoped, flat-config correct */
...tseslint.configs.recommendedTypeChecked, ...tseslint.configs.recommendedTypeChecked.map(config => ({
...config,
files: ["**/*.ts", "**/*.tsx"],
})),
/* React */ /* React */
react.configs.flat.recommended, react.configs.flat.recommended,
@@ -43,4 +46,13 @@ export default [
], ],
}, },
}, },
/* React version detection */
{
settings: {
react: {
version: "detect",
},
},
},
]; ];