
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@roots/bud-eslint
Advanced tools
eslint support for bud.js
Install @roots/bud-eslint to your project.
Yarn:
yarn add @roots/bud-eslint --dev
npm:
npm install @roots/bud-eslint --save-dev
For general information on configuring eslint see the official Eslint user guide.
You can configure Stylelint in two ways:
You can configure eslint using a eslint config file.
bud.js allows for you to write your eslint config in CommonJS, ESM, TypeScript, JSON or YML. This file should be placed in the root of your project or the project ./config
directory.
export default {
extends: [`@roots/bud-eslint/config`],
rules: { "no-console": `error` },
};
bud.eslint
You can configure eslint directly in your bud.js config using the bud.eslint
API.
bud.eslint
.extends([`@roots/eslint-config`])
.setRules({ "no-console": `error` })
.setFailOnError(bud.isProduction)
.setFailOnWarning(false)
.setFix(true);
You can extend a eslint config by passing an array of eslint config files to bud.eslint.extends
.
bud.eslint.extends([`@roots/bud-eslint/config`]);
You can set eslint rules by passing an object to bud.eslint.setRules
.
bud.eslint.setRules({ "no-descending-specificity": null });
By default, eslint will fail on error in production mode. You can change this behavior by setting
bud.eslint.failOnError
to false
.
bud.eslint.setFailOnError(false);
By default, eslint will not fail on warning. You can change this behavior by setting
bud.eslint.failOnWarning
to true
.
bud.eslint.setFailOnWarning(true);
By default, eslint will not fix errors. You can change this behavior by setting
bud.eslint.fix
to true
.
bud.eslint.setFix(true);
There is a recommended eslint configuration available for you to use as a starting point.
npm install @roots/eslint-config --save-dev
Once installed you can add it to the extends
array in your eslint config:
module.exports = {
root: true,
extends: ["@roots/eslint-config"],
};
Contributions are welcome from everyone.
We have contribution guidelines to help you get started.
@roots/bud-eslint is licensed under MIT.
Keep track of development and community news.
bud.js is an open source project and completely free to use.
However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider sponsoring Roots.
FAQs
eslint support for bud.js
We found that @roots/bud-eslint demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.