@zeitonline/eslint-config

0.7.2 • Public • Published

@zeitonline/eslint-config

This package provides a shared Eslint configuration for ZEIT ONLINE projects.

Since v0.2.0, this package uses Eslint v9.

Installation & Usage

  1. Install the package using npm:
npm install --save-dev @zeitonline/eslint-config
  1. 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
    }
];
  1. (Optional) Add a lint script to your package.json, e.g.:
{
  "scripts": {
    "lint": "eslint ."
  }
}

Further Reading

Readme

Keywords

Package Sidebar

Install

npm i @zeitonline/eslint-config

Weekly Downloads

83

Version

0.7.2

License

MIT

Unpacked Size

3.95 kB

Total Files

4

Last publish

Collaborators

  • zeitonline