About 10,300,000 results
Open links in new tab
  1. Turning off eslint rule for a specific file - Stack Overflow

    Jan 13, 2016 · For anyone else confused by the comments, /* eslint-disable no-use-before-define */ is definitely a correct answer which disables a specific rule for the whole file. Notice the edits in the …

  2. javascript - What's the difference between prettier-eslint, eslint ...

    Jun 22, 2017 · Use eslint-plugin-prettier to run Prettier as an Eslint-rule. See 1st line in readme: eslint-plugin-prettier Use both to take advantage of both tools. See recommended configuration: eslint …

  3. javascript - ESLint not working in VS Code? - Stack Overflow

    ESLint is not working for me in VS Code. I have the plugin installed in VS Code, and ESLint itself as a developer dependency in my package.json, which I have installed as well. I modified the foll...

  4. How do you fix ESLint Parsing error: Unexpected token error

    Unexpected token errors in ESLint parsing occur due to incompatibility between your development environment and ESLint's current parsing capabilities with the ongoing changes with JavaScripts …

  5. ESLint: 8.0.0 Failed to load plugin '@typescript-eslint'

    Oct 10, 2021 · TypeError: Failed to load plugin '@typescript-eslint' declared in 'src.eslintrc': Class extends value undefined is not a constructor or null Referenced from: src.eslintrc

  6. Why do I keep getting "[eslint] Delete `CR` [prettier/prettier]"?

    The same solution mentioned in several answers above, with a twist: Put it in the eslint.config.mjs` (extension can also be js or whatever you are using for eslint.config.

  7. Disable ESLint rules for folder - Stack Overflow

    Feb 15, 2017 · Is there a way to disable specific rules for a folder? For example, I don't want to have required JSDoc comments for all my test files in the test folder. Is there a way to do this?

  8. Turning off eslint rule for a specific line - Stack Overflow

    Jan 1, 2015 · I enjoy // eslint-disable-line to allow me to insert console for a quick inspection of a service, without my development environment holding me back because of the breach of protocol.

  9. How can I integrate ESLint in a Vite + React project?

    Nov 4, 2021 · If you want to have eslint installed globally in your machine, you can open a console and add npm istall -g eslint, this will allow you to use the eslint cli to initialize the eslint config file in your …

  10. How do you configure ESLint's parser and plug-ins using ESLint's flat ...

    Oct 28, 2022 · In the old-school .json configuration, the plug-ins work fine. Does someone know how to correctly configure the TS-parser plug-ins for ESLint using the flat config, so that ESLint is able to …