ThisIsManta / stylus-supremacy

A Node.js script that helps formatting Stylus files.
https://thisismanta.github.io/stylus-supremacy
MIT License
88 stars 9 forks source link

Default stylint configuration #39

Closed jonashaag closed 6 years ago

jonashaag commented 6 years ago

For future reference, here's the stylint default configuration as a JSON file suitable for the --options parameter.

{
  "note": "default stylint configuration (this is what the linter will run when no config file is passed)",
  "blocks": "check for @block when defining blocks",
  "blocks": false,
  "brackets": "check for { or }, unless used in a hash",
  "brackets": "never",
  "colons": "enforce or disallow colons",
  "colons": "always",
  "colors": "check for hex colors used without variables",
  "colors": "always",
  "commaSpace": "check for spaces after commas (0, 0, 0, .18)",
  "commaSpace": "always",
  "commentSpace": "check for space after line comment",
  "commentSpace": "always",
  "cssLiteral": "if never disallow css literals",
  "cssLiteral": "never",
  "depthLimit": "set a maximum selector depth (dont nest more than 4 deep)",
  "depthLimit": false,
  "duplicates": "check if properties or selectors are duplicate",
  "duplicates": true,
  "efficient": "check for margin 0 0 0 0 and recommend margin 0",
  "efficient": "always",
  "extendPref": "prefer a specific syntax when using @extends (or @extend)",
  "extendPref": false,
  "globalDupe": "throw duplicate selector warning across all files instead of curr file",
  "globalDupe": false,
  "groupOutputByFile": "group reporter output by file or go sequentially",
  "groupOutputByFile": true,
  "reporterOptions": "manipulate terminal output with or without an additional reporter",
  "reporterOptions": {
    "columns": ["lineData", "severity", "description", "rule"],
    "columnSplitter": "  ",
    "showHeaders": false,
    "truncate": true
  },
  "indentPref": "how many spaces should we prefer when indenting, pass in false if hard tabs",
  "indentPref": false,
  "leadingZero": "enforce or disallow leading zeroes",
  "leadingZero": "never",
  "maxErrors": "exit if over error limit",
  "maxErrors": false,
  "maxWarnings": "exit if over warning limit",
  "maxWarnings": false,
  "mixed": "check for mixed spaces and tabs",
  "mixed": false,
  "namingConvention": "lowercase-dash, camelCase, lowercase_underscore, BEM or false (dont check)",
  "namingConvention": false,
  "namingConventionStrict": "if true, then check classes and ids, if false just check variables",
  "namingConventionStrict": false,
  "none": "check for use of border none or outline none, prefer 0",
  "none": "never",
  "noImportant": "disallow !importants",
  "noImportant": true,
  "parenSpace": "check for extra space inside parens",
  "parenSpace": false,
  "placeholders": "only allow @extending of placeholder vars",
  "placeholders": "always",
  "prefixVarsWithDollar": "check for $ when declaring vars (doesnt check use)",
  "prefixVarsWithDollar": "always",
  "quotePref": "single or double quotes, or false to not check",
  "quotePref": false,
  "reporter": "default reporter",
  "reporter": "../core/reporter",
  "semicolons": "disallow or enforce semicolons",
  "semicolons": "never",
  "sortOrder": "alphabetical, grouped, Array<String> or false (no check)",
  "sortOrder": "alphabetical",
  "stackedProperties": "no one liners",
  "stackedProperties": "never",
  "trailingWhitespace": "check for trailing whitespace",
  "trailingWhitespace": "never",
  "universal": "check for use of * and recommend against it",
  "universal": false,
  "valid": "check if prop or value is a valid assignment",
  "valid": true,
  "zeroUnits": "check for use of 0px | 0em | 0rem | 0% | etc and recommend 0 instead",
  "zeroUnits": "never",
  "zIndexNormalize": "suggest a normalized z index value, base of whatever this is",
  "zIndexNormalize": false
}