1.0.0 • Published 4 months ago

@gitart/eslint-config-basic v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

@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() {
    // ...
  }
}