JSPM

@roots/bud-eslint

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

Adds eslint support to Bud

Package Exports

  • @roots/bud-eslint

Readme

Bud

MIT License Follow Roots

@roots/bud-eslint

Adds eslint support to Bud

Installation

yarn add @roots/bud-eslint --dev

Usage

bud.use(require("@roots/bud-eslint"));

Configuration

Default config:

key value
cache true
cacheLocation storage directory
context src directory
cwd project directory
exclude node_modules
extensions `['js', 'jsx', 'ts', 'tsx', 'vue']
failOnError true

Configure using bud.eslint

bud.eslint.config({
  cache: false,
});

Configure using the extensions api

Configure eslint options using the extensions api

bud.extensions.get("eslint-webpack-plugin").options = {
  // ... options
};

Or, using hooks

bud.hooks.on("extension/eslint-webpack-plugin/options", (options) => ({
  ...options,
  // overrides
}));

Learn more about configuring eslint rules in the official Eslint user guide.

Contributing

Contributions are welcome from everyone.

We have contributing guidelines to help you get started.

Bud sponsors

Help support our open-source development efforts by becoming a patron.

Kinsta KM Digital Carrot C21 Redwood Realty WordPress.com Icons8 Harness Software Coders Clan Genero Motto

Community

Keep track of development and community news.