Skip to content

Instantly share code, notes, and snippets.

@nrigaudiere
Created April 22, 2019 22:00
Show Gist options
  • Save nrigaudiere/3f320002007ad6186963cebd38366b9c to your computer and use it in GitHub Desktop.
Save nrigaudiere/3f320002007ad6186963cebd38366b9c to your computer and use it in GitHub Desktop.
Default Linters
options:
formatter: stylish
files:
include: '**/*.s+(a|c)ss'
rules:
# Extends
extends-before-mixins: 1
extends-before-declarations: 1
placeholder-in-extend: 1
# Mixins
mixins-before-declarations: 1
# Line Spacing
one-declaration-per-line: 1
empty-line-between-blocks: 1
single-line-per-selector: 1
# Disallows
no-attribute-selectors: 0
no-color-hex: 0
no-color-keywords: 1
no-color-literals: 1
no-combinators: 0
no-css-comments: 1
no-debug: 1
no-disallowed-properties: 0
no-duplicate-properties: 1
no-empty-rulesets: 1
no-extends: 0
no-ids: 1
no-important: 1
no-invalid-hex: 1
no-mergeable-selectors: 1
no-misspelled-properties: 1
no-qualifying-elements: 1
no-trailing-whitespace: 1
no-trailing-zero: 1
no-transition-all: 1
no-universal-selectors: 0
no-url-domains: 1
no-url-protocols: 1
no-vendor-prefixes: 1
no-warn: 1
property-units: 0
# Nesting
declarations-before-nesting: 1
force-attribute-nesting: 1
force-element-nesting: 1
force-pseudo-nesting: 1
# Name Formats
class-name-format:
- 1
-
convention: strictbem
function-name-format: 1
id-name-format: 0
mixin-name-format: 1
placeholder-name-format: 1
variable-name-format: 1
# Style Guide
attribute-quotes: 1
bem-depth: 0
border-zero: 1
brace-style:
- 1
-
style: '1tbs'
allow-single-line: false
clean-import-paths: 1
empty-args: 1
hex-length:
- 1
-
style: 'long'
hex-notation:
- 1
-
style: uppercase
indentation: 1
leading-zero: 0
max-line-length: 0
max-file-line-count: 0
nesting-depth:
- 1
-
max-depth: 6
property-sort-order: 0
pseudo-element: 1
quotes: 1
shorthand-values: 1
url-quotes: 1
variable-for-property: 1
zero-unit: 1
# Inner Spacing
space-after-comma: 1
space-before-colon: 1
space-after-colon: 1
space-before-brace: 1
space-before-bang: 1
space-after-bang: 1
space-between-parens: 1
space-around-operator: 1
# Final Items
trailing-semicolon: 1
final-newline: 1
{
"rules": {
"align": [
true,
"parameters",
"statements"
],
"ban": [
true,
[ "_", "forEach" ],
[ "_", "each" ],
[ "$", "each" ],
[ "angular", "forEach" ]
],
"class-name": true,
"comment-format": [
true,
"check-space"
],
"curly": false,
"eofline": true,
"forin": false,
"indent": [
true,
"spaces",
2
],
"jsdoc-format": true,
"label-position": true,
"max-line-length": [
false
],
"member-access": true,
"member-ordering": [
true,
{ "order": "fields-first" }
],
"new-parens": true,
"newline-before-return": true,
"no-angle-bracket-type-assertion": false,
"no-any": false,
"no-arg": true,
"no-bitwise": false,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": true,
"no-console": [
true,
"info",
"time",
"timeEnd",
"trace",
"log"
],
"no-construct": true,
"no-debugger": true,
"no-default-export": false,
"no-duplicate-variable": true,
"no-empty": false,
"no-eval": false,
"no-inferrable-types": false,
"no-internal-module": true,
"no-invalid-this": [
true,
"check-function-in-method"
],
"no-namespace": false,
"no-null-keyword": true,
"no-reference": true,
"no-require-imports": true,
"no-shadowed-variable": false,
"no-string-literal": false,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": false,
"no-unused-expression": true,
"no-use-before-declare": true,
"no-var-keyword": true,
"no-var-requires": true,
"object-literal-sort-keys": false,
"one-line": [
true,
"check-open-brace",
"check-whitespace"
],
"one-variable-per-declaration": true,
"prefer-template": [
true,
"allow-single-concat"
],
"quotemark": [
true,
"single",
"jsx-double",
"avoid-template",
"avoid-escape"
],
"radix": false,
"semicolon": [
true,
"never"
],
"switch-default": false,
"trailing-comma": [
true,
{
"singleline": "never",
"multiline": {
"objects": "always",
"arrays": "always",
"functions": "always",
"typeLiterals": "never"
},
"esSpecCompliant": true
}
],
"triple-equals": [
true,
"allow-null-check",
"allow-undefined-check"
],
"typedef": [
true,
"parameter",
"property-declaration",
"member-variable-declaration"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "space",
"index-signature": "space",
"parameter": "space",
"property-declaration": "space",
"variable-declaration": "space"
}
],
"use-isnan": true,
"variable-name": [
true,
"allow-leading-underscore",
"ban-keywords"
],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type",
"check-typecast"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment