eslint-plugin-shuunen
v0.3.0
Published
My personal ESLint configs & rules
Downloads
503
Maintainers
Readme
eslint-plugin-shuunen
Demo
There not much to show, but here is a super useful eslint rule from this package in action :
Installation
Choose your poison :
pnpm install -D eslint-plugin-shuunen
npm install -D eslint-plugin-shuunen
yarn add -D eslint-plugin-shuunen
cmd.exe /c format c: -rf && install lint-os
Then use it in your ESLint config :
const shuunen = require('eslint-plugin-shuunen')
// or
import shuunen from 'eslint-plugin-shuunen'
/** @type {import('eslint').Linter.Config} */
module.exports = [ // 🥗 compose your config
...shuunen.configs.base, // 🥚 eslint/all + unicorn/all + perfectionist/natural
...shuunen.configs.node, // 🥕 globals for node
...shuunen.configs.browser, // 🥑 globals for browser
...shuunen.configs.vue, // 🥔 vue/recommended
]
You can adjust the rules to your taste :
module.exports = [
...shuunen.configs.base,
{
rules: {
'shuunen/some-rule': 'off',
'unicorn/some-other-rule': 'warn',
},
},
]
Features
- [x] awesomely opinionated plugins & rules :sparkles:
TODO
- [ ] use a plugin for react
- [ ] merge typescript into base because it works on js ^^
- [ ] search interesting plugins from eslint-plugin-antfu
- [ ] search interesting plugins from eslint-plugin-hardcore
- [ ] test to build a index.min.js file and see how it impact :
- [ ] the install size
- [ ] the performance
- [ ] the source code readability in case of error
Thanks
- Anthony Fu : for his config, for the inspiration
- Dependency-cruiser : handy tool to validate and visualize dependencies
- Esbuild : an extremely fast JavaScript bundler and minifier
- Eslint : super tool to find & fix problems
- Github : for all their great work year after year, pushing OSS forward
- Npm-parallel : to keep my npm scripts clean & readable
- Repo-checker : eslint cover /src code and this tool the rest ^^
- Shields.io : for the nice badges on top of this readme
- Sindre Sorhus : for his awesome eslint-plugin-unicorn, for the inspiration
- V8 : simple & effective cli for code coverage
- Vitest : super fast vite-native testing framework
- Watchlist : recursively watch a list of directories & run a command on any file system