Skip to content

Commit

Permalink
Use shared ESLint config
Browse files Browse the repository at this point in the history
Use the shared `hypothesis` ESLint config for consistency with our other
projects
  • Loading branch information
robertknight committed Aug 1, 2016
1 parent dbd16d1 commit 30b2dc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 51 deletions.
52 changes: 1 addition & 51 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,53 +1,3 @@
{
"env": {
"mocha": true,
"commonjs": true,
"browser": true,
},
"extends": "eslint:recommended",
"globals": {
"assert": false,
"sinon": false,
"Promise": false,
},
"rules": {
"array-callback-return": "error",
"block-scoped-var": "error",
"comma-dangle": ["error", "always-multiline"],
"consistent-this": ["error", "self"],
"consistent-return": "error",
"curly": "error",
"dot-notation": "error",
"eqeqeq": "error",
"guard-for-in": "error",
"indent": ["error", 2],
"new-cap": "error",
"no-caller": "error",
"no-case-declarations": "error",
"no-console": [
"error",
{ allow: ["warn", "error"] },
],
"no-extra-bind": "error",
"no-lone-blocks": "error",
"no-lonely-if": "error",
"no-multiple-empty-lines": "error",
"no-self-compare": "error",
"no-throw-literal": "error",
"no-undef-init": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "error",
"no-use-before-define": [
"error",
{"functions": false},
],
"no-useless-concat": "error",
"one-var-declaration-per-line": ["error", "always"],
"quotes": ["error", "single", {"avoidEscape": true}],
"semi": "error",
"strict": ["error", "safe"],
},
"parserOptions": {
"ecmaVersion": 6,
}
"extends": "hypothesis"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"escape-html": "^1.0.3",
"escape-string-regexp": "^1.0.5",
"eslint": "^3.0.1",
"eslint-config-hypothesis": "^1.0.0",
"exorcist": "^0.4.0",
"extend": "^2.0.0",
"gulp": "^3.9.1",
Expand Down

0 comments on commit 30b2dc4

Please sign in to comment.