@zenklub/eslint-config
v1.0.1
Published
Quite opinionated ESLint config
Downloads
247
Readme
Zenklub ESLint config
Quite opinionated ESLint config
Installation
$ npm i -D @zenklub/eslint-config eslint eslint-plugin-prettier @typescript-eslint/eslint-plugin prettier
or
$ yarn add -D @zenklub/eslint-config eslint eslint-plugin-prettier @typescript-eslint/eslint-plugin prettier
Usage
In your .eslintrc.json
:
{
"extends": ["@zenklub"]
}
and in yourt .prettierrc
:
{
"singleQuote": true,
"useTabs": true
}
(Optional) Import sort
To have import working just install prettier-plugin-import-sort
and a sort style (ie. import-sort-style-module
)
$ npm i -D prettier-plugin-import-sort import-sort-style-module
$ yarn add -D prettier-plugin-import-sort import-sort-style-module
and in package.json
{
[...],
"importSort": {
".js, .jsx, .ts, .tsx": {
"style": "module"
}
}
}