Skip to content

Commit

Permalink
Disabled typecheckign for js files in tseslint
Browse files Browse the repository at this point in the history
  • Loading branch information
lancegliser committed Oct 1, 2024
1 parent aa5b60b commit eecbb8e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

import eslint from "@eslint/js";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import tseslint from "typescript-eslint";
import tsEslint from "typescript-eslint";

export default tseslint.config(
export default tsEslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
...tsEslint.configs.recommended,
eslintPluginPrettierRecommended,
{
languageOptions: {
Expand All @@ -28,4 +28,8 @@ export default tseslint.config(
],
},
},
{
files: ["**/*.js"],
...tsEslint.configs.disableTypeChecked,
},
);

0 comments on commit eecbb8e

Please sign in to comment.