Requirements

February 25, 2026 ยท View on GitHub

eslint-config-ts-prefixer ๐ŸŒˆ

npm downloads Lint

Ruleset of meaningful Lint rules on runtime and import formatters. eslint-plugin-import-x


This setup is:

  • ๐Ÿ“ฆ Zero extend for explicit rules.
  • ๐Ÿ’… specialized fixable import rules.
  • โœ… Meamingful rules code behavior than which syntax sugar is good.

Requirements

  • Node.js 20.11.0 or higher
  • ESLint v9
  • TypeScript v5 and tsconfig.json file

Installation

If you are using ESLint v8, please follow eslint-config-ts-prefixer@1.14.2 Installation guide.

1. install necessary packages.

  • 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-prefixer

2. Add eslint-config-ts-prefixer to eslint.config.js in your project.

import { 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
      },
    },
  },
])

3. Add lint script to package.json in your project.

{
  "scripts": {
    "lint": "eslint . --concurrency=auto --max-warnings=0",
    "lint:fix": "eslint . --fix --concurrency=auto --max-warnings=0"
  }
}

That's all, you are ready to use!

just run npm run lint:fix to apply this package's configurations! ๐ŸŽ‰

Explore All Lint Rules

config

https://github.com/laststance/eslint-config-ts-prefixer/blob/main/eslint.config.mjs

Docs

https://website-eslint-config-ts-prefixer.vercel.app/

LICENSE

MIT

Contributors โœจ

Thanks goes to these wonderful people (emoji key):


ryota-murakami

๐Ÿ’ป ๐Ÿ“– โš ๏ธ