Skip to content

Commit 33dcd46

Browse files
feat: disable id-length (#290)
Disabling the `id-length` rule because it was manually disabled in consumer repos (sourcegraph and cody).
1 parent 010c032 commit 33dcd46

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

.eslintrc.js

+1-23
Original file line numberDiff line numberDiff line change
@@ -257,29 +257,7 @@ module.exports = {
257257
'unicorn/prefer-number-properties': 'off',
258258
'unicorn/custom-error-definition': 'off', // false positives: https://github.com/sindresorhus/eslint-plugin-unicorn/issues/753
259259
'unicorn/no-nested-ternary': 'off', // if-elseif-else ternaries are commonly needed in JSX and formatted well by Prettier
260-
'id-length': [
261-
'error',
262-
{
263-
min: 3,
264-
properties: 'never',
265-
exceptions: [
266-
// valid
267-
'to',
268-
'as',
269-
'id',
270-
'it', // BDD testing
271-
// NodeJS standard library
272-
'fs',
273-
'os',
274-
// conventionally used for import * as H from 'history' to not conflict with the global history
275-
'H',
276-
// allow `distinctUntilChanged((a, b) => isEqual(a, b))`,
277-
// which is extremely common and necessary to maintain type safety.
278-
'a',
279-
'b',
280-
],
281-
},
282-
],
260+
'id-length': 'off',
283261
'unicorn/prevent-abbreviations': 'off',
284262
'unused-imports/no-unused-imports': 'error',
285263
'unused-imports/no-unused-vars': 'off',

0 commit comments

Comments
 (0)