Skip to content

Commit

Permalink
eslint: enforce 4 spaces, disallows blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
mkutny committed Jan 15, 2018
1 parent d2013f0 commit 8e4d688
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,32 @@
},
"extends": "eslint:recommended",
"rules": {
"strict": 2,
"strict": "error",
"semi": "error",
"indent": "error",
"lines-between-class-members": "error",
"comma-dangle": ["error", "always-multiline"],
"semi": 2,
"lines-between-class-members": 2,
"no-multiple-empty-lines": ["error", { "max": 1 }],
"multiline-comment-style": [2, "separate-lines"],
"no-whitespace-before-property": 2,
"space-before-blocks": [2, "always"],
"brace-style": [2, "1tbs"],
"multiline-comment-style": ["error", "separate-lines"],
"no-whitespace-before-property": "error",
"space-before-blocks": ["error", "always"],
"brace-style": ["error", "1tbs"],
"space-before-function-paren": ["error", "always"],
"block-spacing": [2, "always"],
"keyword-spacing": [2, { "before": true, "after": true }],
"object-curly-spacing": [2, "always"],
"block-spacing": ["error", "always"],
"keyword-spacing": ["error", { "before": true, "after": true }],
"object-curly-spacing": ["error", "always"],
"eqeqeq": "error",
"quotes": ["error", "single"],
"no-unused-vars": ["error", { "argsIgnorePattern": "^(since|params|limit)" }],
"no-unused-vars": ["error", { "argsIgnorePattern": "^(symbol|since|limit|params)" }],
"new-parens": "error",
"new-cap": "error",
"no-var": "error",
"prefer-const": "off",
"no-warning-comments": "error",
"padding-line-between-statements": ["error",
{"blankLine": "never", "prev":"*", "next": "*" },
{"blankLine": "always", "prev":"directive", "next": "*" },
{"blankLine": "always", "prev":"*", "next": "cjs-export" },
],
}
}

0 comments on commit 8e4d688

Please sign in to comment.