eslint Questions
2
Solved
I use Nuxt 2 with Vue 2 and vuetify.
My vscode was updated and I am getting an eslint error with v-html.
The code is:
<v-list-item-title
v-html="`${parent.genFilteredText(item.nome)}`&quo...
2
I have the following lint config...
{
"extends": ["eslint:recommended", "google"],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"rules": {
"require-jsdoc": 1
},
"env"...
2
I'd like to lint the files in my rails project (ideally, in my editor while making edits) via eslint, but I am currently unable to lint files that are pre-processed with ERB.
How can I include *.j...
Snowber asked 10/6, 2015 at 5:16
3
Solved
How do I overrride the eslint rules in plugin:@nrwl/nx/typescript? I've made this change to the root of .eslintrc.json.
"rules": {
"@typescript-eslint/member-ordering": "w...
Nanna asked 4/6, 2021 at 18:7
3
Solved
I'm upgrading/refactoring an Angular project (to Angular 8, Electron 6, Ionic 4) and we decided to switch from TSLint to ESLint.
I setup some rules and they are running but I can't get a rid off t...
Kailey asked 5/9, 2019 at 8:3
5
So i had a bit weird warning from eslint
'./types' is a flow type file.
I think eslint read checkbox as a lowercase while in reality it is Checkbox (capital C).
I try git mv casesensitive tmp &am...
Accrue asked 4/8, 2020 at 20:10
3
Solved
I'm trying to make an ErrorBoundary using a class component like this
class ErrorBoundary extends Component<ErrorBoundaryProps,ErrorBoundaryState>
But every time I format it with prettier, t...
Rajewski asked 17/7 at 3:17
4
Solved
I have my editor set to fix all issues upon saving. However, once I saved, it formats the code to fix the issues, then a split second later reverts back to the original unfixed and unformatted code...
Fatality asked 28/3, 2021 at 4:38
2
Solved
I have an Angular 12 solution that has two projects: one that is a library and one that is an app. I converted these from using tslint to eslint. I used the following commands:
ng add @angular-esli...
4
Solved
Getting a ESLint error when copiling with babel:
Line 28: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 29: Expected an assignment or function c...
Deeplaid asked 11/9, 2018 at 11:26
6
I use create-react-app and just want to add rules to my package.json. I see that I can disable this rule, but how? In the official document, only the phrase "If you don't want to enforce a sty...
Bumbling asked 30/12, 2019 at 11:21
1
When run eslint --ext \".js,.ts,.vue\" --ignore-path .gitignore . script using npm run lint, the following error occurs.
/(somethingSomething...)/Test.vue
0:0 error Parsing error: "...
Interchangeable asked 24/11, 2021 at 9:41
2
Solved
I use ESLint to lint TypeScript. I would like to configure ESLint such that it enforces imports to either be all on separate lines or all on a single line.
Not okay:
import {
a, b,
c,
d
} from...
Dulcedulcea asked 6/2, 2020 at 15:38
2
Solved
I'm configuring neovim with none-ls and when I'm trying to add eslint_d to the setup I have this error :
[null-ls] failed to load builtin eslint_d for method diagnostics; please check your config
H...
6
Solved
As the title says, would it be possible for eslint to show warnings instead of errors on ALL of the rules? I'm using Standard JS, if that information is relevant.
Thanks!
Evvoia asked 5/6, 2018 at 17:9
1
When I try to start linting on a file with the new configuration pattern, I get the following error:
PS C:\Users\test> npx eslint index.js
(node:10036) Warning: To load an ES module, set "t...
Anthropogenesis asked 25/5, 2023 at 9:40
5
Solved
I have an Expo React Native app that has a ton of unused imports in components.
I have Prettier setup for code formatting, is it possible to configure Prettier to also remove any unused imports acr...
Apodal asked 26/6, 2022 at 10:45
10
Solved
I stumbled into a problem where in VS Code, when a Vue project is created and not open at root directory of the Vue project, babel.config.js wouldn't load and IDE would be confused as to where the ...
Epistasis asked 25/2, 2022 at 21:10
3
Solved
I've just started using eslint. I initialized it and started fixing problems it pointed out.
One problem, however, it shouldn't complain about:
const data = fs.readFileSync(path.join(__dirname, _FI...
Trailer asked 1/2, 2022 at 1:53
3
Solved
I'm trying to use TypeScript's new satisfies operator to keep the most specific type for a variable in my code, but ESLint is throwing a Parsing error: ',' expected. error on the closing curly brac...
Piero asked 23/3, 2023 at 21:36
5
Solved
Issue
Git bash shows Warning: React version not specified in eslint-plugin-react settings. See https://github.com/jsx-eslint/eslint-plugin-react#configuration . while running eslint.
How to produce...
7
Solved
Is there a way to stop getting error from ESLint for single word view name in Vue3?
Every time I run ESLint, I get following message:
1:1 error Component name "About" should always be mu...
Bruns asked 14/12, 2021 at 9:48
1
If I run eslint . from my project-root, it prints all errors and warnings to the console, as I would expect it to.
However, when I cd into a subdirectory of the project, eslint . yields the followi...
Countermark asked 25/8, 2022 at 9:49
2
I have an existing ESLint configuration with "ecmaVersion" set to "5" that I want to modify to allow the use of let and const which are ES6 features. There are mostly* supported in Internet Explore...
Inert asked 5/11, 2018 at 19:9
16
I am using VScode with latest version of Eslint. It is my first time using a linter.
I keep getting this linting error when using a tab as indentation:
severity: 'Error'
message: 'Expected inde...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.