@kmkzt/eslint-config
v0.0.5
Published
## install
Downloads
2
Readme
@kmkzt/eslint-config
install
yarn add -D @kmkzt/eslint-config
How to use
For JavaScript
module.exports = {
extends: ['@kmkzt'],
}
For Node
module.exports = {
extends: ['@kmkzt/eslint-config/node'],
}
For TypeScript
module.exports = {
extends: ['@kmkzt/eslint-config/react'],
}
For React
module.exports = {
extends: ['@kmkzt/eslint-config/react'],
}
Custom Settings
module.exports = {
extends: ['@kmkzt/eslint-config/lib/javascript'],
overrides: [
{
files: ['*.tsx', '*.jsx'],
extends: ['@kmkzt/eslint-config/lib/react'],
},
{
files: ['*.ts', '*.tsx'],
extends: ['@kmkzt/eslint-config/lib/typescript'],
},
{
files: ['*.test.*', '*.spec.*'],
extends: ['@kmkzt/eslint-config/lib/jest'],
},
{
files: ['scripts/**'],
extends: ['@kmkzt/eslint-config/lib/node'],
},
],
}