eslint-config-kalle
v0.0.6
Published
ESLint and Prettier Config from Kalle Chen
Downloads
3
Maintainers
Readme
eslint-config-kalle
Inspired by wesbos/eslint-config-wesbos
Usage
- Install needed packages
npx install-peersdeps --dev eslint-config-kalle
- Create a
.eslintrc.js
file in project's root directory. Your.eslintrc.js
file should look like this:
{
"extends": ["kalle"]
}
For typescript project, use kalle/typescript
module.exports = {
extends: ['kalle/typescript']
}
- If you want to format with
prettier
, you should create a.prettirerc.js
file. It should look like this:
module.exports = {
trailingComma: 'es5',
singleQuote: true,
printWidth: 80,
semi: false,
};