@gitart/eslint-config-basic
v1.0.0
Published
`.eslintrc.js`
Downloads
33
Readme
@gitart/eslint-config-basic
.eslintrc.js
module.exports = {
extends: ['@gitart/eslint-config-basic'],
}
Babel Parser (Optional)
If you are going some syntax that is not supported by the ESlint defaujlt parser,
you can use @babel/eslint-parser
in the .eslintrc.js
file.
npm install @babel/eslint-parser
module.exports = {
extends: ['@gitart/eslint-config-basic'],
parser: '@babel/eslint-parser',
}
After that, it will work.
class Car {
type = 'Electric'
constructor() {
// ...
}
}