I have following .eslintrc
{
"extends": "standard"
}
I have following code in my javascript file
import React from 'react';
Above line of code is incorrect according to eslint. It gives following complain.
"; Extra semicolon
How can I allow semi colons in eslint?
eslint-config-standard
uses the following rule for semicolons:The documentation for the rule lists its options:
To overide the rule, you could modify your
.eslintrc
to always require semicolons:Or to disable the rule:
Modify your
.eslintrc
(deprecated) or.eslintrc.js
(recommended) withGood Luck...