Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robot-inventor/eslint-config
My ESLint config preset
https://github.com/robot-inventor/eslint-config
Last synced: 24 days ago
JSON representation
My ESLint config preset
- Host: GitHub
- URL: https://github.com/robot-inventor/eslint-config
- Owner: Robot-Inventor
- License: mit
- Created: 2024-04-09T15:59:34.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-21T05:54:32.000Z (6 months ago)
- Last Synced: 2024-05-21T19:01:39.559Z (6 months ago)
- Language: TypeScript
- Size: 194 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config
[@Robot-Inventor](https://github.com/Robot-Inventor/)'s ESLint config preset.
## Installation
Then, install the package:
```bash
npm install --save-dev @robot-inventor/eslint-config
```## Usage
Add the following to your ``eslint.config.js`` file:
```javascript
// ESModule
import { eslintConfig } from "@robot-inventor/eslint-config";export default eslintConfig;
``````javascript
// CommonJS
const { eslintConfig } = require("@robot-inventor/eslint-config");module.exports = eslintConfig;
```If you don't need JSDoc rules, you can use the ``eslintConfigNoJSDoc`` instead.
```javascript
// ESModule
import { eslintConfigNoJSDoc } from "@robot-inventor/eslint-config";export default eslintConfigNoJSDoc;
``````javascript
// CommonJS
const { eslintConfigNoJSDoc } = require("@robot-inventor/eslint-config");module.exports = eslintConfigNoJSDoc;
```You can extend or override the config as needed.
```javascript
// ESModule
import { eslintConfig } from "@robot-inventor/eslint-config";export default [
...eslintConfig,
{
rules: {
// Your rules here
}
}
];
``````javascript
// CommonJS
const { eslintConfig } = require("@robot-inventor/eslint-config");module.exports = [
...eslintConfig,
{
rules: {
// Your rules here
}
}
];
```