Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0077ffb3c9 |
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@sebastianbrenner/eslint-config",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"type": "module",
|
||||
"main": "./index.js",
|
||||
"scripts": {
|
||||
|
||||
13
src/index.js
13
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 */
|
||||
/* JS (all files, no type info) */
|
||||
js.configs.recommended,
|
||||
|
||||
/* TypeScript (flat, type-checked) */
|
||||
...tseslint.configs.recommendedTypeChecked,
|
||||
/* TypeScript with type checking (ONLY TS files) */
|
||||
{
|
||||
files: ["**/*.ts", "**/*.tsx"],
|
||||
...tseslint.configs.recommendedTypeChecked,
|
||||
},
|
||||
|
||||
/* React */
|
||||
react.configs.flat.recommended,
|
||||
@@ -24,10 +27,10 @@ export default [
|
||||
rules: reactHooks.configs.recommended.rules,
|
||||
},
|
||||
|
||||
/* JSX Accessibility */
|
||||
/* JSX a11y */
|
||||
a11y.flatConfigs.recommended,
|
||||
|
||||
/* Import rules */
|
||||
/* Imports */
|
||||
importPlugin.flatConfigs.recommended,
|
||||
|
||||
/* Unused imports */
|
||||
|
||||
Reference in New Issue
Block a user