Skip to content

Commit

Permalink
Extend core configuration with additional rules
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Mar 2, 2017
1 parent 906bbab commit a9b1dc1
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 5 deletions.
48 changes: 45 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,53 @@
{
"root": true,
"extends": "wpcalypso",
"extends": "wordpress",
"env": {
"browser": true
},
"rules": {
"no-var": "off",
"camelcase": "off"
"array-bracket-spacing": [ "error", "always" ],
"brace-style": [ "error", "1tbs" ],
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": [ "error", "always" ],
"dot-notation": "error",
"eol-last": "error",
"func-call-spacing": "error",
"indent": [ "error", "tab", { "SwitchCase": 1 } ],
"key-spacing": "error",
"keyword-spacing": "error",
"no-console": "error",
"no-debugger": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-else-return": "error",
"no-extra-semi": "error",
"no-lonely-if": "error",
"no-mixed-spaces-and-tabs": "error",
"no-multiple-empty-lines": [ "error", { "max": 1 } ],
"no-multi-spaces": "error",
"no-negated-in-lhs": "error",
"no-nested-ternary": "error",
"no-redeclare": "error",
"no-shadow": "error",
"no-unreachable": "error",
"no-use-before-define": [ "error", "nofunc" ],
"no-var": "error",
"object-curly-spacing": [ "error", "always" ],
"padded-blocks": [ "error", "never" ],
"quote-props": [ "error", "as-needed", { "keywords": true } ],
"semi": "error",
"semi-spacing": "error",
"space-before-blocks": [ "error", "always" ],
"space-before-function-paren": [ "error", "never" ],
"space-in-parens": [ "error", "always" ],
"space-infix-ops": [ "error", { "int32Hint": false } ],
"space-unary-ops": [ "error", {
"overrides": {
"!": true
}
} ],
"valid-jsdoc": [ "error", { "requireReturn": false } ]
}
}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
"homepage": "https://github.com/WordPress/gutenberg#readme",
"devDependencies": {
"eslint": "^3.16.1",
"eslint-config-wpcalypso": "^0.6.0",
"eslint-plugin-wpcalypso": "^3.0.2",
"eslint-config-wordpress": "^1.1.0",
"http-server": "0.9.0"
}
}

0 comments on commit a9b1dc1

Please sign in to comment.