https://github.com/switz/eslint-config
My personal eslint-config
https://github.com/switz/eslint-config
Last synced: about 1 year ago
JSON representation
My personal eslint-config
- Host: GitHub
- URL: https://github.com/switz/eslint-config
- Owner: switz
- License: mit
- Created: 2019-05-29T05:11:02.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-09T16:11:17.000Z (about 1 year ago)
- Last Synced: 2025-04-14T20:16:30.501Z (about 1 year ago)
- Language: JavaScript
- Size: 299 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
HI
# switz's eslint-config
## Installation
```
$ yarn add -D eslint @switz/eslint-config
# or
$ pnpm install -D eslint @switz/eslint-config
```
Update your eslint config (`eslint.config.mjs`)
```js
import main from '@switz/eslint-config';
export default [...main];
```
If you need React support, use
```js
import main from '@switz/eslint-config';
import react from '@switz/eslint-config/react.mjs';
export default [...main, ...react];
```
If you need mdx support, use
```js
import main from '@switz/eslint-config';
import mdx from '@switz/eslint-config/mdx.mjs';
export default [...main, ...mdx];
```
If you need tailwind support, use:
```js
import main from '@switz/eslint-config/main.mjs';
import react from '@switz/eslint-config/react.mjs';
import tailwind from '@switz/eslint-config/tailwind.mjs';
export default [...main, ...react, ...tailwind];
```
You should be able to combine configs just by spreading more into the array.
## Reference
https://eslint.org/docs/developer-guide/shareable-configs
## License
MIT, have fun