1.0.0 • Published 2 years ago
@gitart/eslint-config-basic v1.0.0
@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-parsermodule.exports = {
extends: ['@gitart/eslint-config-basic'],
parser: '@babel/eslint-parser',
}After that, it will work.
class Car {
type = 'Electric'
constructor() {
// ...
}
}