Namibian Pyjama Merchant

    @fastly/eslint-config

    2.1.0 • Public • Published

    @fastly/eslint-config

    Installation

    npm install --save-dev \
      @fastly/eslint-config@^1.0.0 \
      @fastly/prettier-config@^1.0.0 \
      eslint-plugin-ember@^5.0.0 \
      eslint-config-prettier@^2.9.0 \
      eslint-plugin-prettier@^2.4.0 \
      eslint@^4.12.1 \
      prettier@^1.9.2

    Currently, @fastly/eslint-config declares several peerDependencies because eslint's module-loader is incapable of finding transitive dependencies. See eslint/eslint#3458. When eslint supports transitive plugins, @fastly/eslint-config can declare true dependencies so consuming projects can install just a single package.

    eslint-plugin-ember is optional. Ember projects should install it. Other projects should not. @fastly/eslint-config will automatically extend eslint-plugin-ember if it's installed.

    Configuration

    The simplest configuration is to accept the Fastly defaults:

    // my-app/.eslintrc.js
    extends: ['@fastly'],

    This includes

    If you want to extend other configurations as well, we recommend extending @fastly last so it wins:

    // my-app/.eslintrc.js
    extends: ['airbnb-base', '@fastly'],

    And of course, you can always override the Fastly defaults:

    // my-app/.eslintrc.js
    extends: ['@fastly'],
    rules: {
      'no-empty': 0
    }

    Use with Prettier

    This library automatically includes @fastly/prettier-config as eslint rules, so running eslint will validate against that configuration. See the @fastly/prettier-config docs for information about setting up a prettier.config.js in your project to work with tools like editor plugins.

    Install

    npm i @fastly/eslint-config

    DownloadsWeekly Downloads

    85

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    6.65 kB

    Total Files

    5

    Last publish

    Collaborators

    • plindsay_fastly
    • bergieboy
    • alfonce
    • solomontang
    • drhoden-fastly
    • chicagoing
    • lgfastly
    • blane
    • triblondon
    • fgsch
    • leklund
    • pabergman
    • gschorkopf
    • andri_antonia
    • bernabas
    • philippschulte
    • thommahoney
    • psbanka
    • tundal45
    • lflores
    • rsouzafastly
    • patrickhamann
    • asergeyev
    • jasminedaly
    • cbuscher
    • akappen
    • hmorrison
    • jparrish
    • squeemishly
    • lturk
    • tomyoung
    • conniechu929
    • stevendaniels
    • briemarie
    • nilium
    • torch2424
    • hschaaf_fastly
    • johnmdonahue
    • alitorbati
    • uberfuzzyfastly
    • fashtley
    • mccurdyc
    • anachronism