https://github.com/cloudfour/eslint-config
https://github.com/cloudfour/eslint-config
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cloudfour/eslint-config
- Owner: cloudfour
- License: mit
- Created: 2016-05-07T03:06:02.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2025-07-03T20:02:47.000Z (9 months ago)
- Last Synced: 2025-07-03T21:19:28.021Z (9 months ago)
- Language: JavaScript
- Size: 1.94 MB
- Stars: 4
- Watchers: 7
- Forks: 1
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# @cloudfour/eslint-config
[](https://www.npmjs.com/package/@cloudfour/eslint-config) [](https://github.com/cloudfour/eslint-config/actions?query=workflow%3ACI) [](https://renovatebot.com)
Cloud Four's ESLint configuration.
This config extends the following plugins:
- [`n`](https://github.com/weiran-zsd/eslint-plugin-node) (maintained fork of original [`eslint-plugin-node`](https://github.com/mysticatea/eslint-plugin-node))
- [`import`](https://github.com/benmosher/eslint-plugin-import)
- [`promise`](https://github.com/xjamundx/eslint-plugin-promise)
- [`jsdoc`](https://github.com/gajus/eslint-plugin-jsdoc)
- [`unicorn`](https://github.com/sindresorhus/eslint-plugin-unicorn)
- [`standard`](https://github.com/standard/eslint-config-standard)
- [`@typescript-eslint`](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin)
It also adds the following custom rules:
- [`prefer-early-return`](./src/rules/prefer-early-return/)
## Usage
This package exports [a flat ESLint configuration](https://eslint.org/docs/latest/use/configure/configuration-files-new).
```bash
npm install --save-dev eslint @cloudfour/eslint-config
```
Example `eslint.config.js`:
```js
import cloudFourConfig from '@cloudfour/eslint-config';
export default [
...cloudFourConfig,
{
rules: {
// your overrides here
...
}
},
];
```