Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/grunt-bootlint.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2018-12-28 18:57:32 +0300
committerXhmikosR <xhmikosr@gmail.com>2018-12-28 19:11:43 +0300
commit55b674ecb5366ea52dd9fca9f302d204b275a3c3 (patch)
tree93ed719c72852ecca189286e4cc0f794c7a144a9 /.eslintrc.json
parentaefcb563306e99aa032464f6be6bc32e9656761d (diff)
Switch to ESLint.
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json316
1 files changed, 316 insertions, 0 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 0000000..56d76fb
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,316 @@
+{
+ "root": true,
+ "env": {
+ "es6": true,
+ "node": true
+ },
+ "extends": "eslint:recommended",
+ "rules": {
+ "array-bracket-spacing": [
+ "error",
+ "never"
+ ],
+ "array-callback-return": "error",
+ "arrow-body-style": [
+ "error",
+ "always"
+ ],
+ "arrow-parens": [
+ "error",
+ "always"
+ ],
+ "arrow-spacing": "error",
+ "block-scoped-var": "error",
+ "block-spacing": "error",
+ "brace-style": [
+ "error",
+ "1tbs"
+ ],
+ "callback-return": "error",
+ "camelcase": [
+ "error",
+ {
+ "properties": "never"
+ }
+ ],
+ "comma-dangle": "error",
+ "comma-spacing": [
+ "error",
+ {
+ "before": false,
+ "after": true
+ }
+ ],
+ "comma-style": [
+ "error",
+ "last"
+ ],
+ "computed-property-spacing": [
+ "error",
+ "never"
+ ],
+ "consistent-return": "error",
+ "consistent-this": "off",
+ "curly": "error",
+ "default-case": "error",
+ "dot-notation": "error",
+ "eol-last": "error",
+ "eqeqeq": "error",
+ "func-call-spacing": "error",
+ "func-names": [
+ "off",
+ "never"
+ ],
+ "func-style": [
+ "off",
+ "declaration"
+ ],
+ "global-require": "error",
+ "guard-for-in": "error",
+ "handle-callback-err": "off",
+ "indent": [
+ "error",
+ 2,
+ {
+ "MemberExpression": "off",
+ "SwitchCase": 1
+ }
+ ],
+ "init-declarations": [
+ "off",
+ "always"
+ ],
+ "key-spacing": [
+ "error",
+ {
+ "beforeColon": false,
+ "afterColon": true,
+ "mode": "minimum"
+ }
+ ],
+ "keyword-spacing": [
+ "error",
+ {
+ "before": true,
+ "after": true
+ }
+ ],
+ "max-statements-per-line": [
+ "error",
+ {
+ "max": 1
+ }
+ ],
+ "multiline-ternary": [
+ "error",
+ "always-multiline"
+ ],
+ "new-cap": [
+ "error",
+ {
+ "properties": false
+ }
+ ],
+ "newline-after-var": [
+ "off",
+ "always"
+ ],
+ "newline-per-chained-call": [
+ "off",
+ {
+ "ignoreChainWithDepth": 3
+ }
+ ],
+ "new-parens": "error",
+ "no-alert": "error",
+ "no-array-constructor": "error",
+ "no-bitwise": "error",
+ "no-buffer-constructor": "error",
+ "no-caller": "error",
+ "no-catch-shadow": "error",
+ "no-confusing-arrow": "error",
+ "no-console": "off",
+ "no-constant-condition": ["error",
+ {
+ "checkLoops": false
+ }
+ ],
+ "no-div-regex": "error",
+ "no-duplicate-imports": "error",
+ "no-else-return": "error",
+ "no-empty": "error",
+ "no-empty-function": "error",
+ "no-eq-null": "error",
+ "no-eval": "error",
+ "no-extra-bind": "error",
+ "no-extra-label": "error",
+ "no-extra-parens": [
+ "error",
+ "all",
+ {
+ "nestedBinaryExpressions": false
+ }
+ ],
+ "no-floating-decimal": "error",
+ "no-global-assign": "error",
+ "no-implicit-coercion": "error",
+ "no-implicit-globals": "error",
+ "no-implied-eval": "error",
+ "no-inline-comments": "off",
+ "no-label-var": "error",
+ "no-lone-blocks": "error",
+ "no-lonely-if": "error",
+ "no-loop-func": "error",
+ "no-magic-numbers": [
+ "off",
+ {
+ "ignoreArrayIndexes": true
+ }
+ ],
+ "no-mixed-operators": "error",
+ "no-mixed-requires": "error",
+ "no-multiple-empty-lines": "error",
+ "no-multi-spaces": [
+ "error",
+ {
+ "ignoreEOLComments": true,
+ "exceptions": {
+ "Property": true,
+ "VariableDeclarator": true
+ }
+ }
+ ],
+ "no-multi-str": "error",
+ "no-negated-condition": "error",
+ "no-nested-ternary": "error",
+ "no-new-object": "error",
+ "no-octal": "error",
+ "no-param-reassign": [
+ "off",
+ {
+ "props": false
+ }
+ ],
+ "no-path-concat": "error",
+ "no-prototype-builtins": "error",
+ "no-return-assign": "error",
+ "no-self-compare": "error",
+ "no-sequences": "error",
+ "no-shadow": "error",
+ "no-shadow-restricted-names": "error",
+ "no-throw-literal": "error",
+ "no-trailing-spaces": "error",
+ "no-undefined": "off",
+ "no-undef-init": "error",
+ "no-underscore-dangle": "error",
+ "no-unmodified-loop-condition": "error",
+ "no-unneeded-ternary": "error",
+ "no-unsafe-negation": "error",
+ "no-unused-expressions": "error",
+ "no-unused-labels": "error",
+ "no-use-before-define": "error",
+ "no-useless-call": "error",
+ "no-useless-computed-key": "error",
+ "no-useless-concat": "error",
+ "no-useless-constructor": "error",
+ "no-useless-escape": "error",
+ "no-useless-rename": "error",
+ "no-var": "error",
+ "no-void": "error",
+ "no-whitespace-before-property": "error",
+ "no-with": "error",
+ "object-shorthand": "error",
+ "object-curly-newline": [
+ "off",
+ {
+ "multiline": true,
+ "minProperties": 2
+ }
+ ],
+ "object-curly-spacing": [
+ "error",
+ "never"
+ ],
+ "object-property-newline": "error",
+ "one-var": [
+ "error",
+ "never"
+ ],
+ "one-var-declaration-per-line": [
+ "error",
+ "always"
+ ],
+ "operator-assignment": [
+ "error",
+ "always"
+ ],
+ "operator-linebreak": [
+ "error",
+ "after"
+ ],
+ "prefer-arrow-callback": "error",
+ "prefer-const": "error",
+ "prefer-destructuring": [
+ "error",
+ {
+ "object": true,
+ "array": false
+ }
+ ],
+ "prefer-spread": "error",
+ "prefer-template": "error",
+ "quote-props": [
+ "error",
+ "consistent"
+ ],
+ "quotes": [
+ "error",
+ "single"
+ ],
+ "radix": "error",
+ "rest-spread-spacing": [
+ "error",
+ "never"
+ ],
+ "semi": [
+ "error",
+ "always"
+ ],
+ "semi-spacing": "error",
+ "sort-imports": "error",
+ "space-before-blocks": [
+ "error",
+ "always"
+ ],
+ "space-before-function-paren": [
+ "error",
+ "never"
+ ],
+ "spaced-comment": [
+ "off",
+ "always"
+ ],
+ "space-infix-ops": "error",
+ "space-in-parens": [
+ "error",
+ "never"
+ ],
+ "space-unary-ops": "error",
+ "strict": "error",
+ "symbol-description": "error",
+ "template-curly-spacing": "error",
+ "unicode-bom": [
+ "error",
+ "never"
+ ],
+ "use-isnan": "error",
+ "wrap-iife": [
+ "error",
+ "inside"
+ ],
+ "yoda": [
+ "error",
+ "never"
+ ]
+ }
+}