@davidborzek/eslint-config
v1.0.3
Published
A eslint config for my typescript projects.
Downloads
5
Maintainers
Readme
eslint-config
A eslint config for my typescript projects.
Setup
1) Install
yarn add -D @davidborzek/eslint-config
2) Configure
You have to options to include the config in your projects.
- Add the config to a
.eslintrc.js
module.exports = {
extends: "@davidborzek",
rules: {},
};
You can also add additional rules.
- Add it to the
package.json
of your project
{
"eslintConfig": {
"extends": "@davidborzek"
}
}
3) Linting scripts (optional)
For lint fix and check scripts you can add the following lines to your package.json
scripts:
{
"scripts": {
"lint": "eslint 'src/**/*.ts'",
"lint-tests": "eslint 'test/**/*.ts'"
}
}