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