Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(create-vite): strict checks on vite.config.ts #14270

Closed

Commits on Sep 3, 2023

  1. fix(create-vite): strict checks on vite.config.ts

    After adding `plugin:@typescript-eslint/strict-type-checked`
    according to README.md, rule `@typescript-eslint/no-unnecessary-condition`
    throws an error on vite.config.ts.
    
    ```
    /path/to/my-project/vite.config.ts
      0:1  error  This rule requires the `strictNullChecks` compiler option to be turned on to function correctly  @typescript-eslint/no-unnecessary-condition
    ```
    
    This is because TS strict mode is not enabled at tsconfig.node.json.
    
    Also see: 4ffaeee
    Follow-up: 2ad78aa
    nekketsuuu committed Sep 3, 2023
    Configuration menu
    Copy the full SHA
    22598fa View commit details
    Browse the repository at this point in the history