1
1
mirror of https://github.com/primer/css.git synced 2024-11-23 20:38:58 +03:00

Updating eslint to conform to github eslint

This commit is contained in:
Jon Rohan 2016-07-05 15:53:58 -04:00
parent abc4de379d
commit 4d7247b08a
4 changed files with 9 additions and 25 deletions

View File

@ -1,28 +1,11 @@
{
"extends": "eslint:recommended",
"plugins": [
"eslint-plugin-github"
],
"env": {
"node": true
},
"rules": {
"comma-dangle": [2, "only-multiline"],
"curly": 0,
"radix": 2,
"wrap-iife": 2,
"brace-style": 0,
"comma-style": 2,
"consistent-this": 0,
"indent": [2, 2, {
"SwitchCase": 1
}],
"no-console": 0,
"no-lonely-if": 2,
"no-nested-ternary": 2,
"no-use-before-define": [2, "nofunc"],
"quotes": [2, "double"],
"space-before-function-paren": [2, "never"],
"keyword-spacing": 2,
"space-before-blocks": [2, "always"],
"space-in-parens": [2, "never"],
"space-unary-ops": 2
}
"extends": [
"plugin:github/recommended"
]
}

View File

@ -3,7 +3,7 @@ var primerUtilities = require("primer-utilities")
var ruleName = "primer/selector-no-utility"
var messages = stylelint.utils.ruleMessages(ruleName, {
rejected: function(classname) { return "Avoid styling the utilty class `" + classname + "`" },
rejected: function(classname) { return "Avoid styling the utilty class `" + classname + "`" }
})
module.exports = stylelint.createPlugin(ruleName, function(enabled) {

View File

@ -32,6 +32,7 @@
},
"devDependencies": {
"eslint": "^2.10.2",
"eslint-plugin-github": "^0.4.0",
"stylelint-test-rule-tape": "^0.2.0"
}
}

View File

@ -6,7 +6,7 @@ testRule(rule.rule, {
config: true,
skipBasicChecks: true,
accept: [
{ code: "a { }" },
{ code: "a { }" }
],
reject: [
{ code: ".m-0 { color: #fff; }" },