aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-09-17 08:59:12 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-09-17 08:59:12 +0900
commit9ae814dfe45426f8df9b89b305392770344a7d50 (patch)
treedb082d9cb2ec426010556dbc24ab439c9757afbd /.eslintrc
parentc5529958d53146c8c6826673abe6431a19f1924d (diff)
more strict lint
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc33
1 files changed, 26 insertions, 7 deletions
diff --git a/.eslintrc b/.eslintrc
index fa283fd..d3b3e9a 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -11,28 +11,47 @@
"jsx": true
}
},
- "extends": [ "eslint:recommended" ],
+ "extends": [ "eslint:all" ],
"rules": {
+ "array-bracket-newline": ["error", { "multiline": true }],
"arrow-body-style": "off",
+ "array-element-newline": "off",
+ "arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
+ "comma-dangle": "off",
+ "consistent-return": "off",
+ "default-case": "off",
"id-length": "off",
"indent": ["error", 2],
+ "max-statements": ["error", 15],
+ "multiline-ternary": "off",
"newline-after-var": "off",
"newline-before-return": "off",
- "multiline-ternary": "off",
- "max-statements": ["error", 15],
- "no-console": "off",
- "no-param-reassign": "off",
+ "no-magic-numbers": "off",
+ "no-bitwise": "off",
+ "no-use-before-define": "off",
+ "no-warning-comments": "off",
+ "no-console": ["error", { "allow": ["warn", "error"] }],
+ "no-empty-function": "off",
+ "no-mixed-operators": "off",
+ "no-plusplus": "off",
+ "capitalized-comments": "off",
"no-ternary": "off",
+ "no-undefined": "off",
"object-curly-spacing": [
"error",
"always", { "arraysInObjects": false, "objectsInObjects": false }
],
- "object-curly-newline": "off",
- "object-property-newline": "off",
+ "object-curly-newline": ["error", { "consistent": true }],
+ "object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }],
"object-shorthand": "off",
+ "one-var": "off",
"padded-blocks": "off",
+ "prefer-const": "off",
+ "prefer-destructuring": ["error", { "AssignmentExpression": {"array": false}}],
"prefer-template": "off",
+ "quotes": ["error", "single", { "allowTemplateLiterals": true }],
+ "quote-props": "off",
"require-jsdoc": "off",
"sort-imports": "off",
"sort-keys": "off",