1.0.0 • Published 3 years ago

@d-hussar/eslint-plugin v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

d-hussar ESLint Plugin

GitHub license NPM Version semantic-release

Installation

The plugin uses @typescript-eslint/parser even for javascript projects.

npm i --save-dev @d-hussar/eslint-plugin

Note: make sure that your project has typescript and eslint installed.

Usage

Add @d-hussar to the plugins section of a .eslintrc file. In the extends section add the desired config.

{
  "plugin": [
    "@d-hussar"
  ],
  "extends": [
    "plugin:@d-hussar/javascript"
  ]
}

Note: make sure the appropriate extensions are passed in the eslint command. By default, eslint searches only for .js files.

Configs

The plugin contains two configs:

  • plugin:@d-hussar/javascript describes general rules
  • plugin:@d-hussar/typescript contains javascript config and rules specific for TS

License

The code is licensed under MIT.