diff --git a/.eslintrc.json b/.eslintrc.json index c5c2b1dd..cc2c6c43 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -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" + ] } diff --git a/index.js b/index.js index 9ab705a0..0c951e8a 100644 --- a/index.js +++ b/index.js @@ -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) { diff --git a/package.json b/package.json index 6af977f5..70410544 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ }, "devDependencies": { "eslint": "^2.10.2", + "eslint-plugin-github": "^0.4.0", "stylelint-test-rule-tape": "^0.2.0" } } diff --git a/test/index.js b/test/index.js index 96aeb32c..304b33ab 100644 --- a/test/index.js +++ b/test/index.js @@ -6,7 +6,7 @@ testRule(rule.rule, { config: true, skipBasicChecks: true, accept: [ - { code: "a { }" }, + { code: "a { }" } ], reject: [ { code: ".m-0 { color: #fff; }" },