3.0.0 • Published 1 month ago

@lcooper/eslint-config v3.0.0

Weekly downloads
45
License
MIT
Repository
github
Last release
1 month 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 >=8.56, and NodeJS version ^18.18.0 || >=20.0.0.

Rule Sets

NameDescriptionSource
@lcooper/eslint-configBase config for node environmentsindex.js
@lcooper/eslint-config/browserConfig for browser environmentsbrowser.js

Usage

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

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

export default [
    ...baseConfig,
];

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

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

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

For browser environments, replace @lcooper/eslint-config with @lcooper/eslint-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.0.0

1 month ago

2.2.2

1 year ago

2.2.1

2 years ago

2.2.0

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.2.0

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago