2 Commits
1.1.1 ... 1.1.3

Author SHA1 Message Date
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
2 changed files with 23 additions and 8 deletions

View File

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

View File

@@ -7,14 +7,20 @@ import importPlugin from "eslint-plugin-import";
import unusedImports from "eslint-plugin-unused-imports";
export default [
/* JS (all files, no type info) */
/* Base JS rules (all files) */
js.configs.recommended,
/* TypeScript with type checking (ONLY TS files) */
{
/* TypeScript typed, scoped, flat-config correct */
...tseslint.configs.recommendedTypeChecked.map(config => ({
...config,
files: ["**/*.ts", "**/*.tsx"],
...tseslint.configs.recommendedTypeChecked,
languageOptions: {
...config.languageOptions,
parserOptions: {
projectService: true,
},
},
})),
/* React */
react.configs.flat.recommended,
@@ -27,10 +33,10 @@ export default [
rules: reactHooks.configs.recommended.rules,
},
/* JSX a11y */
/* JSX Accessibility */
a11y.flatConfigs.recommended,
/* Imports */
/* Import rules */
importPlugin.flatConfigs.recommended,
/* Unused imports */
@@ -46,4 +52,13 @@ export default [
],
},
},
/* React version detection */
{
settings: {
react: {
version: "detect",
},
},
},
];