Skip to content

Commit

Permalink
fix: ESLint on vite.config.ts
Browse files Browse the repository at this point in the history
Disable linting for vite.config.ts, because it would require
a new TSConfig file because our current TSConfig is for the browser
which is correct for all the files in src/, but vite.config.ts
should be checked in the context of Node instead.

See: https://typescript-eslint.io/troubleshooting/#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file
  • Loading branch information
mizlan committed Feb 24, 2024
1 parent ec321af commit 616c7e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# vite config
vite.config.ts

# dependencies
/node_modules

Expand All @@ -6,4 +9,4 @@

# production
/build
= ''
= ''
1 change: 0 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ module.exports = {
plugins: ['@typescript-eslint'],
parserOptions: {
project: './tsconfig.json',
warnOnUnsupportedTypeScriptVersion: false,
},
rules: {
'no-use-before-define': 'off',
Expand Down
File renamed without changes.

0 comments on commit 616c7e8

Please sign in to comment.