Ruleset of meaningful Lint rules on runtime and import formatters. eslint-plugin-import-x
- 📦 Zero extend for explicit rules.
- 💅 specialized fixable
importrules. - ✅ Meamingful rules code behavior than which syntax sugar is good.
- 🧹 redundant TypeScript assertions fail with
@typescript-eslint/no-unnecessary-type-assertion.
This repository also publishes oxlint-config-ts-prefixer, a native-first Oxlint package with optional type-aware rules and Oxfmt import sorting.
The package is currently available from npm under the beta dist-tag:
pnpm add -D oxlint-config-ts-prefixer@beta oxlint- Node.js 20.11.0 or higher
- ESLint v9
- TypeScript v5 or v6.0 and a
tsconfig.jsonfile
If you are using ESLint v8, please follow eslint-config-ts-prefixer@1.14.2 Installation guide.
- pnpm
pnpm add -D eslint-config-ts-prefixer@latest- npm
npm install --save-dev eslint-config-ts-prefixer@latest- yarn
yarn add -D eslint-config-ts-prefixerimport { defineConfig } from 'eslint/config'
import tsPrefixer from 'eslint-config-ts-prefixer'
export default defineConfig([
...tsPrefixer,
{
languageOptions: {
parserOptions: {
tsconfigRootDir: import.meta.dirname, // get user tsconfig.json dirname
},
},
},
]){
"scripts": {
"lint": "eslint . --concurrency=auto --max-warnings=0",
"lint:fix": "eslint . --fix --concurrency=auto --max-warnings=0"
}
}just run npm run lint:fix to apply this package's configurations! 🎉
https://github.com/laststance/eslint-config-ts-prefixer/blob/main/eslint.config.mjs
https://website-eslint-config-ts-prefixer.vercel.app/
Thanks goes to these wonderful people (emoji key):
ryota-murakami 💻 📖 |