Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keupoz/eslint-config
ESLint config based on antfu's with slight changes
https://github.com/keupoz/eslint-config
Last synced: about 1 month ago
JSON representation
ESLint config based on antfu's with slight changes
- Host: GitHub
- URL: https://github.com/keupoz/eslint-config
- Owner: keupoz
- License: mit
- Created: 2024-06-06T10:00:17.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-08T11:23:17.000Z (3 months ago)
- Last Synced: 2024-08-08T13:22:03.876Z (3 months ago)
- Language: TypeScript
- Size: 85 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @keupoz/eslint-config
[![NPM Version](https://img.shields.io/npm/v/@keupoz/eslint-config)](https://www.npmjs.com/package/@keupoz/eslint-config)
Personal ESLint config based on [antfu's config](https://github.com/antfu/eslint-config).
- Semi colons are enabled
- Stricter bracket style disallowing braceless expressions hanging down
- Import sorting is handled by Perfectionist with a consistent order
- Union types sorting enabled (handled by Perfectionist)## Usage
```javascript
// eslint.config.mjs
import keupoz from '@keupoz/eslint-config';export default keupoz({
// All original options are supported.
// `stylistic` and `rules` options are extended instead of being completely overriden.
});
``````jsonc
// .vscode/settings.json
{
// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.defaultFormatter": null,// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off", "fixable": true },
{ "rule": "format/*", "severity": "off", "fixable": true },
{ "rule": "*-indent", "severity": "off", "fixable": true },
{ "rule": "*-spacing", "severity": "off", "fixable": true },
{ "rule": "*-spaces", "severity": "off", "fixable": true },
{ "rule": "*-order", "severity": "off", "fixable": true },
{ "rule": "*-dangle", "severity": "off", "fixable": true },
{ "rule": "*-newline", "severity": "off", "fixable": true },
{ "rule": "*quotes", "severity": "off", "fixable": true },
{ "rule": "*semi", "severity": "off", "fixable": true }
],// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml",
"toml",
"xml",
"gql",
"graphql",
"astro",
"svelte",
"css",
"less",
"scss",
"pcss",
"postcss"
]
}
```