Skip to content

Commit

Permalink
Chore: Create an enum for rule category
Browse files Browse the repository at this point in the history
Also, remove unused `fixable` field.

Close #542
  • Loading branch information
sarvaje authored and alrra committed Sep 28, 2017
1 parent 8138ee4 commit e929ae1
Show file tree
Hide file tree
Showing 31 changed files with 84 additions and 978 deletions.
13 changes: 7 additions & 6 deletions docs/developer-guide/rules/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ related to this new rule. A complete list of the questions is shown below:

* What's the name of this new rule?
* Please select the category of this new rule:
* Accessibility
* Interoperability
* Performance
* PWAs
* Security
* accessibility
* interoperability
* performance
* pwa
* security
* What's the description of this new rule?
* Please select the category of use case:
* DOM
Expand Down Expand Up @@ -128,6 +128,7 @@ The following is a basic template for a rule (`import` paths might change
depending on the rule type):

```ts
import { Category } from '../../enums/category';
import { IFetchEnd, IRule, IRuleBuilder } from '../../types';
import { RuleContext } from '../../rule-context';

Expand Down Expand Up @@ -200,7 +201,7 @@ Rules have an object `meta` that defines several properties:
```json
{
"docs": {
"category": "string",
"category": "Category",
"description": "string"
},
"recommended": "boolean", // If the rule is part of the recommended options
Expand Down
Loading

0 comments on commit e929ae1

Please sign in to comment.