type checking for ts files only
All checks were successful
Build ESLint Config and Release / build-and-release (push) Successful in 3s
All checks were successful
Build ESLint Config and Release / build-and-release (push) Successful in 3s
This commit is contained in:
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