0.2.0 • Published 2 years ago

eslint-config-wernerf v0.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

@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:

rulenotationusecasePeerDependency
jasmine@werner/eslint-config/lib/jasmineproject which used jasmineeslint-plugin-jasmine
protractor@werner/eslint-config/lib/protractorproject which used protractoreslint-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: