lukeed

@pwa/plugin-eslint

PWA plugin for ESLint

#Install

$ npm install --save-dev @pwa/plugin-eslint eslint

#Usage

None – recognized by and attached to @pwa/core automatically!

#Config

Configurable via the eslint key on your pwa.config.js file.

You may also define or use existing .eslintrc.* files in your project. You may also provide a custom configFile path.

Default Config:

exports.eslint = {
  cache: true,
  parserOptions: {
    ecmaVersion: 10,
    parser: 'babel-eslint',
    sourceType: 'module',
  }
}

Available Options:

See Options for eslint-loader and ESLint's Options too.

See also

@pwa/cli(3), @pwa/core(3), @pwa/plugin-brotli(3), @pwa/plugin-buble(3), @pwa/plugin-critters(3), @pwa/plugin-gzip(3), @pwa/plugin-imagemin(3), @pwa/plugin-offline(3), @pwa/plugin-prettier(3), @pwa/plugin-sw-precache(3)