This package contains a set of strict base eslint configs for packages using ESM.
Note this package exports configs in the new eslint flat config format.
Use the package manager of your choice to install:
npm install --save-dev @cprussin/eslint-config
pnpm add -D @cprussin/eslint-config
yarn add -D @cprussin/eslint-config
First, ensure you're using ESM (set "type": "module" in your package.json.). Then, the most basic eslint.config.js could look like this:
"type": "module"
package.json.
eslint.config.js
export { base as default } from "@cprussin/eslint-config"; Copy
export { base as default } from "@cprussin/eslint-config";
To override things, just concat the config you want together, for instance:
import { base } from "@cprussin/eslint-config";export default [ ...base, { ignores: ["foo/bar/**"], },]; Copy
import { base } from "@cprussin/eslint-config";export default [ ...base, { ignores: ["foo/bar/**"], },];
This package contains a set of strict base eslint configs for packages using ESM.
Note this package exports configs in the new eslint flat config format.
Installing
Use the package manager of your choice to install:
npm install --save-dev @cprussin/eslint-config
pnpm add -D @cprussin/eslint-config
yarn add -D @cprussin/eslint-config
Usage
First, ensure you're using ESM (set
"type": "module"
in yourpackage.json.
). Then, the most basiceslint.config.js
could look like this:To override things, just concat the config you want together, for instance: