@adfinis/eslint-config
v2.1.1
Published
Adfinis' ESlint config, following our coding guidelines
Downloads
1,800
Readme
@adfinis/eslint-config
This package contains our internally used eslint config.
Usage
To install this package, simply run
pnpm add -D @adfinis/eslint-config \
eslint \
eslint-config-prettier \
eslint-plugin-prettier \
eslint-plugin-import
Then add the following to your .eslintrc.js
module.exports = {
extends: "@adfinis/eslint-config",
};
Ember
If you are using it in an ember app or addon you can use the config for ember:
pnpm add -D @adfinis/eslint-config \
@babel/eslint-parser \
@babel/plugin-proposal-decorators \
eslint \
eslint-config-prettier \
eslint-plugin-prettier \
eslint-plugin-import \
eslint-plugin-ember \
eslint-plugin-n \
eslint-plugin-qunit \
prettier
For an app replace your .eslintrc.js
with this:
module.exports = {
extends: "@adfinis/eslint-config/ember-app",
};
Or for an addon replace your .eslintrc.js
with this:
module.exports = {
extends: "@adfinis/eslint-config/ember-addon",
};
Maintaining
Since we want to keep the config in sync with Ember.js' config, we need to
synchronize it from time to time. This can be done very easily by running
pnpm update-blueprints
and verifying the changes.
There is also a Github Action that runs this script automatically every week at Friday 12:00 and opens a PR if there is a change.