Skip to content

Commit

Permalink
Allow 'a' and 'b' as identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
rekmarks committed Aug 15, 2022
1 parent 4d70dbb commit 946ccc3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/base/rules-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
{
"min": 2,
"properties": "never",
"exceptionPatterns": ["_", "i", "j", "k"]
"exceptionPatterns": ["_", "a", "b", "i", "j", "k"]
}
],
"implicit-arrow-linebreak": "off",
Expand Down
2 changes: 1 addition & 1 deletion packages/base/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ module.exports = {
{
min: 2,
properties: 'never',
exceptionPatterns: ['_', 'i', 'j', 'k'],
exceptionPatterns: ['_', 'a', 'b', 'i', 'j', 'k'],
},
],
'lines-between-class-members': 'error',
Expand Down
6 changes: 2 additions & 4 deletions packages/jest/rules-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,16 @@
"jest/no-standalone-expect": "error",
"jest/no-test-prefixes": "error",
"jest/no-test-return-statement": "error",
"jest/no-try-expect": "error",
"jest/prefer-hooks-on-top": "error",
"jest/prefer-spy-on": "error",
"jest/prefer-strict-equal": "error",
"jest/prefer-to-be-null": "error",
"jest/prefer-to-be-undefined": "error",
"jest/prefer-to-be": "error",
"jest/prefer-to-contain": "error",
"jest/prefer-to-have-length": "error",
"jest/prefer-todo": "error",
"jest/require-to-throw-message": "error",
"jest/require-top-level-describe": "error",
"jest/valid-describe": "error",
"jest/valid-describe-callback": "error",
"jest/valid-expect": [
"error",
{
Expand Down
1 change: 1 addition & 0 deletions packages/mocha/rules-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
}
],
"mocha/no-async-describe": "error",
"mocha/no-empty-description": "error",
"mocha/no-exclusive-tests": "error",
"mocha/no-exports": "error",
"mocha/no-global-tests": "error",
Expand Down
3 changes: 3 additions & 0 deletions packages/typescript/rules-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@typescript-eslint/no-extra-non-null-assertion": "error",
"@typescript-eslint/no-extra-semi": "off",
"@typescript-eslint/no-inferrable-types": "error",
"@typescript-eslint/no-loss-of-precision": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-namespace": [
"error",
Expand All @@ -33,6 +34,7 @@
}
],
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-unnecessary-type-constraint": "error",
"@typescript-eslint/no-unused-expressions": [
"error",
{
Expand Down Expand Up @@ -84,6 +86,7 @@
"no-extra-semi": "off",
"no-func-assign": "off",
"no-import-assign": "off",
"no-loss-of-precision": "off",
"no-new-symbol": "off",
"no-obj-calls": "off",
"no-redeclare": "off",
Expand Down

0 comments on commit 946ccc3

Please sign in to comment.