eslintrc

eslint is running but not showing any lint errors/warnings

爱⌒轻易说出口 提交于 2019-12-08 05:09:54
问题 I am using vscode with eslint. The eslint console shows the following: [Info - 3:31:14 PM] ESLint server stopped. [Info - 3:31:14 PM] ESLint server running in node v10.2.0 [Info - 3:31:14 PM] ESLint server is running. [Info - 3:31:15 PM] ESLint library loaded from: /usr/local/lib/node_modules/eslint/lib/api.js So eslint appears to be loading and running. However, there is a .eslintrc file in my project root that has rules and vscode is not showing me any linting errors. How do I debug this?

eslint is running but not showing any lint errors/warnings

江枫思渺然 提交于 2019-12-06 16:47:37
I am using vscode with eslint. The eslint console shows the following: [Info - 3:31:14 PM] ESLint server stopped. [Info - 3:31:14 PM] ESLint server running in node v10.2.0 [Info - 3:31:14 PM] ESLint server is running. [Info - 3:31:15 PM] ESLint library loaded from: /usr/local/lib/node_modules/eslint/lib/api.js So eslint appears to be loading and running. However, there is a .eslintrc file in my project root that has rules and vscode is not showing me any linting errors. How do I debug this? You'll need to install an extension for VSCode to show lint errrors in the editor. Otherwise you can run

Failed to load plugin @typescript-eslint: Cannot find module 'eslint-plugin-@typescript-eslint'

耗尽温柔 提交于 2019-12-04 22:40:22
I am reconfiguring my project from tslint to eslint. I can run eslint manually, but webpack fails to run with this error message: Module build failed (from /path/node_modules/eslint-loader/index.js): Error: Failed to load plugin @typescript-eslint: Cannot find module 'eslint-plugin-@typescript-eslint' I have ruled out bad .eslintrc.js and missing dependencies since it works when I run it manually ./node_modules/eslint/bin/eslint.js ./ --ext .ts,.tsx --config ./.eslintrc.js I'm not sure if this is an upstream issue with eslint-loader. module.exports = { parser: "@typescript-eslint/parser",

Why do I keep getting Delete 'cr' [prettier/prettier]?

笑着哭i 提交于 2019-12-04 08:05:05
问题 I am using vscode with Prettier 1.7.2 and Eslint 1.7.0. After every newline I get: [eslint] Delete 'cr' [prettier/prettier] This is the .eslintrc.json: { "extends": ["airbnb", "plugin:prettier/recommended"], "env": { "jest": true, "browser": true }, "rules": { "import/no-extraneous-dependencies": "off", "import/prefer-default-export": "off", "no-confusing-arrow": "off", "linebreak-style": "off", "arrow-parens": ["error", "as-needed"], "comma-dangle": [ "error", { "arrays": "always-multiline",