Skip to content

Commit 59ea30e

Browse files
authored
Header-ify rule categories for easy linking
It's often pretty helpful to link to rule categories in eslint configuration files. This lets one link to specific categories, too
1 parent 402c60a commit 59ea30e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This plugin intends to support linting of ES2015+ (ES6+) import/export syntax, a
1212

1313
## Rules
1414

15-
**Static analysis:**
15+
### Static analysis
1616

1717
* Ensure imports point to a file/module that can be resolved. ([`no-unresolved`])
1818
* Ensure named imports correspond to a named export in the remote file. ([`named`])
@@ -36,7 +36,7 @@ This plugin intends to support linting of ES2015+ (ES6+) import/export syntax, a
3636
[`no-webpack-loader-syntax`]: ./docs/rules/no-webpack-loader-syntax.md
3737
[`no-self-import`]: ./docs/rules/no-self-import.md
3838

39-
**Helpful warnings:**
39+
### Helpful warnings
4040

4141

4242
* Report any invalid exports, i.e. re-export of the same name ([`export`])
@@ -53,7 +53,7 @@ This plugin intends to support linting of ES2015+ (ES6+) import/export syntax, a
5353
[`no-extraneous-dependencies`]: ./docs/rules/no-extraneous-dependencies.md
5454
[`no-mutable-exports`]: ./docs/rules/no-mutable-exports.md
5555

56-
**Module systems:**
56+
### Module systems
5757

5858
* Report potentially ambiguous parse goal (`script` vs. `module`) ([`unambiguous`])
5959
* Report CommonJS `require` calls and `module.exports` or `exports.*`. ([`no-commonjs`])
@@ -66,7 +66,7 @@ This plugin intends to support linting of ES2015+ (ES6+) import/export syntax, a
6666
[`no-nodejs-modules`]: ./docs/rules/no-nodejs-modules.md
6767

6868

69-
**Style guide:**
69+
### Style guide
7070

7171
* Ensure all imports appear before other statements ([`first`])
7272
* Ensure all exports appear after other statements ([`exports-last`])

0 commit comments

Comments
 (0)