đ @kitql/eslint-config
To have linting & formatting in your project, you need 20 dep, files, ⌠and itâs a pain to maintain in each project.
Here the idea is to reduce as much as possible the config on your end. (Of course, you can still tune things)
Installation
Section titled âInstallationânpm i -D @kitql/eslint-config eslint prettierYou need to install the peer dependencies you want to use (by default: eslint, prettier).
You can add oxlint & tsgolint to your project if you want to use them.
For prettier dependencies of @kitql/eslint-config, you can add this to your .npmrc:
public-hoist-pattern[]=*prettier*eslint config
Section titled âeslint configâimport { kitql } from '@kitql/eslint-config'
/** @type { import("eslint").Linter.Config[] } */export default [ ...kitql(), { name: 'app:rules', rules: { // Some custom things? }, },]You can check your config running this tool
npx @eslint/config-inspectorprettier config
Section titled âprettier configâimport { kitql } from '@kitql/eslint-config/.prettierrc.js'
export default { ...kitql(), // Some custom things?}ignore things with
Section titled âignore things withâ.DS_Storenode_modules/build/.svelte-kit/package.env.env.*!.env.example
# Ignore files for PNPM, NPM and YARNpackage.jsonpnpm-lock.yamlpackage-lock.jsonyarn.lock
# Ignore files that are project specific/db/src/lib/ROUTES.tsAdd this to your package.json
Section titled âAdd this to your package.jsonâscripts: { "//// ---- BEST PRACTICES ---- ////": "", "lint": "kitql-lint", "format": "kitql-lint -f",}