Questions tagged [Linter] (36)

0
answer

Not running eslint code in vs, how do I enable it?

.eslintrc { "extends": [ "eslint:recommended", "plugin:node/recommended" ], "plugins": [ "security" ] } extension for vs code is downloaded, no backlight how to turn on ?
Irwin_Veum asked April 19th 20 at 12:17
0
answer

Settings Prettier from eslint?

There are rules in eslint, and set up the formatting using prettier when you save the file. Is it possible to make prettier took settings from config eslint and it formatted?
beryl_Ko asked April 18th 20 at 12:36
1
answer

ESLint + Prettier in VS Code or as plug-ins Vue-Cli?

First time connect ESLint and Prettier in Vue.js the project and faced with the fact that there are 2 use cases: 1) Set as vue-cli plugins 2) Install vs as-code plug-ins What's the difference? Or is it need to use together?
geraldine13 asked April 16th 20 at 10:28
0
answer

How to fix certain errors lintjs?

The task is to fix more than a dozen thousands of errors on lint in the project. To facilitate was selected tactic is to take any mistake and change it automatically (if possible) in all files, without touching the other bugs. For example, to correct for the entire project, according to lint, `comma-dangle`. Revered docume...
Fred_Kohle asked April 8th 20 at 03:00
0
answer

Why @vue/eslint on different displays, although the configs in the projects the same?

In a typical project created using vue create ... - that's displayed In another project in the docker Well if it is. In the template put this: <{{ }}> The project was created using vue-cli displays an error in the project that in the Docker - no errors. Kompilacja without errors. How so? File: .eslintrc.js modul...
rhianna asked April 8th 20 at 01:56
1
answer

How to set eslinter under webstorm?

There is a new project, and Linter. Here in the screenshot. And all the usual hotkeys and my code formatting is not working. Understand because of the settings of one of these files? How and what exactly you want to configure Linter (if business in it), that would achieve a minimum of tsupom 2 spaces, maximum length of t...
Omer.Lindgren asked April 7th 20 at 16:40
1
answer

How to make destructuring assignment and eslint?

Good afternoon. Trying to deal with eslint for the first time. Using VS Code, put everything you need for lint tutorials, config was generated using eslint --init. module.exports = { "env": { "browser": true, "es6": true }, "extends": [ "airbnb-base" ], "globals": { "Atomics": "readonly", "SharedArrayBuffer": "readon...
shannon.Cormier asked April 7th 20 at 10:06
1
answer

Eslint how to configure a rule at the beginning of the string?

Colleagues, welcome! The existing rules module.exports = { root: true, env: { browser: true, node: true }, parserOptions: { "parser": "babel-eslint", "sourceType": "module", }, extends: [ // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention // consider switching to `plugin:vue/s...
coty.Littel60 asked April 7th 20 at 09:53
1
answer

Why eslint throws Unexpected token with a valid typescript code?

Put eslint react for an existing project, the problem occurs with the following code: client = applyErrorProcessing(client, [401, 403, 404, 500]); return client.catcher(400, response => { const validationError = JSON.parse(response.message) as ValidationError; if (validationError.errors) { eslint throws this error: ...
darrel.DAmore asked April 7th 20 at 09:08
1
answer

How to disable the internal styles using ESLint, Stylelint or similar?

Want the team did not write inline styles, tags, and created new CSS classes. How to add this rule at the level of Linter: Stellina, Eslite or similar? P. S. Make app on Reacte.
brant.Doyle62 asked April 4th 20 at 14:15