0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-06 04:08:22 +01:00

Update config files across the board.

This commit is contained in:
Bardi Harborow 2017-03-12 16:01:14 +11:00
parent 348c770a6c
commit 84ce248f06
4 changed files with 21 additions and 11 deletions

View File

@ -1,14 +1,12 @@
fail_on_violations: true fail_on_violations: true
scss: scss:
enabled: true
config_file: scss/.scss-lint.yml config_file: scss/.scss-lint.yml
javascript: jshint:
enabled: false enabled: false
eslint: eslint:
enabled: true
config_file: js/.eslintrc.json config_file: js/.eslintrc.json
ignore_file: .houndignore ignore_file: .houndignore

View File

@ -5,9 +5,9 @@ git:
depth: 3 depth: 3
node_js: node_js:
- "4" - "4"
- "6" - "7"
before_install: before_install:
- if [[ `npm -v` != 3* ]]; then npm install -g npm@3; fi - if [[ `npm -v` != 4* ]]; then npm install -g npm@4; fi
- "export TRAVIS_COMMIT_MSG=\"`git log --format=%B --no-merges -n 1`\"" - "export TRAVIS_COMMIT_MSG=\"`git log --format=%B --no-merges -n 1`\""
- echo "$TRAVIS_COMMIT_MSG" | grep '\[skip validator\]'; export TWBS_DO_VALIDATOR=$?; true - echo "$TRAVIS_COMMIT_MSG" | grep '\[skip validator\]'; export TWBS_DO_VALIDATOR=$?; true
- echo "$TRAVIS_COMMIT_MSG" | grep '\[skip sauce\]'; export TWBS_DO_SAUCE=$?; true - echo "$TRAVIS_COMMIT_MSG" | grep '\[skip sauce\]'; export TWBS_DO_SAUCE=$?; true

View File

@ -1,12 +1,14 @@
{ {
"alt-require": true,
"attr-lowercase": true, "attr-lowercase": true,
"attr-no-duplication": true, "attr-no-duplication": true,
"alt-require": true,
"attr-unsafe-chars": true, "attr-unsafe-chars": true,
"attr-value-double-quotes": true, "attr-value-double-quotes": true,
"doctype-first": true, "doctype-first": true,
"doctype-html5": true, "doctype-html5": true,
"id-class-value": true,
"id-unique": true, "id-unique": true,
"space-tab-mixed-disabled": true,
"spec-char-escape": true, "spec-char-escape": true,
"src-not-empty": true, "src-not-empty": true,
"tag-pair": true, "tag-pair": true,

View File

@ -13,6 +13,8 @@
}, },
"rules": { "rules": {
// Possible Errors // Possible Errors
"no-await-in-loop": "error",
"no-compare-neg-zero": "error",
"no-extra-parens": "error", "no-extra-parens": "error",
"no-prototype-builtins": "off", "no-prototype-builtins": "off",
"no-template-curly-in-string": "error", "no-template-curly-in-string": "error",
@ -67,6 +69,7 @@
} }
], ],
"no-multi-str": "error", "no-multi-str": "error",
"no-new": "error",
"no-new-func": "off", "no-new-func": "off",
"no-new-wrappers": "error", "no-new-wrappers": "error",
"no-new": "error", "no-new": "error",
@ -75,6 +78,7 @@
"no-proto": "error", "no-proto": "error",
"no-restricted-properties": "error", "no-restricted-properties": "error",
"no-return-assign": "off", "no-return-assign": "off",
"no-return-await": "error",
"no-script-url": "error", "no-script-url": "error",
"no-self-compare": "error", "no-self-compare": "error",
"no-sequences": "error", "no-sequences": "error",
@ -84,9 +88,11 @@
"no-useless-call": "error", "no-useless-call": "error",
"no-useless-concat": "error", "no-useless-concat": "error",
"no-useless-escape": "error", "no-useless-escape": "error",
"no-useless-return": "off",
"no-void": "error", "no-void": "error",
"no-warning-comments": "off", "no-warning-comments": "off",
"no-with": "error", "no-with": "error",
"prefer-promise-reject-errors": "error",
"radix": "error", "radix": "error",
"vars-on-top": "error", "vars-on-top": "error",
"wrap-iife": "error", "wrap-iife": "error",
@ -100,8 +106,8 @@
"no-catch-shadow": "error", "no-catch-shadow": "error",
"no-label-var": "error", "no-label-var": "error",
"no-restricted-globals": "error", "no-restricted-globals": "error",
"no-shadow-restricted-names": "error",
"no-shadow": "off", "no-shadow": "off",
"no-shadow-restricted-names": "error",
"no-undef-init": "error", "no-undef-init": "error",
"no-undefined": "off", "no-undefined": "off",
"no-use-before-define": "off", "no-use-before-define": "off",
@ -122,6 +128,7 @@
"array-bracket-spacing": "error", "array-bracket-spacing": "error",
"block-spacing": "error", "block-spacing": "error",
"brace-style": "error", "brace-style": "error",
"capitalized-comments": "off",
"camelcase": "error", "camelcase": "error",
"comma-dangle": "error", "comma-dangle": "error",
"comma-spacing": "error", "comma-spacing": "error",
@ -130,6 +137,7 @@
"consistent-this": "error", "consistent-this": "error",
"eol-last": "error", "eol-last": "error",
"func-call-spacing": "error", "func-call-spacing": "error",
"func-name-matching": "error",
"func-names": "off", "func-names": "off",
"func-style": ["error", "declaration"], "func-style": ["error", "declaration"],
"id-blacklist": "error", "id-blacklist": "error",
@ -148,8 +156,8 @@
"max-lines": "off", "max-lines": "off",
"max-nested-callbacks": "error", "max-nested-callbacks": "error",
"max-params": "off", "max-params": "off",
"max-statements-per-line": "error",
"max-statements": "off", "max-statements": "off",
"max-statements-per-line": "error",
"multiline-ternary": "off", "multiline-ternary": "off",
"new-cap": ["error", { "capIsNewExceptionPattern": "$.*" }], "new-cap": ["error", { "capIsNewExceptionPattern": "$.*" }],
"new-parens": "error", "new-parens": "error",
@ -162,6 +170,7 @@
"no-inline-comments": "off", "no-inline-comments": "off",
"no-lonely-if": "error", "no-lonely-if": "error",
"no-mixed-operators": "off", "no-mixed-operators": "off",
"no-multi-assign": "error",
"no-multiple-empty-lines": "error", "no-multiple-empty-lines": "error",
"no-negated-condition": "off", "no-negated-condition": "off",
"no-nested-ternary": "error", "no-nested-ternary": "error",
@ -174,19 +183,20 @@
"no-underscore-dangle": "off", "no-underscore-dangle": "off",
"no-unneeded-ternary": "error", "no-unneeded-ternary": "error",
"no-whitespace-before-property": "error", "no-whitespace-before-property": "error",
"nonblock-statement-body-position": "error",
"object-curly-newline": ["error", { "minProperties": 1 }], "object-curly-newline": ["error", { "minProperties": 1 }],
"object-curly-spacing": ["error", "always"], "object-curly-spacing": ["error", "always"],
"object-property-newline": "error", "object-property-newline": "error",
"one-var-declaration-per-line": "error",
"one-var": ["error", "never"], "one-var": ["error", "never"],
"one-var-declaration-per-line": "error",
"operator-assignment": "error", "operator-assignment": "error",
"operator-linebreak": "off", "operator-linebreak": "off",
"padded-blocks": "off", "padded-blocks": "off",
"quote-props": ["error", "as-needed"], "quote-props": ["error", "as-needed"],
"quotes": ["error", "single"], "quotes": ["error", "single"],
"require-jsdoc": "off", "require-jsdoc": "off",
"semi-spacing": "error",
"semi": ["error", "never"], "semi": ["error", "never"],
"semi-spacing": "error",
"sort-keys": "off", "sort-keys": "off",
"sort-vars": "error", "sort-vars": "error",
"space-before-blocks": "error", "space-before-blocks": "error",
@ -198,6 +208,7 @@
"space-infix-ops": "error", "space-infix-ops": "error",
"space-unary-ops": "error", "space-unary-ops": "error",
"spaced-comment": "error", "spaced-comment": "error",
"template-tag-spacing": "error",
"unicode-bom": "error", "unicode-bom": "error",
"wrap-regex": "off", "wrap-regex": "off",
@ -217,7 +228,6 @@
"prefer-arrow-callback": "error", "prefer-arrow-callback": "error",
"prefer-const": "error", "prefer-const": "error",
"prefer-numeric-literals": "error", "prefer-numeric-literals": "error",
"prefer-reflect": "off",
"prefer-rest-params": "error", "prefer-rest-params": "error",
"prefer-spread": "error", "prefer-spread": "error",
"prefer-template": "error", "prefer-template": "error",