Add ESLint plugin to Vite configuration for improved linting support
This commit is contained in:
29
apps/frontend/eslint.config.ts
Normal file
29
apps/frontend/eslint.config.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import js from '@eslint/js';
|
||||
import globals from 'globals';
|
||||
import tseslint from 'typescript-eslint';
|
||||
|
||||
export default tseslint.config(
|
||||
{
|
||||
// Ignore files and directories
|
||||
ignores: ['dist', 'node_modules', 'app/generated'],
|
||||
},
|
||||
js.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
{
|
||||
languageOptions: {
|
||||
ecmaVersion: 2020,
|
||||
globals: {
|
||||
...globals.browser,
|
||||
...globals.node,
|
||||
},
|
||||
parserOptions: {
|
||||
project: ['./tsconfig.json', './tsconfig.node.json'],
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
// Add custom rules here
|
||||
'no-console': 'warn',
|
||||
},
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user