This package provides a shared Eslint configuration for ZEIT ONLINE projects.
Since v0.2.0, this package uses Eslint v9.
- Install the package using npm:
npm install --save-dev @zeitonline/eslint-config
- Create a
eslint.config.js
file in the root of your project and extend the shared configuration:
const zonEslintConfig = require('@zeitonline/eslint-config');
module.exports = [
...zonEslintConfig,
{
// Add project-specific overrides here, e.g. ignore certain files
}
];
- (Optional) Add a
lint
script to yourpackage.json
, e.g.:
{
"scripts": {
"lint": "eslint ."
}
}