Questions tagged [standardjs]
35 questions
78
votes
3 answers
Is it possible to show warnings instead of errors on ALL of eslint rules?
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!

nrion
- 4,258
- 4
- 17
- 33
57
votes
6 answers
Definition for rule 'react-hooks/exhaustive-deps' was not found
I am getting the following eslint error after adding // eslint-disable-next-line react-hooks/exhaustive-deps in my code.
8:14 error Definition for rule 'react-hooks/exhaustive-deps' was not found
I referred to this post to fix this but the…

UtkarshPramodGupta
- 7,486
- 7
- 30
- 54
9
votes
1 answer
How to configure StandardJS?
One of the main features of StandardJS is that it doesn't require configuration.
The problem is that I want to configure it. I don't want to put:
/* eslint-env mocha */
...in every test file. I want to configure StandardJS to treat everything in…

Erik B
- 40,889
- 25
- 119
- 135
6
votes
2 answers
Using StandardJS, getting error for curly brace on wrong line only for 'else' statements
I'm trying to use StandardJS to help with my linting (also because my supervisor asked me to). It is working great for the most part. However, today I started getting errors I haven't seen before, reporting that:
Closing curly brace does not…

Steverino
- 2,099
- 6
- 26
- 50
6
votes
3 answers
Cannot find module 'babel-eslint' (both standard and babel-eslint already installed locally)
What version of standard?
12.0.1
What operating system, Node.js, and npm version?
Windows 10,
Node v10.15.1,
NPM v.6.8.0
What did you expect to happen?
I install both standard and babel-eslint on devDependencies
(locally).
I run standard --parser…

Inovramadani
- 1,955
- 3
- 14
- 34
5
votes
1 answer
How to disable ESLint rule for whole TypeScript project using ts-standard?
In my TypeScript project I am using the node modules "typescript" and "ts-standard". As IDE I am using Visual Studio Code with the "StandardJS - JavaScript Standard Style" extension. In its settings "Engine" is set to "ts-standard".
To disable a…

TeeTeeHaa
- 51
- 1
- 2
5
votes
2 answers
Sublime Text - How to enable linters per project
I collaborate on several javascript projects. Some of them use eslint, some others use standard. This is projects are maintained by different and unrelated teams, so forcing them to use the same linter is not an option.
I use Sublime Text 3, and it…

jotadepicas
- 2,389
- 2
- 26
- 48
4
votes
0 answers
How do I format using standardjs in coc.nvim?
I need to use StandardJs for linting a TS project's files. I use coc.nvim. I've read multiple SO posts and articles about setting up coc.nvim with ESLint to get it to lint on fileSave, but I cannot find anything with regards to StandardJS.
How can I…

almel
- 7,178
- 13
- 45
- 58
4
votes
1 answer
How can I switch to a different ESLint style guide?
I started a new Vue project with vue-cli and Webpack and configured ESLint to Airbnb's style guide.
How can I change this choice to a Standard style? I am getting really tired of the surplus in commas and semicolons, and want to give it Standard JS…

nicoramirezdev
- 466
- 3
- 14
3
votes
2 answers
Vue 2 - ESLint + Standard + Prettier
How do I create a Vue 2 project that uses ESLint + StandardJS + Prettier?
StandardJS's rules should naturally take precedence over Prettier's.
vue create only provides the following options:
ESLint + Standard
ESLint + Prettier
I tried 2 things:
I…

Royi Bernthal
- 882
- 4
- 17
- 45
3
votes
1 answer
Standardjs no-unused-vars while it's used
In my Typescript React project, I defined:
export type NavState = { mounted: boolean }
and then in my component I used theme like:
import { NavState } from '../../models/nav'
class Nav extends React.Component {
state: NavState =…

Kavoos
- 377
- 4
- 19
2
votes
0 answers
VSCode Extension Formatter StandardJS - JavaScript Standard Style Sam Chen not working
My team uses StandardJS - JavaScript Standard Style Sam Chen VSCode extension for code formatting and suggestion in my team. I also have to use that.
I have installed the extension, but when I try to save the code Auto formatter doesn't work the…

Mayank Patel
- 346
- 3
- 18
2
votes
1 answer
StandardJS linting returns parsing error for static variable
I do get an Parsing error: Unexpected token linting error for this line using standardJS. Therefore my CI is failing.
I don't understand what is wrong with this line. How could I fix this?
export default (App) => {
return class Apollo extends…

user3142695
- 15,844
- 47
- 176
- 332
2
votes
2 answers
"Resolve error: unable to load resolver "node""
I have spent the day wrestling with standardJS and package.json in a project.
Just when I thought I had fixed some no-def issues when upgrading to standard 11, I now face multiple:
error Resolve error: unable to load resolver "node" …

hendry
- 9,725
- 18
- 81
- 139
2
votes
1 answer
Parsing error: Unexpected token for react native example code
Why do I get the parsing error
Parsing error: Unexpected token Props (null)
for this react native app example code? I am using the standardJS linter.
import React, { Component } from 'react';
import {
Text,
View
} from 'react-native';
type…

user3142695
- 15,844
- 47
- 176
- 332