Skip to content

Commit d511a9f

Browse files
authored
chore: enable no-meta-schema-default for rule schemas (#611)
1 parent e632023 commit d511a9f

6 files changed

Lines changed: 0 additions & 6 deletions

eslint.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ export default defineConfig([
6666
plugins: { 'eslint-plugin': eslintPlugin },
6767
extends: ['eslint-plugin/all'],
6868
rules: {
69-
'eslint-plugin/no-meta-schema-default': 'off', // TODO: enable once https://github.com/bmish/eslint-doc-generator/issues/513 is fixed and released
7069
'eslint-plugin/report-message-format': ['error', '^[^a-z].*.$'],
7170
'eslint-plugin/require-meta-docs-url': [
7271
'error',

lib/rules/consistent-output.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const rule: Rule.RuleModule = {
2929
description:
3030
"Whether to enforce having output assertions 'always' or to be 'consistent' when some cases have them.",
3131
enum: ['always', 'consistent'],
32-
default: 'consistent',
3332
},
3433
],
3534
defaultOptions: ['consistent'],

lib/rules/require-meta-docs-description.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const rule: Rule.RuleModule = {
2424
type: 'string',
2525
description:
2626
"A regular expression that the description must match. Use `'.+'` to allow anything.",
27-
default: '^(enforce|require|disallow)',
2827
},
2928
},
3029
additionalProperties: false,

lib/rules/require-meta-docs-recommended.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ const rule: Rule.RuleModule = {
4949
type: 'object',
5050
properties: {
5151
allowNonBoolean: {
52-
default: false,
5352
description: 'Whether to allow values of types other than boolean.',
5453
type: 'boolean',
5554
},

lib/rules/require-meta-fixable.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ const rule: Rule.RuleModule = {
3131
properties: {
3232
catchNoFixerButFixableProperty: {
3333
type: 'boolean',
34-
default: false,
3534
description:
3635
"Whether the rule should attempt to detect rules that do not have a fixer but enable the `meta.fixable` property. This option is off by default because it increases the chance of false positives since fixers can't always be detected when helper functions are used.",
3736
},

lib/rules/require-meta-schema.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const rule: Rule.RuleModule = {
2929
properties: {
3030
requireSchemaPropertyWhenOptionless: {
3131
type: 'boolean',
32-
default: true,
3332
description:
3433
'Whether the rule should require the `meta.schema` property to be specified (with `schema: []`) for rules that have no options.',
3534
},

0 commit comments

Comments
 (0)