Formatter Validator Minifier Escape / Unescape JSON ↔ String JSON ↔ YAML JSON → CSV NDJSON / JSON Lines JSON → Types JSON ↔ XML JSON Diff JSON Patch Canonicalize (RFC 8785) Schema Validator Schema Generator JSONPath Tester JWT Decoder JSON Errors Schemas More Tools
JSONTools / Schema registry / .jscsrc
Schema registry

.jscsrc

JSCS configuration file

.jscsrcjscsrc.json

Check your file against this schema

Opens the validator with this schema already loaded. Paste your .jscsrc and it validates in your browser — nothing is uploaded.

Validate a .jscsrc → View raw schema

Fields

Generated directly from the schema, following local $refs, to two levels of nesting.

Field Type Description
additionalRulesarray<string>Path to load additional rules
disallowAnonymousFunctionsanyOfRequires that a function expression be named. Named functions provide more information in the error stack trace than anonymous functions. This option does not help if you use Arrow functions (ES6) which are always anonymous.
disallowArrowFunctionsanyOfDisallows arrow functions.
disallowCapitalizedCommentsanyOfRequires the first alphabetical character of a comment to be lowercase.
disallowCommaBeforeLineBreakoneOfDisallows commas as last token on a line in lists.
disallowCurlyBracesoneOf
disallowDanglingUnderscoresoneOfDisallows identifiers that start or end in _. Some popular identifiers are automatically listed as exceptions: __proto__ (javascript), _ (underscore.js), __filename (node.js global), __dirname (node.js global), super_ (node.js, used by
disallowEmptyBlocksoneOfDisallows empty blocks (except for catch blocks).
disallowFunctionDeclarationsanyOfDisallows function declarations.
disallowIdenticalDestructuringNamesanyOfDisallows identical destructuring names for the key and value in favor of using shorthand destructuring.
disallowIdentifierNamesoneOfDisallows a specified set of identifier names.
disallowImplicitTypeConversionanyOfDisallows implicit type conversion.
disallowKeywordsInCommentsoneOfDisallows one or more keywords in comments.
disallowKeywordsOnNewLineanyOf
disallowKeywordsanyOf
disallowMixedSpacesAndTabsanyOfRequires lines to not contain both spaces and tabs consecutively, or spaces after tabs only for alignment if "smart
disallowMultiLineTernaryanyOfDisallows the test, consequent and alternate to be on separate lines when using the ternary operator.
disallowMultipleLineBreaksanyOfDisallows multiple blank lines in a row.
disallowMultipleLineStringsanyOfDisallows strings that span multiple lines without using concatenation.
disallowMultipleSpacesoneOfDisallows multiple indentation characters (tabs or spaces) between identifiers, keywords, and any other token.
disallowMultipleVarDecloneOfDisallows multiple `var` declaration (except for-loop).
disallowNamedUnassignedFunctionsanyOfDisallows unassigned functions to be named inline.
disallowNestedTernariesoneOfDisallows nested ternaries.
disallowNewlineBeforeBlockStatementsoneOfDisallows newline before opening curly brace of all block statements.
disallowNodeTypesanyOf
disallowNotOperatorsInConditionalsanyOfDisallows the not, not equals, and strict not equals operators in conditionals.
disallowObjectKeysOnNewLineanyOfDisallows placing object keys on new line.
disallowOperatorBeforeLineBreakanyOf
disallowPaddingNewLinesAfterBlocksanyOfDisallow a newline after blocks.
disallowPaddingNewLinesAfterUseStrictanyOfDisallow a blank line after 'use strict'; statements.
disallowPaddingNewLinesBeforeExportanyOfDisallows newline before module.exports.
disallowPaddingNewlinesBeforeKeywordsoneOf
disallowPaddingNewLinesBeforeLineCommentsoneOfDisallows newline before line comments.
disallowPaddingNewlinesInBlocksoneOfDisallows blocks from beginning or ending with 2 newlines.
disallowPaddingNewLinesInObjectsanyOfDisallows newlines adjacent to curly braces in all object literals.
disallowParenthesesAroundArrowParamanyOfDisallows parentheses around arrow function expressions that contain a single parameter.
disallowQuotedKeysInObjectsoneOfDisallows quoted keys in object if possible.
disallowSemicolonsanyOfDisallows lines from ending in a semicolon.
disallowShorthandArrowFunctionsanyOfRequire arrow functions to use a block statement (explicit return).
disallowSpaceAfterBinaryOperatorsanyOf
disallowSpaceAfterCommaoneOfDisallows spaces after commas.
disallowSpaceAfterKeywordsoneOf
disallowSpaceAfterLineCommentanyOfRequires that a line comment (//) not be followed by a space.
disallowSpaceAfterObjectKeysoneOfDisallows space after object keys.
disallowSpaceAfterPrefixUnaryOperatorsanyOf
disallowSpaceBeforeBinaryOperatorsanyOf
disallowSpaceBeforeBlockStatementsanyOfDisallows space before block statements (for loops, control structures).
disallowSpaceBeforeCommaoneOfDisallows spaces before commas.
disallowSpaceBeforeKeywordsoneOf
disallowSpaceBeforeObjectValuesanyOfDisallows space before object values.
disallowSpaceBeforePostfixUnaryOperatorsanyOf
disallowSpaceBeforeSemicolononeOfDisallows spaces before semicolons.
disallowSpaceBetweenArgumentsanyOfEnsure there are no spaces after argument separators in call expressions.
disallowSpacesInAnonymousFunctionExpressionanyOf
disallowSpacesInCallExpressionanyOfDisallows space before () in call expressions.
disallowSpacesInConditionalExpressionanyOfDisallows space before and/or after ? or : in conditional expressions.
disallowSpacesInForStatementanyOfDisallow spaces in between for statement.
disallowSpacesInFunctionanyOf
disallowSpacesInFunctionDeclarationanyOf
disallowSpacesInFunctionExpressionanyOf
disallowSpacesInGeneratoroneOfDisallow space before or after * in generator functions.
disallowSpacesInNamedFunctionExpressionanyOf
disallowSpacesInsideArrayBracketsoneOfDisallows space after opening array square bracket and before closing. Reports only on arrays, not on property accessors. Use disallowSpacesInsideBrackets to report on all brackets.
disallowSpacesInsideBracketsoneOfDisallows space after opening square bracket and before closing. Reports on all on brackets, even on property accessors. Use disallowSpacesInsideArrayBrackets to exclude property accessors.
disallowSpacesInsideObjectBracketsoneOfDisallows space after opening object curly brace and before closing.
disallowSpacesInsideParenthesesoneOfDisallows space after opening round bracket and before closing.
disallowSpacesInsideParenthesizedExpressiononeOfDisallows space after opening and before closing grouping parentheses.
disallowSpacesInsideTemplateStringPlaceholdersoneOfDisallows spaces before and after curly brace inside template string placeholders.
disallowTabsoneOfDisallows tabs everywhere.
disallowTrailingCommaoneOfDisallows an extra comma following the final element of an array or object literal.
disallowTrailingWhitespaceoneOfRequires all lines to end on a non-whitespace character. Use "ignoreEmptyLines" to allow whitespace on empty lines (default is false).
default: false
disallowUnusedParamsoneOfDisallows unused params in function expression and function declaration.
disallowVaroneOfDisallows declaring variables with var.
disallowYodaConditionsanyOf
excludeFilesarray<string>Disables style checking for specified paths.
jsDocobjectValidate jsdoc comments.
jsDoc.checkAnnotationsoneOfChecks whether tag names are valid.
jsDoc.checkParamExistenceanyOfChecks whether all parameters are documented.
jsDoc.checkParamNamesanyOfChecks whether param names in jsdoc and in function declaration are equal.
jsDoc.requireParamTypesanyOfChecks whether params in jsdoc contains type.
jsDoc.checkRedundantParamsanyOfReports redundant params in jsdoc.
jsDoc.checkReturnTypesanyOfChecks for differences between the jsdoc and actual return types if both exist.
jsDoc.checkRedundantReturnsanyOfReport statements for functions without a return, which are described with an @return tag.
jsDoc.requireReturnTypesanyOfChecks whether @returns in jsdoc contains type.
jsDoc.checkTypesoneOfReports invalid types for bunch of tags.
jsDoc.checkRedundantAccessoneOfReports redundant access declarations.
jsDoc.leadingUnderscoreAccessoneOfChecks whether access declaration is set for _underscored function names. Ignores a bunch of popular identifiers: __filename, __dirname, __proto__, __defineGetter__, super_, __constructor, etc.
jsDoc.enforceExistenceoneOfChecks whether jsdoc block exists.
jsDoc.requireHyphenBeforeDescriptionanyOfChecks whether a jsdoc param description has a hyphen before it (checks for -).
jsDoc.requireNewlineAfterDescriptionanyOfChecks whether a jsdoc comment description has a padding (trailing) newline separator between it and additional @tags.
jsDoc.disallowNewlineAfterDescriptionanyOfChecks whether a jsdoc comment description has no padding (trailing) newline separator between it and additional @tags.
jsDoc.requireDescriptionCompleteSentenceanyOfChecks whether a jsdoc comment description is a complete sentence. A complete sentence is defined as starting with an upper case letter and ending with a period.
jsDoc.requireParamDescriptionanyOfChecks whether a jsdoc param description exists.
jsDoc.requireReturnDescriptionanyOfChecks whether a jsdoc return description exists.
maximumLineLengthoneOfRequires all lines to be at most the number of characters specified.
maximumNumberOfLinesoneOfRequires the file to be at most the number of lines specified.
presetstringExtends defined rules with preset rules.
one of: "airbnb", "crockford", "google", "grunt", "idiomatic", "jquery" … (+5)
requireAlignedMultilineParamsoneOfEnforces indentation of parameters in multiline functions.
requireAlignedObjectValuesoneOfRequires proper alignment in object literals.
requireAnonymousFunctionsoneOfRequires that a function expression be anonymous.
requireArrayDestructuringoneOfRequires that variable assignment from array values are * destructured.
requireArrowFunctionsoneOfRequires that arrow functions are used instead of anonymous function expressions in callbacks.
requireBlocksOnNewlineoneOfRequires blocks to begin and end with a newline.
requireCamelCaseOrUpperCaseIdentifiersoneOfRequires identifiers to be camelCased or UPPERCASE_WITH_UNDERSCORES.
requireCapitalizedCommentsoneOfRequires the first alphabetical character of a comment to be uppercase, unless it is part of a multi-line textblock. This rule automatically ignores jscs, jshint, eslint, and istanbul specific comments.
requireCapitalizedConstructorsNewoneOfRequires capitalized constructors to to use the new keyword.
requireCapitalizedConstructorsoneOfRequires constructors to be capitalized (except for "this")
requireCommaBeforeLineBreakoneOfRequires commas as last token on a line in lists.
requireCurlyBracesoneOfRequires curly braces after statements. A value of true will require curly braces for all the necessary keywords: if, else, for, while do, try, catch, case, and default.
requireDollarBeforejQueryAssignmentoneOfRequire a $ before variable names that are jquery assignments.
requireDotNotationoneOfRequires member expressions to use dot notation when possible.
requireEarlyReturnoneOfRequires early return in a function.
requireEnhancedObjectLiteralsoneOfRequires declaring objects via ES6 enhanced object literals.
requireFunctionDeclarationsoneOfRequires function declarations by disallowing assignment of functions expressions to variables. Function expressions are allowed in all other contexts, including when passed as function arguments or immediately invoked. Assignment of
requireImportAlphabetizedoneOfRequires imports to be alphabetized (A-Z).
requireKeywordsOnNewLineanyOf
requireLineBreakAfterVariableAssignmentoneOfRequires placing line feed after assigning a variable.
requireLineFeedAtFileEndoneOfRequires placing line feed at file end.
requireMatchingFunctionNameoneOfRequires function names to match member and property names. It doesn't affect anonymous functions nor functions assigned to members or properties named with a reserved word. Assigning to module.exports is also ignored, unless
requireMultiLineTernaryoneOfRequires the test, consequent and alternate to be on separate lines when using the ternary operator.
requireMultipleVarDecloneOfRequires multiple `var` declaration.
requireNamedUnassignedFunctionsoneOfRequire unassigned functions to be named inline.
requireNewlineBeforeBlockStatementsoneOf
requireNumericLiteralsoneOfRequires use of binary, hexadecimal, and octal literals instead of parseInt.
requireObjectDestructuringoneOfRequires variable declarations from objects via destructuring.
requireObjectKeysOnNewLineoneOfRequires placing object keys on new line.
requireOperatorBeforeLineBreakanyOf
requirePaddingNewLineAfterVariableDeclarationoneOfRequires an extra blank newline after var declarations, as long as it is not the last expression in the current block.
requirePaddingNewLinesAfterBlocksoneOfRequires newline after blocks.
requirePaddingNewLinesAfterUseStrictoneOfRequires a blank line after 'use strict'; statements.
requirePaddingNewLinesBeforeExportoneOfRequires newline before module.exports.
requirePaddingNewlinesBeforeKeywordsoneOf
requirePaddingNewLinesBeforeLineCommentsoneOfRequires newline before line comments.
requirePaddingNewlinesInBlocksoneOfRequires blocks to begin and end with 2 newlines.
requirePaddingNewLinesInObjectsoneOfRequires newline inside curly braces of all objects.
requireParenthesesAroundArrowParamoneOfRequires parentheses around arrow function expressions with a single parameter.
requireParenthesesAroundIIFEoneOfRequires parentheses around immediately invoked function expressions.
requireQuotedKeysInObjectsoneOfRequires quoted keys in objects.
requireSemicolonsoneOfRequires semicolon after: var declaration, expression statement, return, throw, break, continue, do-while.
requireShorthandArrowFunctionsoneOfRequire arrow functions to use an expression body when returning a single statement (no block statement, implicit return).
requireSpaceAfterBinaryOperatorsanyOf
requireSpaceAfterCommaoneOfRequires space after comma.
requireSpaceAfterKeywordsoneOf
requireSpaceAfterLineCommentoneOfRequires that a line comment (`//`) be followed by a space.
requireSpaceAfterObjectKeysoneOfRequires space after object keys.
requireSpaceAfterPrefixUnaryOperatorsanyOf
requireSpaceBeforeBinaryOperatorsanyOf
requireSpaceBeforeBlockStatementsoneOfRequires space before block statements (for loops, control structures).
requireSpaceBeforeCommaoneOfRequires a space before a comma.
requireSpaceBeforeKeywordsoneOfRequires a space before a keyword.
requireSpaceBeforeObjectValuesoneOfRequires space after object keys.
requireSpaceBeforePostfixUnaryOperatorsanyOf
requireSpaceBetweenArgumentsoneOfEnsure there are spaces after argument separators in call expressions.
requireSpacesInAnonymousFunctionExpressiononeOfRequires space before `()` or `{}` in function expressions (both named and anonymous).
requireSpacesInCallExpressiononeOfRequires space before `()` in call expressions.
requireSpacesInConditionalExpressiononeOfRequires space before and/or after `?` or `:` in conditional expressions.
requireSpacesInForStatementoneOfRequires spaces in between `for` statement.
requireSpacesInFunctionanyOf
requireSpacesInFunctionDeclarationanyOf
requireSpacesInFunctionExpressionanyOf
requireSpacesInGeneratoroneOfRequires space before and after `*` in generator functions.
requireSpacesInNamedFunctionExpressionanyOf
requireSpacesInsideArrayBracketsoneOfRequires space after opening array square bracket and before closing. Reports only on arrays, not on property accessors. Use requireSpacesInsideBrackets to report on all brackets.
requireSpacesInsideBracketsoneOfRequires space after opening square bracket and before closing. Reports on all on brackets, even on property accessors. Use requireSpacesInsideArrayBrackets to exclude property accessors.
requireSpacesInsideObjectBracketsoneOfRequires space after opening object curly brace and before closing.
requireSpacesInsideParenthesesoneOfRequires space after opening round bracket and before closing.
requireSpacesInsideParenthesizedExpressiononeOfRequires space after opening and before closing grouping parentheses.
requireSpreadoneOfDisallows using `.apply` in favor of the spread operator.
requireTemplateStringsoneOfRequires the use of template strings instead of string concatenation.
requireTrailingCommaoneOfRequires an extra comma following the final element of an array or object literal.
requireVarDeclFirstoneOfRequires `var` declaration to be on the top of an enclosing scope.
requireYodaConditionsoneOfRequires the variable to be the right hand operator when doing a boolean comparison. An array of quoted operators can be supplied to indicate which operators requires yoda conditions.
safeContextKeywordoneOfOption to check `var that = this` expressions.
validateAlignedFunctionParametersoneOfValidates proper alignment of function parameters.
validateCommentPositiononeOfThis rule is for validating the positioning of line comments. Block comments are ignored. Comments that start with the following keywords are also ignored: `eslint`, `jshint`, `jslint`, `istanbul`, `global`, `exported`, `jscs`, `falls
validateIndentationoneOfValidates indentation for switch statements and block statements.
validateLineBreaksoneOfOption to check line break characters.
validateNewlineAfterArrayElementsoneOfRequires each element in array on a single line when array length is more than passed maximum number or array fills more than one line.
validateOrderInObjectKeysoneOfValidates the order in object keys.
validateParameterSeparatoroneOfEnable validation of separators between function parameters. Will ignore newlines.
validateQuoteMarksoneOfRequires all quote marks to be either the supplied value, or consistent if `true`.

What we found in this schema

Specification sections for the keywords in this schema

Keyword Document Section
$idJSON Schema Core, draft 2020-12§8.2.1 — The "$id" Keyword
$refJSON Schema Core, draft 2020-12§8.2.3.1 — Direct References with "$ref"
$schemaJSON Schema Core, draft 2020-12§8.1.1 — "$schema"
additionalPropertiesJSON Schema Core, draft 2020-12§10.3.2.3 — "additionalProperties"
anyOfJSON Schema Core, draft 2020-12§10.2.1.2 — "anyOf"
constJSON Schema Validation, draft 2020-12§6.1.3 — "const"
defaultJSON Schema Validation, draft 2020-12§9.2 — "default"
descriptionJSON Schema Validation, draft 2020-12§9.1 — "title" and "description"
enumJSON Schema Validation, draft 2020-12§6.1.2 — "enum"
itemsJSON Schema Core, draft 2020-12§10.3.1.2 — "items"
maxLengthJSON Schema Validation, draft 2020-12§6.3.1 — "maxLength"
minItemsJSON Schema Validation, draft 2020-12§6.4.2 — "minItems"
minLengthJSON Schema Validation, draft 2020-12§6.3.2 — "minLength"
minimumJSON Schema Validation, draft 2020-12§6.2.4 — "minimum"
oneOfJSON Schema Core, draft 2020-12§10.2.1.3 — "oneOf"
propertiesJSON Schema Core, draft 2020-12§10.3.2.1 — "properties"
requiredJSON Schema Validation, draft 2020-12§6.5.3 — "required"
typeJSON Schema Validation, draft 2020-12§6.1.1 — "type"
uniqueItemsJSON Schema Validation, draft 2020-12§6.4.3 — "uniqueItems"

Documents

Attribution

This schema comes from SchemaStore, distributed under the Apache License 2.0. Copyright 2015–present Mads Kristensen and contributors. View the original file. The field table and audit on this page are generated by JSONTools.tools; the schema itself is unmodified.

← All schemas