This commit is contained in:
Manav Rathi
2024-11-19 18:15:51 +05:30
parent 2bdf85403b
commit da71a34f75
3 changed files with 13 additions and 2 deletions

View File

@@ -5,7 +5,15 @@ import tseslint from "typescript-eslint";
export default tseslint.config(
eslint.configs.recommended,
tseslint.configs.recommended,
tseslint.configs.recommendedTypeChecked,
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
},
);
// /* eslint-env node */
// module.exports = {

View File

@@ -2,6 +2,7 @@
"name": "@/build-config",
"version": "0.0.0",
"private": true,
"type": "module",
"devDependencies": {
"@eslint/js": "^9.15.0",
"eslint-plugin-react": "^7.37.2",

View File

@@ -2,9 +2,11 @@
/* A minimal tsconfig so that we can run tsc on the build-config package
itself */
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "bundler",
"noEmit": true,
"checkJs": true,
"esModuleInterop": true
},
"include": ["*.js", "eslintrc-base.mjs", "eslintrc-react.mjs", "eslintrc-vite.mjs"]
"include": ["*.js", "eslintrc-*.mjs"]
}