https://github.com/bernankez/eslint-config
My ESLint Config
https://github.com/bernankez/eslint-config
Last synced: 4 months ago
JSON representation
My ESLint Config
- Host: GitHub
- URL: https://github.com/bernankez/eslint-config
- Owner: Bernankez
- License: mit
- Created: 2023-11-30T02:50:00.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-03-18T06:10:10.000Z (about 1 year ago)
- Last Synced: 2025-08-11T00:39:32.204Z (10 months ago)
- Language: TypeScript
- Homepage: https://eslint.keke.cc
- Size: 1.77 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @bernankez/eslint-config [](https://npmjs.com/package/@bernankez/eslint-config)
## Usage
Install manually:
```sh
pnpm add -D @bernankez/eslint-config
```
Create `eslint.config.mjs` in your project root:
```javascript
import bernankez from "@bernankez/eslint-config";
export default bernankez();
```
### Main changes
- Double quotes, with semi
- Brace style: `stroustrup`
- Curly: `all`
- HTML self closing: `
` `
` ``
> [!NOTE]
> This config internally uses antfu's ESLint config with some of my default settings. To see the differences in the default rules, please refer to [this file](https://github.com/Bernankez/eslint-config/blob/master/src/index.ts#L18).
>
> For detailed configurations, directly check [antfu's ESLint config](https://github.com/antfu/eslint-config#readme).
>
> When calling `npx @bernankez/eslint-config`, all params are passed through **as-is** to `@antfu/eslint-config`.
> [!IMPORTANT]
> From v4, the internal implementation of this config has changed. It now re-exports antfu's ESLint config along with some of my default settings. This may result in differences in certain ESLint rules compared to previous versions. Please take note.
>
> v3 dropped the cjs build.
>
> From v2, ESLint v9.5 or higher is required.
>
> From v1, ESLint flat config is supported.
>
> For legacy ESLint config, please use v0.x
## License
[MIT](https://github.com/Bernankez/eslint-config/blob/master/LICENSE) License © 2022-PRESENT [科科Cole](https://github.com/Bernankez)