Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eslint/create-config
Utility to create ESLint config files
https://github.com/eslint/create-config
Last synced: about 1 month ago
JSON representation
Utility to create ESLint config files
- Host: GitHub
- URL: https://github.com/eslint/create-config
- Owner: eslint
- License: mit
- Created: 2021-06-25T01:28:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-10T14:10:21.000Z (7 months ago)
- Last Synced: 2024-04-14T07:43:38.282Z (7 months ago)
- Language: JavaScript
- Size: 90.8 KB
- Stars: 60
- Watchers: 9
- Forks: 17
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @eslint/create-config
Utility to create ESLint config files
## Usage
Prerequisites: [Node.js](https://nodejs.org/) (`^18.18.0`, `^20.9.0`, or `>=21.1.0`) built with SSL support. (If you are using an official Node.js distribution, SSL is always built in.)
You can use npm/npx(shipped with Node.js).
```bash
# use npm
npm init @eslint/config@latest
``````bash
# use npx
npx @eslint/create-config@latest
```If you want to use a specific shareable config that is hosted on npm, you can use the `--config` option and specify the package name:
```bash
# use `eslint-config-standard` shared config
npm init @eslint/config@latest -- --config eslint-config-standard
```To use an eslintrc-style (legacy) shared config:
```bash
npm init @eslint/config@latest -- --eslintrc --config eslint-config-standard
```