JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q34086F
  • License MIT

eslint plugin for kdu-cli

Package Exports

  • @kdujs/cli-plugin-eslint
  • @kdujs/cli-plugin-eslint/generator
  • @kdujs/cli-plugin-eslint/generator.js
  • @kdujs/cli-plugin-eslint/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@kdujs/cli-plugin-eslint) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@kdujs/cli-plugin-eslint

eslint plugin for kdu-cli

Injected Commands

  • kdu-cli-service lint

    Usage: kdu-cli-service lint [options] [...files]
    
    Options:
    
      --format [formatter] specify formatter (default: codeframe)
      --no-fix             do not fix errors
      --max-errors         specify number of errors to make build failed (default: 0)
      --max-warnings       specify number of warnings to make build failed (default: Infinity)

    Lints and fixes files. If no specific files are given, it lints all files in src and test.

    Other ESLint CLI options are also supported.

Configuration

ESLint can be configured via .eslintrc or the eslintConfig field in package.json.

Lint-on-save during development with eslint-loader is enabled by default. It can be disabled with the lintOnSave option in kdu.config.js:

module.exports = {
  lintOnSave: false
}

Installing in an Already Created Project

kdu add @kdujs/eslint

Injected webpack-chain Rules

  • config.module.rule('eslint')
  • config.module.rule('eslint').use('eslint-loader')