https://github.com/lvjiaxuan/eslint-config
My personal ESLint config presets inherited from antfu.
https://github.com/lvjiaxuan/eslint-config
eslint eslint-config eslint-plugin
Last synced: 21 days ago
JSON representation
My personal ESLint config presets inherited from antfu.
- Host: GitHub
- URL: https://github.com/lvjiaxuan/eslint-config
- Owner: lvjiaxuan
- License: mit
- Created: 2022-05-20T09:31:50.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-16T09:45:21.000Z (3 months ago)
- Last Synced: 2025-05-11T04:47:34.858Z (2 months ago)
- Topics: eslint, eslint-config, eslint-plugin
- Language: TypeScript
- Homepage:
- Size: 1.09 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/@lvjiaxuan/eslint-config)
[](https://github.com/antfu/eslint-config)Extend from [@antfu/eslint-config](https://github.com/antfu/eslint-config). The usage is the same.
# Features
1. Composes my [@lvjiaxuan/eslint-plugin](https://github.com/lvjiaxuan/eslint-config/blob/main/packages/eslint-plugin/src/index.ts) with some rules.
2. Composes [OXLint](https://github.com/oxc-project/oxc#-linter) as a config options to reduce ESLint's burden.
3. ~~**Deprecated**: Auto-list referenced projects in `tsconfig.json` if "TypeScript" is enabled. (Deprecated since the feature of [v8-beta](https://typescript-eslint.io/blog/announcing-typescript-eslint-v8-beta/#project-service))~~
4. TS rules will respect the JS base rule options.## [OXLint](https://github.com/oxc-project/oxc#-linter)
The OXLint will take care of several rules to reduce ESLint's burden.
> [!WARNING]
> 1. Several rules options of antfu's will be overwritten. (Use [@eslint/config-inspector](https://github.com/eslint/config-inspector) to check.)
> 2. Maybe some mishandled rules will conflict with ESLint.```js
// eslint.config.js
import lv from '@lvjiaxuan/eslint-config'export default lv({
// equals to `{ deny: 'correctness' }`.
// Reference to https://oxc.rs/docs/guide/usage/linter/rules.html#correctness-173 .
oxlint: true
})
```> [Check](https://github.com/lvjiaxuan/eslint-config/blob/main/packages/eslint-config/src/types.ts) the `OXLintOptions` types.
Modify lint scripts:
```diff
// package.json
{
"scripts": {
- "lint": "eslint ."
+ "lint": "npx oxlint && eslint",
+ "lintf": "npx oxlint --fix && eslint --fix"
}
}
```