Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

eslint typescript vite not showing lint on code

{
  // ...
  overrides: [
    {
      files: ['*.ts', '*.tsx'], // Your TypeScript files extension
      parserOptions: {
        project: ['./tsconfig.json'], // Specify it only for TypeScript files
      },
    }
  ],
  parser: '@typescript-eslint/parser',
  // ...
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #eslint #typescript #vite #showing #lint #code
ADD COMMENT
Topic
Name
8+7 =