Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kirill-dev-pro/eslint-config-supreme
Best eslint config
https://github.com/kirill-dev-pro/eslint-config-supreme
Last synced: 2 days ago
JSON representation
Best eslint config
- Host: GitHub
- URL: https://github.com/kirill-dev-pro/eslint-config-supreme
- Owner: kirill-dev-pro
- Created: 2022-07-16T12:18:14.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T13:12:11.000Z (over 1 year ago)
- Last Synced: 2024-10-07T01:04:39.020Z (about 1 month ago)
- Language: JavaScript
- Size: 144 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Supreme eslint config
This is a all-in-one configuration based on personal preferences of the creator. Tuned to work with JS and TS and support on-save fixes in IDE.
## Setup
Easy one-line setup with `bun`
```sh
bunx eslint-config-supreme init
```
or with `npm`
```sh
npx eslint-config-supreme init
```## Manual setup
1. Install with `npm`
```sh
npm install eslint-config-supreme
```
* or with `bun`
```sh
bun add eslint-config-supreme
```
2. Add `.eslintrc.js` config file to root of your project
```js
module.exports = {
extends: 'supreme',
}
```
3*. Add files extensions to `eslint.validate` in `settings.json` of VS Code. Needed for Astro.
```json
"eslint.validate": [
"javascript",
"javascriptreact",
"astro", // Enable .astro
"typescript", // Enable .ts
"typescriptreact" // Enable .tsx
]
```### Optional
Add on-save fix to vs-code
1. Istall `Eslint` extension for VS code. Extension id `dbaeumer.vscode-eslint`
* VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
2. Add `.vscode/settings.json` file to root of your project
```json
{
"editor.codeActionsOnSave": {
"source.fixAll": true
}
}
```