Skip to content

Commit dedcb92

Browse files
committed
Run prettier on README, too
1 parent ade0863 commit dedcb92

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

README.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
# eslint-plugin-local-rules
2+
23
A plugin for ESLint that allows you to use project-specific rules, similar to the [`--rulesdir`](http://eslint.org/docs/user-guide/command-line-interface#--rulesdir) command line option ([more](http://eslint.org/docs/developer-guide/working-with-rules#runtime-rules)).
34

45
Workaround for https://github.com/eslint/eslint/issues/8769 (previously https://github.com/eslint/eslint/issues/2715).
56

6-
77
## Other solutions
88

9-
* https://github.com/taskworld/eslint-plugin-local
10-
* https://github.com/not-an-aardvark/eslint-plugin-rulesdir
11-
* Allows for a custom rules directory name
12-
9+
- https://github.com/taskworld/eslint-plugin-local
10+
- https://github.com/not-an-aardvark/eslint-plugin-rulesdir
11+
- Allows for a custom rules directory name
1312

1413
## Dependencies
1514

16-
* Requires ESLint version 0.8.0 or higher
17-
15+
- Requires ESLint version 0.8.0 or higher
1816

1917
## Install
2018

2119
```
2220
npm install eslint-plugin-local-rules
2321
```
2422

25-
2623
## Usage
2724

2825
### ./eslint-local-rules.js (or ./eslint-local-rules/index.js)
@@ -40,9 +37,9 @@ module.exports = {
4037
},
4138
schema: [],
4239
},
43-
create: function(context) {
40+
create: function (context) {
4441
return {
45-
Identifier: function(node) {
42+
Identifier: function (node) {
4643
context.report({
4744
node: node,
4845
message: 'Identifiers not allowed for Super Important reasons.',
@@ -58,17 +55,14 @@ module.exports = {
5855

5956
```json
6057
{
61-
"plugins": [
62-
"eslint-plugin-local-rules"
63-
],
58+
"plugins": ["eslint-plugin-local-rules"],
6459

6560
"rules": {
6661
"local-rules/disallow-identifiers": 2
6762
}
6863
}
6964
```
7065

71-
7266
## License
7367

7468
MIT

0 commit comments

Comments
 (0)