@kutsan/config
v0.11.0
Published
Sharable configurations files for tools that I use.
Downloads
4
Maintainers
Readme
@kutsan/config
Sharable configurations files for tools that I use.
Usage
npm install @kutsan/config --save-dev
eslint
First, install @rushstack/eslint-patch
to patch ESLint to support modern module resolver.
npm install @rushstack/eslint-patch --save-dev
Then, use in your .eslintrc.js
.
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
extends: [
require.resolve('@kutsan/config/eslint'),
require.resolve('@kutsan/config/eslint/ts'),
require.resolve('@kutsan/config/eslint/tsx')
]
}
prettier
Use as is in your prettier.config.js
.
module.exports = require('@kutsan/config/prettier')
In order to override rules, use spread operator.
module.exports = {
...require('@kutsan/config/prettier'),
semi: true
}
stylelint
Use with extends
in your stylelint.config.js
.
module.exports = {
extends: '@kutsan/config/stylelint'
}
License
GPL-3.0