3.1.1 • Published 8 months ago

@lcooper/eslint-config v3.1.1

Weekly downloads
45
License
MIT
Repository
github
Last release
8 months ago

@lcooper/eslint-config

npm ci license

An ESlint shareable flat config that extends eslint-config-airbnb-base.

Installation

The peer dependency eslint must be installed alongside this package.

install with npm:

npm install -D eslint @lcooper/eslint-config

install with yarn:

yarn add -D eslint @lcooper/eslint-config

Note: This project requires Eslint version >=9.3, and NodeJS version ^18.18.0 || ^20.9.0 || >=21.1.0.

Usage

Add an eslint.config.js config file to your project's root directory:

import config from '@lcooper/eslint-config';

export default [
    ...config,
];

If your project does not specify "type": "module" in its package.json file, then eslint.config.js must be in CommonJS format:

const config = require('@lcooper/eslint-config');

module.exports = [
    ...config,
];

To add browser globals for browser environments, import additional configuration from @lcooper/eslint-config/envs.

import config from '@lcooper/eslint-config';
import { browser } from '@lcooper/eslint-config/envs';

export default [
    ...config,
    browser,
];

This project is no longer compatable with the legacy eslintrc format, and requires you use the flat config format. Check out this page for more details about migrating from the eslintrc format to the flat config format.

Related

License

MIT

3.1.1

8 months ago

3.1.0

9 months ago

3.0.0

2 years ago

2.2.2

3 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.2

4 years ago

2.1.1

4 years ago

2.1.0

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.0

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

6 years ago