Skip to content

Commit

Permalink
hmm
Browse files Browse the repository at this point in the history
  • Loading branch information
tenub committed Feb 3, 2025
1 parent b1e15ac commit 34b96cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions components/eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default tseslint.config({
},
},
plugins: {
"@typescript-eslint": tseslint.plugin,
react: reactPlugin,
},
});
9 changes: 3 additions & 6 deletions react/eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,16 @@ export default tseslint.config({
eslint.configs.recommended,
tseslint.configs.recommended,
importPlugin.flatConfigs.recommended,
reactPlugin.configs.flat.recommended,
reactPlugin.configs.flat["jsx-runtime"],
reactHooks.configs["recommended-latest"],
],
files: ["src/**/*.ts", "src/**/*.tsx"],
files: ["**/*.ts", "**/*.tsx"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: {
...globals.browser,
...globals.node,
},
parser: tseslint.parser,
parserOptions: {
project: "./tsconfig.json",
},
},
rules: {
Expand All @@ -43,6 +39,7 @@ export default tseslint.config({
},
},
plugins: {
"@typescript-eslint": tseslint.plugin,
react: reactPlugin,
},
});
2 changes: 1 addition & 1 deletion react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"build:types": "npx tsc && npx api-extractor run",
"clean": "rm -rf dist",
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
"lint": "eslint src --report-unused-disable-directives --fix",
"lint": "npx eslint \"src/**\" --report-unused-disable-directives --fix",
"test": "jest --config jest.config.js",
"tsc": "npx tsc"
},
Expand Down

0 comments on commit 34b96cf

Please sign in to comment.