Skip to content

Commit

Permalink
feat: disable id-length (#290)
Browse files Browse the repository at this point in the history
Disabling the `id-length` rule because it was manually disabled in consumer repos (sourcegraph and cody).
  • Loading branch information
valerybugakov committed Oct 9, 2023
1 parent 010c032 commit 33dcd46
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions .eslintrc.js
Expand Up @@ -257,29 +257,7 @@ module.exports = {
'unicorn/prefer-number-properties': 'off',
'unicorn/custom-error-definition': 'off', // false positives: https://github.com/sindresorhus/eslint-plugin-unicorn/issues/753
'unicorn/no-nested-ternary': 'off', // if-elseif-else ternaries are commonly needed in JSX and formatted well by Prettier
'id-length': [
'error',
{
min: 3,
properties: 'never',
exceptions: [
// valid
'to',
'as',
'id',
'it', // BDD testing
// NodeJS standard library
'fs',
'os',
// conventionally used for import * as H from 'history' to not conflict with the global history
'H',
// allow `distinctUntilChanged((a, b) => isEqual(a, b))`,
// which is extremely common and necessary to maintain type safety.
'a',
'b',
],
},
],
'id-length': 'off',
'unicorn/prevent-abbreviations': 'off',
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': 'off',
Expand Down

0 comments on commit 33dcd46

Please sign in to comment.