Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(website): json schema for 1.4.0 #948

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Changes from all 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
176 changes: 96 additions & 80 deletions website/src/pages/schemas/1.4.0/schema.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,14 @@ export function GET() {
{ type: "null" },
],
},
noInteractiveElementToNoninteractiveRole: {
description:
"Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
noNoninteractiveElementToInteractiveRole: {
description:
"Enforce that interactive ARIA roles are not assigned to non-interactive HTML elements.",
Expand Down Expand Up @@ -184,6 +192,14 @@ export function GET() {
{ type: "null" },
],
},
useAriaActivedescendantWithTabindex: {
description:
"Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
useAriaPropsForRole: {
description:
"Enforce that elements with ARIA roles must have all required ARIA attributes for that role.",
Expand Down Expand Up @@ -335,6 +351,13 @@ export function GET() {
{ type: "null" },
],
},
noThisInStatic: {
description: "Disallow this and super in static contexts.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
noUselessCatch: {
description: "Disallow unnecessary catch clauses.",
anyOf: [
Expand Down Expand Up @@ -419,6 +442,13 @@ export function GET() {
description: "It enables the recommended rules for this group",
type: ["boolean", "null"],
},
useArrowFunction: {
description: "Use arrow functions over function expressions.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
useFlatMap: {
description:
"Promotes the use of .flatMap() when map().flat() are used together.",
Expand Down Expand Up @@ -512,6 +542,14 @@ export function GET() {
{ type: "null" },
],
},
noEmptyCharacterClassInRegex: {
description:
"Disallow empty character classes in regular expression literals.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
noEmptyPattern: {
description: "Disallows empty destructuring patterns.",
anyOf: [
Expand Down Expand Up @@ -543,6 +581,14 @@ export function GET() {
{ type: "null" },
],
},
noInvalidNewBuiltin: {
description:
"Disallow new operators with global non-constructor functions.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
noNewSymbol: {
description: "Disallow new operators with the Symbol object.",
anyOf: [
Expand Down Expand Up @@ -1151,9 +1197,9 @@ export function GET() {
description: "It enables ALL rules for this group.",
type: ["boolean", "null"],
},
noApproximativeNumericConstant: {
noAriaHiddenOnFocusable: {
description:
"Usually, the definition in the standard library is more precise than what people come up with or the used constant exceeds the maximum precision of the number type.",
'Enforce that aria-hidden="true" is not set on focusable elements.',
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
Expand Down Expand Up @@ -1181,14 +1227,6 @@ export function GET() {
{ type: "null" },
],
},
noEmptyCharacterClassInRegex: {
description:
"Disallow empty character classes in regular expression literals.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
noImplicitAnyLet: {
description:
"Disallow use of implicit any type on variable declarations.",
Expand All @@ -1197,44 +1235,6 @@ export function GET() {
{ type: "null" },
],
},
noInteractiveElementToNoninteractiveRole: {
description:
"Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
noInvalidNewBuiltin: {
description:
"Disallow new operators with global non-constructor functions.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
noMisleadingInstantiator: {
description: "Enforce proper usage of new and constructor.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
noMisrefactoredShorthandAssign: {
description:
"Disallow shorthand assign when variable appears on both sides.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
noThisInStatic: {
description: "Disallow this and super in static contexts.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
noUnusedImports: {
description: "Disallow unused imports.",
anyOf: [
Expand All @@ -1249,13 +1249,6 @@ export function GET() {
{ type: "null" },
],
},
noUselessElse: {
description: "Disallow else block when the if block breaks early.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
noUselessLoneBlockStatements: {
description: "Disallow unnecessary nested block statements.",
anyOf: [
Expand All @@ -1267,29 +1260,6 @@ export function GET() {
description: "It enables the recommended rules for this group",
type: ["boolean", "null"],
},
useAriaActivedescendantWithTabindex: {
description:
"Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
useArrowFunction: {
description: "Use arrow functions over function expressions.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
useAsConstAssertion: {
description:
"Enforce the use of as const over literal type and type annotation.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
useAwait: {
description: "Ensure async functions utilize await.",
anyOf: [
Expand All @@ -1312,9 +1282,9 @@ export function GET() {
{ type: "null" },
],
},
useShorthandAssign: {
useRegexLiterals: {
description:
"Require assignment operator shorthand where possible.",
"Enforce the use of the regular expression literals instead of the RegExp constructor if possible.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
Expand Down Expand Up @@ -1747,6 +1717,13 @@ export function GET() {
{ type: "null" },
],
},
noUselessElse: {
description: "Disallow else block when the if block breaks early.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
noVar: {
description: "Disallow the use of var",
anyOf: [
Expand All @@ -1758,6 +1735,14 @@ export function GET() {
description: "It enables the recommended rules for this group",
type: ["boolean", "null"],
},
useAsConstAssertion: {
description:
"Enforce the use of as const over literal type and type annotation.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
useBlockStatements: {
description: "Requires following curly brace conventions.",
anyOf: [
Expand Down Expand Up @@ -1852,6 +1837,14 @@ export function GET() {
{ type: "null" },
],
},
useShorthandAssign: {
description:
"Require assignment operator shorthand where possible.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
useSingleCaseStatement: {
description:
"Enforces switch clauses have a single statement, emits a quick fix wrapping the statements in a block.",
Expand Down Expand Up @@ -1893,6 +1886,14 @@ export function GET() {
description: "It enables ALL rules for this group.",
type: ["boolean", "null"],
},
noApproximativeNumericConstant: {
description:
"Usually, the definition in the standard library is more precise than what people come up with or the used constant exceeds the maximum precision of the number type.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
noArrayIndexKey: {
description: "Discourage the usage of Array index in keys.",
anyOf: [
Expand Down Expand Up @@ -2095,6 +2096,21 @@ export function GET() {
{ type: "null" },
],
},
noMisleadingInstantiator: {
description: "Enforce proper usage of new and constructor.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
noMisrefactoredShorthandAssign: {
description:
"Disallow shorthand assign when variable appears on both sides.",
anyOf: [
{ $ref: "#/definitions/RuleConfiguration" },
{ type: "null" },
],
},
noPrototypeBuiltins: {
description: "Disallow direct use of Object.prototype builtins.",
anyOf: [
Expand Down