mirror of
https://git.boykissers.com/pawkey/pawkey-sk.git
synced 2025-12-20 04:04:16 +00:00
disable '@typescript-eslint/prefer-nullish-coalescing' for primitive types
This commit is contained in:
@@ -42,13 +42,6 @@ export default [
|
||||
name: '__filename',
|
||||
message: 'Not in ESModule. Use `import.meta.url` instead.',
|
||||
}],
|
||||
// https://typescript-eslint.io/rules/prefer-nullish-coalescing/
|
||||
'@typescript-eslint/prefer-nullish-coalescing': ['warn', {
|
||||
ignorePrimitives: {
|
||||
// Without this, the rule breaks for nullable booleans
|
||||
boolean: true,
|
||||
},
|
||||
}],
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
@@ -37,6 +37,10 @@ export default [
|
||||
'no-restricted-imports': ['error', {
|
||||
paths: [{ name: 'punycode' }],
|
||||
}],
|
||||
// https://typescript-eslint.io/rules/prefer-nullish-coalescing/
|
||||
'@typescript-eslint/prefer-nullish-coalescing': ['warn', {
|
||||
ignorePrimitives: true,
|
||||
}],
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user