File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
44Works 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{
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ module.exports = {
5454 )
5555 ) ,
5656 message : 'Sort dependencies' ,
57- node ,
57+ loc : dependencies . loc ,
5858 } ) ;
5959 }
6060 }
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments