eslint-config-ts-prefixer π
Ruleset of meaningful Lint rules on runtime and beautiful formatters. (prettier & eslint-plugin-import)
This config is:
- π¦ Zero extend for explicit rules.
- π
Prettier integration, specialized fixable
importrules. - π Use user existing
.prettierrcdirectly. - β Meamingful rules code behavior than which syntax sugar is good.
Installation
If you want to manage .eslintrc.js file on your codebase, please choose Barebone Install.
1. install necessary packages.
- npm
npm install --save-dev eslint-config-ts-prefixer eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript eslint-plugin-import eslint-import-resolver-typescript eslint-plugin-prettier prettier- yarn
yarn add -D eslint-config-ts-prefixer eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript eslint-plugin-import eslint-import-resolver-typescript eslint-plugin-prettier prettier- pnpm
pnpm add -D eslint-config-ts-prefixer eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript eslint-plugin-import eslint-import-resolver-typescript eslint-plugin-prettier prettier- bun
bun add -d eslint-config-ts-prefixer eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript eslint-plugin-import eslint-import-resolver-typescript eslint-plugin-prettier prettier2. Setup config files with npx eslint-config-ts-prefixer config.
npx eslint-config-ts-prefixer config
Run this command on a project root directory
then create config files .eslintrc.cjs .prettierrc .eslintignore,
inseart lint,lint:fix commands to paclage.json,
include "./**.js", "./**.ts", "./**.cjs", "./**.mjs" to tsconfig.json that need for typescrit eslint parser.
npx eslint-config-ts-prefixer configOK, you are ready to use!
just run npm run lint:fix to apply this package's configurations! π
{
"scripts": {
"lint": "eslint . --ext .ts,.tsx,.js,jsx",
"lint:fix": "eslint . --ext .ts,.tsx,.js,jsx --fix"
}
}If you use VSCode and ESLint Extension,
you can get great developer experience with the shortcut.
And Webstorm native support ESLint.
Bareborn Install
Bareborn Install is create the eslint-config-ts-prefixer's .eslintrc.js file directly in your code base.
You can manage the rules yourself.
1. install necessary packages.
- npm
npm install --save-dev eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript eslint-plugin-import eslint-import-resolver-typescript eslint-plugin-prettier eslint-plugin-sort-keys-custom-order prettier- yarn
yarn add -D eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript eslint-plugin-import eslint-import-resolver-typescript eslint-plugin-prettier eslint-plugin-sort-keys-custom-order prettier- pnpm
pnpm add -D eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript eslint-plugin-import eslint-import-resolver-typescript eslint-plugin-prettier eslint-plugin-sort-keys-custom-order prettier- bun
bun add -d eslint-config-ts-prefixer eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser typescript eslint-plugin-import eslint-import-resolver-typescript eslint-plugin-prettier eslint-plugin-sort-keys-custom-order prettier2. run npx eslint-config-ts-prefixer barebone
- run
npx eslint-config-ts-prefixer bareboneAnd then generated .eslintrc.cjs(copy of index.js), .eslintignore, .prettierrc.
inseart lint,lint:fix commands to paclage.json,
include "./**.js", "./**.ts", "./**.cjs", "./**.mjs" to tsconfig.json that need for typescrit eslint parser.
OK, you are ready to use!
just run npm run lint:fix to apply this package's configurations! π
{
"scripts": {
"lint": "eslint . --ext .ts,.tsx,.js,jsx",
"lint:fix": "eslint . --ext .ts,.tsx,.js,jsx --fix"
}
}LICENSE
Contributors β¨
Thanks goes to these wonderful people (emoji key):
ryota-murakami π» π |


