@adfinis/eslint-config

2.1.1 • Public • Published

@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.

/@adfinis/eslint-config/

    Package Sidebar

    Install

    npm i @adfinis/eslint-config

    Weekly Downloads

    716

    Version

    2.1.1

    License

    LGPL-3.0-or-later

    Unpacked Size

    18.4 kB

    Total Files

    8

    Last publish

    Collaborators

    • adfinisbot
    • yelinz
    • alanalu
    • velrest
    • czosel
    • anehx