eslint-config-wernerf
v0.2.0
Published
A common eslint setting configuration.
Downloads
2
Maintainers
Readme
@werner/eslint-config
A common eslint configuration for private Typescript projects.
Usage
npm install --save-dev @werner/eslint-config eslint
Afterwards you can use the following linter rules in your project's .eslintrc:
| rule | notation | usecase | PeerDependency |
| :--------- | :------------------------------------------------------------- | :---------------------------- | :-------------------------------------------------------- |
| jasmine | @werner/eslint-config/lib/jasmine
| project which used jasmine | eslint-plugin-jasmine
|
| protractor | @werner/eslint-config/lib/protractor
| project which used protractor | eslint-plugin-protractor
|
For example:
{
"extends": [
"@werner/eslint-config",
"@werner/eslint-config/lib/angular",
"@werner/eslint-config/lib/angular/template",
"@werner/eslint-config/lib/jasmine",
"@werner/eslint-config/lib/protractor",
"@werner/eslint-config/lib/prettier"
]
}
Any project specific rules can override the settings as usual. In dependence of your imported eslint rule you also have to install the peerDependency in your project. The peerDependencies are listed in the table above for each rule.
Update
Bump the version in the package.json and run npm publish
.
TODO
Implement the linter rules for the following plugins to used these in other projects: