Skip to content

Commit b8bef10

Browse files
committed
fix(sort): loc to dependency array
1 parent 7345db1 commit b8bef10

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# eslint-plugin-sort-react-dependency-arrays
2-
ESLint plugin to enforce alphabetically sorted React hook dependency arrays.
2+
ESLint plugin to enforce alphanumerically sorted React hook dependency arrays.
33

44
Works with --fix.
55

@@ -29,7 +29,7 @@ Add `sort-react-dependency-arrays` to the plugins section of your `.eslintrc` co
2929
}
3030
```
3131

32-
Then configure the rule under the rules section.
32+
Then enable the rule under the rules section.
3333

3434
```json
3535
{

lib/rules/sort.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = {
5454
)
5555
),
5656
message: 'Sort dependencies',
57-
node,
57+
loc: dependencies.loc,
5858
});
5959
}
6060
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "eslint-plugin-sort-react-dependency-arrays",
33
"description": "ESLint plugin to alphabetically sort React hook dependency arrays",
4-
"version": "0.1.0",
4+
"version": "0.2.0",
55
"author": "Steven Sacks <[email protected]>",
66
"keywords": [
77
"eslint",

0 commit comments

Comments
 (0)