@fradser/eslint-config
v5.1.0
Published
ESLint configs
Downloads
10
Readme
@zestia/eslint-config
This package provides linting rules for JavaScript.
The rules are based on community standards, with a few extra ones specific to Zestia.
Installation
npm install --save-dev @zestia/eslint-config
Setup
Create the following file
.eslintrc.js
, choosing the appropriate ruleset depending on your project:Vanilla JavaScript
module.exports = require('@zestia/eslint-config');
Ember apps
module.exports = require('@zestia/eslint-config/ember-app');
Ember addons
module.exports = require('@zestia/eslint-config/ember-addon');
Add the following to
scripts
inpackage.json
"lint:js": "eslint ."
Running
npm run lint:js
Notes
eslint:recommended
for minimal recommended defaultseslint-config-standard
for a set of community lint rules around best practices and catching errorseslint-plugin-prettier
adds prettier as an eslint ruleeslint-config-prettier
for turning off eslint rules that could conflict with prettiereslint-plugin-ember
for ember-specific recommended lint ruleseslint-plugin-hbs
for linting handlebars in tagged templates within javascript fileseslint-plugin-node
for linting ember-cli project fileseslint-plugin-qunit
for linting tests
Related repos
- https://github.com/zestia/eslint-config
- https://github.com/zestia/stylelint-config
- https://github.com/zestia/template-lint-config
- https://github.com/zestia/prettier-config