https://github.com/munawwar/eslint-config-lets-go
An ESLint config that aims to help *and not be annoying*
https://github.com/munawwar/eslint-config-lets-go
Last synced: 2 months ago
JSON representation
An ESLint config that aims to help *and not be annoying*
- Host: GitHub
- URL: https://github.com/munawwar/eslint-config-lets-go
- Owner: Munawwar
- Created: 2024-07-23T19:06:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-16T14:10:19.000Z (about 1 year ago)
- Last Synced: 2025-04-06T04:52:06.725Z (6 months ago)
- Language: JavaScript
- Size: 101 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-config-lets-go
Note: This project is a work in progress.
An ESLint config that aims to help *and not be annoying*. Check index.js for the full list of rules.
## Installation
```bash
npm add -D eslint@8 eslint-config-lets-go eslint-plugin-import-x
```## Usage
(Recommended) For ESLint 8 `eslint.config.js` and 9+:
```js
// eslint.config.js
const letsGo = require("eslint-config-lets-go/config");
// eslint-disable-next-line import-x/no-extraneous-dependencies
const globals = require("globals");module.exports = [
letsGo,
{
languageOptions: {
ecmaVersion: 2023,
sourceType: "module", // or "commonjs",
globals: {
...globals.node,
...globals.nodeBuiltins,
// or ...globals.browser,
}
},
// Override any of the rules
// rules: {
// 'no-console': 'warn',
// 'no-shadow': ['error', {
// 'allow': ['err', 'resolve', 'reject', 'done']
// }],
// }
}
];
```(Not recommended) For ESLint 8 and below:
```js
{
"extends": ["lets-go"],
// Override any of the rules
// rules: {
// 'no-console': 'warn',
// }
}
```