4 Commits
1.1.0 ... 1.2.0

Author SHA1 Message Date
98e16522c3 add settings
All checks were successful
Build ESLint Config and Release / build-and-release (push) Successful in 3s
2026-01-03 21:07:41 +01:00
8222bfb350 add project service config
All checks were successful
Build ESLint Config and Release / build-and-release (push) Successful in 2s
2026-01-03 20:56:47 +01:00
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 32 additions and 4 deletions

View File

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

View File

@@ -7,11 +7,20 @@ 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"],
languageOptions: {
...config.languageOptions,
parserOptions: {
projectService: true,
},
},
})),
/* React */
react.configs.flat.recommended,
@@ -43,4 +52,23 @@ export default [
],
},
},
/* React version detection */
{
settings: {
react: {
version: "detect",
},
"import/resolver": {
typescript: {
project : "./tsconfig.json",
},
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
},
];