File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
# 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.
3
3
4
4
Works with --fix.
5
5
@@ -29,7 +29,7 @@ Add `sort-react-dependency-arrays` to the plugins section of your `.eslintrc` co
29
29
}
30
30
```
31
31
32
- Then configure the rule under the rules section.
32
+ Then enable the rule under the rules section.
33
33
34
34
``` json
35
35
{
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ module.exports = {
54
54
)
55
55
) ,
56
56
message : 'Sort dependencies' ,
57
- node ,
57
+ loc : dependencies . loc ,
58
58
} ) ;
59
59
}
60
60
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " eslint-plugin-sort-react-dependency-arrays" ,
3
3
"description" : " ESLint plugin to alphabetically sort React hook dependency arrays" ,
4
- "version" : " 0.1 .0" ,
4
+ "version" : " 0.2 .0" ,
5
5
"author" :
" Steven Sacks <[email protected] >" ,
6
6
"keywords" : [
7
7
" eslint" ,
You can’t perform that action at this time.
0 commit comments