Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: enable eslint-plugin/require-meta-schema-description internally#11647

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletioneslint.config.mjs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -479,7 +479,6 @@ export default defineConfig(
// TODO (43081j): maybe enable these one day?
'eslint-plugin/no-meta-replaced-by': 'off',
'eslint-plugin/require-meta-default-options': 'off',
'eslint-plugin/require-meta-schema-description': 'off',
},
},
{
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -145,6 +145,8 @@ export default createRule<Options, MessageIds>({
properties: {
formatWithPrettier: {
type: 'boolean',
description:
'Whether to enforce formatting of code snippets using Prettier.',
},
},
},
Expand Down
24 changes: 20 additions & 4 deletionspackages/eslint-plugin/src/rules/ban-ts-comment.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -89,10 +89,26 @@ export default createRule<Options, MessageIds>({
description:
'A minimum character length for descriptions when `allow-with-description` is enabled.',
},
'ts-check': { $ref: '#/items/0/$defs/directiveConfigSchema' },
'ts-expect-error': { $ref: '#/items/0/$defs/directiveConfigSchema' },
'ts-ignore': { $ref: '#/items/0/$defs/directiveConfigSchema' },
'ts-nocheck': { $ref: '#/items/0/$defs/directiveConfigSchema' },
'ts-check': {
$ref: '#/items/0/$defs/directiveConfigSchema',
description:
'Whether allow ts-check directives, and with which restrictions.',
},
'ts-expect-error': {
$ref: '#/items/0/$defs/directiveConfigSchema',
description:
'Whether and when expect-error directives, and with which restrictions.',
},
'ts-ignore': {
$ref: '#/items/0/$defs/directiveConfigSchema',
description:
'Whether allow ts-ignore directives, and with which restrictions.',
},
'ts-nocheck': {
$ref: '#/items/0/$defs/directiveConfigSchema',
description:
'Whether allow ts-nocheck directives, and with which restrictions.',
},
},
},
],
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -100,13 +100,31 @@ export default createRule<Options, MessageIds>({
description:
'Changes to required accessibility modifiers for specific kinds of class members.',
properties: {
accessors: { $ref: '#/items/0/$defs/accessibilityLevel' },
constructors: { $ref: '#/items/0/$defs/accessibilityLevel' },
methods: { $ref: '#/items/0/$defs/accessibilityLevel' },
accessors: {
$ref: '#/items/0/$defs/accessibilityLevel',
description:
'Which member accessibility modifier requirements to apply for accessors.',
},
constructors: {
$ref: '#/items/0/$defs/accessibilityLevel',
description:
'Which member accessibility modifier requirements to apply for constructors.',
},
methods: {
$ref: '#/items/0/$defs/accessibilityLevel',
description:
'Which member accessibility modifier requirements to apply for methods.',
},
parameterProperties: {
$ref: '#/items/0/$defs/accessibilityLevel',
description:
'Which member accessibility modifier requirements to apply for parameterProperties.',
},
properties: {
$ref: '#/items/0/$defs/accessibilityLevel',
description:
'Which member accessibility modifier requirements to apply for properties.',
},
properties: { $ref: '#/items/0/$defs/accessibilityLevel' },
},
},
},
Expand Down
5 changes: 5 additions & 0 deletionspackages/eslint-plugin/src/rules/member-ordering.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -790,18 +790,23 @@ export default createRule<Options, MessageIds>({
properties: {
classes: {
$ref: '#/items/0/$defs/baseConfig',
description: 'Which ordering to enforce for classes.',
},
classExpressions: {
$ref: '#/items/0/$defs/baseConfig',
description: 'Which ordering to enforce for classExpressions.',
},
default: {
$ref: '#/items/0/$defs/baseConfig',
description: 'Which ordering to enforce for default.',
},
interfaces: {
$ref: '#/items/0/$defs/typesConfig',
description: 'Which ordering to enforce for interfaces.',
},
typeLiterals: {
$ref: '#/items/0/$defs/typesConfig',
description: 'Which ordering to enforce for typeLiterals.',
},
},
},
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,6 +31,7 @@ export default createRule<Options, MessageIds>({
schema: [
{
type: 'string',
description: 'The method signature style to enforce using.',
enum: ['property', 'method'],
},
],
Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -200,9 +200,12 @@ export default createRule<Options, MessageId>({
oneOf: [
{
type: 'boolean',
description: 'Always ignore or not ignore the loop conditions',
},
{
type: 'string',
description:
'Which situations to ignore constant conditions in.',
enum: ['always', 'never', 'only-allowed-literals'],
},
],
Expand Down
1 change: 1 addition & 0 deletionspackages/eslint-plugin/src/rules/no-unused-vars.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -86,6 +86,7 @@ export default createRule<Options, MessageIds>({
oneOf: [
{
type: 'string',
description: 'Broad setting for unused variables to target.',
enum: ['all', 'local'],
},
{
Expand Down
2 changes: 2 additions & 0 deletionspackages/eslint-plugin/src/rules/no-use-before-define.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -231,6 +231,8 @@ export default createRule<Options, MessageIds>({
oneOf: [
{
type: 'string',
description:
'Broadly set functions and allowNamedExports to false.',
enum: ['nofunc'],
},
{
Expand Down
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

Loading

[8]ページ先頭

©2009-2025 Movatter.jp