Commit c928e4fe authored by Nick Stenning's avatar Nick Stenning Committed by GitHub

Merge pull request #62 from hypothesis/use-shared-eslint-config

Use shared ESLint config
parents dbd16d1d 190b1acd
{ {
"env": { "extends": "hypothesis"
"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,
}
} }
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
"escape-html": "^1.0.3", "escape-html": "^1.0.3",
"escape-string-regexp": "^1.0.5", "escape-string-regexp": "^1.0.5",
"eslint": "^3.0.1", "eslint": "^3.0.1",
"eslint-config-hypothesis": "^1.0.0",
"exorcist": "^0.4.0", "exorcist": "^0.4.0",
"extend": "^2.0.0", "extend": "^2.0.0",
"gulp": "^3.9.1", "gulp": "^3.9.1",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment