1.2.1 • Published 4 months ago

eslint-plugin-assorted-rules v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

eslint-plugin-assorted-rules

An assortment of linting rules for typescript and angular

Unit Tests

Installation

npm i --save-dev eslint eslint-plugin-assorted-rules

Note: If you installed ESLint globally then you must also install eslint-plugin-assorted-rules globally.

Usage

Add assorted-rules to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": ["assorted-rules"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "assorted-rules/if-else": "warn"
  }
}

Rules

NameDescriptionStatus
if-elseEnforce every if has an else
if-blockEnforce all if statements have curly braces
while-blockEnforce all while statements have curly braces
for-blockEnforce all for statements have curly braces
switch-defaultEnforce switch statements have a default case
i-interfaceEnforce all interface names start with 'I'
file-lint-disableDon't allow disabling linting rules for entire file
triple-equalsAlways use === instead of ==
hardcoded-colorsDisallow hard coded colors in ts files🔧
jsdoc-requiredEnforce jsdoc comments for all methods

✅ Complete

🔧 In Progress

❓ Check if possible

Publishing (developer only)

npm run build
npm run publish
1.2.1

4 months ago

1.1.7

8 months ago

1.1.6

8 months ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago