eslint-plugin-json-schema-validator
Version:
ESLint plugin that validates data using JSON Schema Validator.
1 lines • 8.9 kB
JSON
{"title":"JSON schema for the JavaScript configuration file","$schema":"http://json-schema.org/draft-04/schema#","definitions":{"//":{"explainer":"https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#overview","reference":"https://www.typescriptlang.org/tsconfig","reference metadata":"https://github.com/microsoft/TypeScript-Website/blob/v2/packages/tsconfig-reference/scripts/tsconfigRules.ts"},"filesDefinition":{"properties":{"files":{"type":"array","uniqueItems":true,"items":{"type":"string"}}},"not":{"required":["exclude"]}},"excludeDefinition":{"properties":{"exclude":{"type":"array","uniqueItems":true,"items":{"type":"string"}}}},"includeDefinition":{"properties":{"include":{"type":"array","uniqueItems":true,"items":{"type":"string"}}}},"compileOnSaveDefinition":{"properties":{"compileOnSave":{"type":"boolean"}}},"extendsDefinition":{"properties":{"extends":{"type":"string"}}},"compilerOptionsDefinition":{"properties":{"compilerOptions":{"type":"object","properties":{"charset":{"type":"string"},"declaration":{"type":"boolean","default":false},"declarationDir":{"type":"string"},"diagnostics":{"type":"boolean"},"disableReferencedProjectLoad":{"type":"boolean"},"emitBOM":{"type":"boolean","default":false},"emitDeclarationOnly":{"type":"boolean","default":false},"inlineSourceMap":{"type":"boolean","default":false},"inlineSources":{"type":"boolean","default":false},"jsx":{"enum":["preserve","react","react-jsx","react-jsxdev","react-native"]},"reactNamespace":{"type":"string","default":"React"},"jsxFactory":{"type":"string","default":"React.createElement"},"jsxFragmentFactory":{"type":"string","default":"React.Fragment"},"jsxImportSource":{"type":"string","default":"react"},"listFiles":{"type":"boolean"},"mapRoot":{"type":"string"},"module":{"type":"string","anyOf":[{"enum":["commonJS","amd","umd","system","es6","es2015","es2020","esnext","none"]},{"pattern":"^([Cc][Oo][Mm][Mm][Oo][Nn][Jj][Ss]|[AaUu][Mm][Dd]|[Ss][Yy][Ss][Tt][Ee][Mm]|[Ee][Ss]([356]|201[567]|2020|[Nn][Ee][Xx][Tt])|[Nn][Oo][Nn][Ee])$"}]},"moduleResolution":{"type":"string","anyOf":[{"enum":["classic","node"]},{"pattern":"^(([Nn]ode)|([Cc]lassic))$"}],"default":"classic"},"newLine":{"type":"string","anyOf":[{"enum":["crlf","lf"]},{"pattern":"^(CRLF|LF|crlf|lf)$"}]},"noEmit":{"type":"boolean","default":false},"noEmitHelpers":{"type":"boolean","default":false},"noEmitOnError":{"type":"boolean","default":false},"noImplicitAny":{"type":"boolean"},"noImplicitThis":{"type":"boolean"},"noUnusedLocals":{"type":"boolean","default":false},"noUnusedParameters":{"type":"boolean","default":false},"noLib":{"type":"boolean","default":false},"noResolve":{"type":"boolean","default":false},"skipDefaultLibCheck":{"type":"boolean","default":false},"skipLibCheck":{"type":"boolean","default":false},"outFile":{"type":"string"},"outDir":{"type":"string"},"pretty":{"type":"boolean","default":true},"removeComments":{"type":"boolean","default":true},"rootDir":{"type":"string"},"isolatedModules":{"type":"boolean","default":true},"sourceMap":{"type":"boolean","default":true},"sourceRoot":{"type":"string"},"suppressExcessPropertyErrors":{"type":"boolean","default":true},"suppressImplicitAnyIndexErrors":{"type":"boolean","default":false},"stripInternal":{"type":"boolean"},"target":{"type":"string","default":"es2015","anyOf":[{"enum":["es3","es5","es6","es2015","es2016","es2017","es2018","es2019","es2020","esnext"]},{"pattern":"^([Ee][Ss]([356]|(20(1[56789]|20))|[Nn][Ee][Xx][Tt]))$"}]},"watch":{"type":"boolean"},"fallbackPolling":{"enum":["fixedPollingInterval","priorityPollingInterval","dynamicPriorityPolling"]},"watchDirectory":{"enum":["useFsEvents","fixedPollingInterval","dynamicPriorityPolling"],"default":"useFsEvents"},"watchFile":{"enum":["fixedPollingInterval","priorityPollingInterval","dynamicPriorityPolling","useFsEvents","useFsEventsOnParentDirectory"],"default":"useFsEvents"},"experimentalDecorators":{"type":"boolean"},"emitDecoratorMetadata":{"type":"boolean"},"allowUnusedLabels":{"type":"boolean"},"noImplicitReturns":{"type":"boolean","default":false},"noUncheckedIndexedAccess":{"type":"boolean"},"noFallthroughCasesInSwitch":{"type":"boolean","default":false},"allowUnreachableCode":{"type":"boolean"},"forceConsistentCasingInFileNames":{"type":"boolean","default":false},"generateCpuProfile":{"type":"string","default":"profile.cpuprofile"},"importsNotUsedAsValues":{"default":"remove","enum":["remove","preserve","error"]},"baseUrl":{"type":"string"},"paths":{"type":"object","additionalProperties":{"type":"array","uniqueItems":true,"items":{"type":"string"}}},"plugins":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}}}},"rootDirs":{"type":"array","uniqueItems":true,"items":{"type":"string"}},"typeRoots":{"type":"array","uniqueItems":true,"items":{"type":"string"}},"types":{"type":"array","uniqueItems":true,"items":{"type":"string"}},"allowSyntheticDefaultImports":{"type":"boolean"},"noImplicitUseStrict":{"type":"boolean","default":false},"listEmittedFiles":{"type":"boolean","default":false},"disableSizeLimit":{"type":"boolean","default":false},"lib":{"type":"array","items":{"type":"string","anyOf":[{"enum":["es5","es6","es7","es2015","es2015.collection","es2015.core","es2015.generator","es2015.iterable","es2015.promise","es2015.proxy","es2015.reflect","es2015.symbol.wellknown","es2015.symbol","es2016","es2016.array.include","es2017","es2017.intl","es2017.object","es2017.sharedmemory","es2017.string","es2017.typedarrays","es2018","es2018.asynciterable","es2018.intl","es2018.promise","es2018.regexp","es2019","es2019.array","es2019.object","es2019.string","es2019.symbol","es2020","es2020.bigint","es2020.promise","es2020.string","es2020.symbol.wellknown","esnext","esnext.array","esnext.asynciterable","esnext.bigint","esnext.intl","esnext.symbol","dom","dom.iterable","scripthost","webworker","webworker.importscripts"]},{"pattern":"^[Ee][Ss]5|[Ee][Ss]6|[Ee][Ss]7$"},{"pattern":"^[Ee][Ss]2015(\\.([Cc][Oo][Ll][Ll][Ee][Cc][Tt][Ii][Oo][Nn]|[Cc][Oo][Rr][Ee]|[Gg][Ee][Nn][Ee][Rr][Aa][Tt][Oo][Rr]|[Ii][Tt][Ee][Rr][Aa][Bb][Ll][Ee]|[Pp][Rr][Oo][Mm][Ii][Ss][Ee]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]|[Ss][Yy][Mm][Bb][Oo][Ll]))?$"},{"pattern":"^[Dd][Oo][Mm](\\.[Ii][Tt][Ee][Rr][Aa][Bb][Ll][Ee])?$"},{"pattern":"^[Ss][Cc][Rr][Ii][Pp][Tt][Hh][Oo][Ss][Tt]$"},{"pattern":"^[Ww][Ee][Bb][Ww][Oo][Rr][Kk][Ee][Rr](\\.[Ii][Mm][Pp][Oo][Rr][Tt][Ss][Cc][Rr][Ii][Pp][Tt][Ss])?$"}]}},"strictNullChecks":{"type":"boolean","default":false},"maxNodeModuleJsDepth":{"type":"number","default":2},"alwaysStrict":{"type":"boolean"},"strict":{"type":"boolean","default":false},"strictBindCallApply":{"type":"boolean","default":false},"checkJs":{"type":"boolean","default":false},"strictFunctionTypes":{"type":"boolean","default":false},"strictPropertyInitialization":{"type":"boolean","default":false},"esModuleInterop":{"type":"boolean","default":false},"allowUmdGlobalAccess":{"type":"boolean","default":false},"keyofStringsOnly":{"type":"boolean","default":false},"useDefineForClassFields":{"type":"boolean","default":false},"declarationMap":{"type":"boolean","default":false},"resolveJsonModule":{"type":"boolean","default":false},"assumeChangesOnlyAffectDirectDependencies":{"type":"boolean"}},"additionalProperties":false}}},"typeAcquisitionDefinition":{"properties":{"typeAcquisition":{"type":"object","properties":{"enable":{"type":"boolean","default":true},"include":{"type":"array","items":{"type":"string"}},"exclude":{"type":"array","items":{"type":"string"}}}}}}},"type":"object","allOf":[{"$ref":"#/definitions/compilerOptionsDefinition"},{"$ref":"#/definitions/compileOnSaveDefinition"},{"$ref":"#/definitions/typeAcquisitionDefinition"},{"$ref":"#/definitions/extendsDefinition"},{"anyOf":[{"$ref":"#/definitions/filesDefinition"},{"$ref":"#/definitions/excludeDefinition"},{"$ref":"#/definitions/includeDefinition"}]}]}