diff --git a/packages/eslint-plugin/docs/rules/consistent-type-definitions.md b/packages/eslint-plugin/docs/rules/consistent-type-definitions.md index 1688552d8f0..9a2990a49be 100644 --- a/packages/eslint-plugin/docs/rules/consistent-type-definitions.md +++ b/packages/eslint-plugin/docs/rules/consistent-type-definitions.md @@ -25,7 +25,7 @@ This rule accepts one string option: For example: -```CJSON +```JSONC { // Use type for object definitions "@typescript-eslint/consistent-type-definitions": ["error", "type"] diff --git a/packages/eslint-plugin/docs/rules/dot-notation.md b/packages/eslint-plugin/docs/rules/dot-notation.md index f827b003e57..bd1ea7487df 100644 --- a/packages/eslint-plugin/docs/rules/dot-notation.md +++ b/packages/eslint-plugin/docs/rules/dot-notation.md @@ -7,7 +7,7 @@ It adds support for optionally ignoring computed `private` member access. ## How to use -```cjson +```jsonc { // note you must disable the base rule as it can report incorrect errors "dot-notation": "off", diff --git a/packages/eslint-plugin/docs/rules/init-declarations.md b/packages/eslint-plugin/docs/rules/init-declarations.md index 8888e2efef2..f83c5bd9c3f 100644 --- a/packages/eslint-plugin/docs/rules/init-declarations.md +++ b/packages/eslint-plugin/docs/rules/init-declarations.md @@ -7,7 +7,7 @@ It adds support for TypeScript's `declare` variables. ## How to use -```cjson +```jsonc { // note you must disable the base rule as it can report incorrect errors "init-declarations": "off", diff --git a/packages/eslint-plugin/docs/rules/keyword-spacing.md b/packages/eslint-plugin/docs/rules/keyword-spacing.md index ca2926d6c82..3178542d2d6 100644 --- a/packages/eslint-plugin/docs/rules/keyword-spacing.md +++ b/packages/eslint-plugin/docs/rules/keyword-spacing.md @@ -7,7 +7,7 @@ This version adds support for generic type parameters on function calls. ## How to use -```cjson +```jsonc { // note you must disable the base rule as it can report incorrect errors "keyword-spacing": "off", diff --git a/packages/eslint-plugin/docs/rules/lines-between-class-members.md b/packages/eslint-plugin/docs/rules/lines-between-class-members.md index 06cdf55421e..e2692bb18a0 100644 --- a/packages/eslint-plugin/docs/rules/lines-between-class-members.md +++ b/packages/eslint-plugin/docs/rules/lines-between-class-members.md @@ -11,7 +11,7 @@ See the [ESLint documentation](https://eslint.org/docs/rules/lines-between-class ## Rule Changes -```cjson +```jsonc { // note you must disable the base rule as it can report incorrect errors "lines-between-class-members": "off", diff --git a/packages/eslint-plugin/docs/rules/no-invalid-this.md b/packages/eslint-plugin/docs/rules/no-invalid-this.md index ac9dc30122c..728c42b7f2c 100644 --- a/packages/eslint-plugin/docs/rules/no-invalid-this.md +++ b/packages/eslint-plugin/docs/rules/no-invalid-this.md @@ -7,7 +7,7 @@ It adds support for TypeScript's `this` parameters. ## How to use -```cjson +```jsonc { // note you must disable the base rule as it can report incorrect errors "no-invalid-this": "off", diff --git a/packages/eslint-plugin/docs/rules/no-loop-func.md b/packages/eslint-plugin/docs/rules/no-loop-func.md index d48d38c20f6..d4e66d6c7de 100644 --- a/packages/eslint-plugin/docs/rules/no-loop-func.md +++ b/packages/eslint-plugin/docs/rules/no-loop-func.md @@ -7,7 +7,7 @@ It adds support for TypeScript types. ## How to use -```cjson +```jsonc { // note you must disable the base rule as it can report incorrect errors "no-loop-func": "off", diff --git a/packages/eslint-plugin/src/configs/README.md b/packages/eslint-plugin/src/configs/README.md index 3f232c7d9df..c3ee9dbddf8 100644 --- a/packages/eslint-plugin/src/configs/README.md +++ b/packages/eslint-plugin/src/configs/README.md @@ -8,7 +8,7 @@ The `eslint-recommended` ruleset is meant to be used after extending `eslint:rec This config is automatically included if you use either the `recommended` or `recommended-requiring-type-checking` configs. -```cjson +```jsonc { "extends": [ "eslint:recommended", @@ -40,7 +40,7 @@ We will not add new rules to the `recommended` set unless we release a major pac If you disagree with a rule (or it disagrees with your codebase), consider using your local config to change the rule config so it works for your project. -```cjson +```jsonc { "extends": ["plugin:@typescript-eslint/recommended"], "rules": {