Skip to content

Commit c05d872

Browse files
committed
fix(rules): Turn off default-param-last until it is configurable
1 parent 25ac226 commit c05d872

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

packages/eslint-config-zillow-base/rules/best-practices.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ module.exports = {
3333
'default-case-last': 'error',
3434

3535
// https://eslint.org/docs/rules/default-param-last
36-
'default-param-last': 'error',
36+
// TODO: enable when it is configurable (breaks valid redux reducers)
37+
'default-param-last': 'off',
3738

3839
// encourages use of dot notation whenever possible
3940
'dot-notation': ['error', { allowKeywords: true }],

packages/eslint-config-zillow-typescript/rules/all-remaining.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ module.exports = {
3434
],
3535

3636
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/default-param-last.md
37+
// TODO: enable when it is configurable (breaks valid redux reducers)
3738
'default-param-last': 'off',
38-
'@typescript-eslint/default-param-last': 'error',
39+
'@typescript-eslint/default-param-last': 'off',
3940

4041
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/dot-notation.md
4142
'dot-notation': 'off',

packages/eslint-plugin-zillow/test/__snapshots__/eslint-plugin-zillow.test.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ Object {
478478
"error",
479479
],
480480
"default-param-last": Array [
481-
"error",
481+
"off",
482482
],
483483
"dot-location": Array [
484484
"off",
@@ -3081,7 +3081,7 @@ Object {
30813081
},
30823082
],
30833083
"zillow/@typescript-eslint/default-param-last": Array [
3084-
"error",
3084+
"off",
30853085
],
30863086
"zillow/@typescript-eslint/dot-notation": Array [
30873087
"error",

0 commit comments

Comments
 (0)