diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-12 09:19:15 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-08-12 09:19:15 +0900 |
commit | d169661e030e53b6a1635f86205f9fc42d2b7ef2 (patch) | |
tree | c939205da3019b63ffddbe756bd8893fd7c82902 /.eslintrc | |
parent | b501db2a46f6ef639d4f2e176f320514770dd7a5 (diff) | |
parent | 5a4a0a0b8fad3619829abb46c3e363162133a8bb (diff) |
Merge branch 'lint-and-ci'
Diffstat (limited to '.eslintrc')
-rw-r--r-- | .eslintrc | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..04a6d49 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,43 @@ +{ + "env": { + "es6": true, + "node" : true, + "browser" : true + }, + "parser": "babel-eslint", + "parserOptions": { + "ecmaFeatures": { + "jsx": true + } + }, + "extends": [ "eslint:recommended" ], + "rules": { + "arrow-body-style": "off", + "brace-style": ["error", "1tbs", { "allowSingleLine": true }], + "id-length": "off", + "indent": ["error", 2], + "newline-after-var": "off", + "newline-before-return": "off", + "multiline-ternary": "off", + "max-statements": ["error", 15], + "no-console": ["error", { allow: ["warn", "error"] }], + "no-magic-numbers": ["error", { "ignore": [0, 1, 2] }], + "no-param-reassign": "off", + "no-ternary": "off", + "object-curly-spacing": [ + "error", + "always", { "arraysInObjects": false, "objectsInObjects": false } + ], + "object-curly-newline": "off", + "object-property-newline": "off", + "object-shorthand": "off", + "padded-blocks": "off", + "prefer-template": "off", + "quote-props": ["error", "as-needed"], + "require-jsdoc": "off", + "sort-imports": "off", + "sort-keys": "off", + "sort-vars": "off", + "space-before-function-paren": ["error", "never"] + } +} |