From bb5ba4861d421dffb21b1aeef44269993cea6a53 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Fri, 23 Sep 2016 18:36:47 +0800 Subject: [PATCH] [WIP] code climate config file (#654) code climate config file --- .codeclimate.yml | 32 ++++++++++++++++++++++++++++++++ .eslintignore | 3 +++ .eslintrc.js | 9 +++++++++ package.json | 7 +++++++ 4 files changed, 51 insertions(+) create mode 100644 .codeclimate.yml create mode 100644 .eslintignore create mode 100644 .eslintrc.js diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 00000000..9156645c --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,32 @@ +--- +engines: + brakeman: + enabled: true + bundler-audit: + enabled: true + duplication: + enabled: true + config: + languages: + - ruby + - javascript + eslint: + enabled: true + fixme: + enabled: true + rubocop: + enabled: true +ratings: + paths: + - 'Gemfile.lock' + - '**.erb' + - '**.rb' + - '**.js' + - '**.jsx' +exclude_paths: +- app/assets/images/ +- app/assets/javascripts/lib/ +- frontend/src/patched/ +- db/ +- script/ +- spec/ diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 00000000..86a563fd --- /dev/null +++ b/.eslintignore @@ -0,0 +1,3 @@ +**/*{.,-}min.js +frontend/src/patched/* +app/assets/javascripts/lib/* diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 00000000..bc65fe94 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,9 @@ +module.exports = { + "sourceType": "module", + "parser": "babel-eslint", + "extends": "standard", + "installedESLint": true, + "plugins": [ + "standard" + ] +}; diff --git a/package.json b/package.json index d15d248e..bb32377d 100644 --- a/package.json +++ b/package.json @@ -36,5 +36,12 @@ "socket.io": "0.9.12", "underscore": "^1.4.4", "webpack": "^1.13.1" + }, + "devDependencies": { + "babel-eslint": "^6.1.2", + "eslint": "^3.5.0", + "eslint-config-standard": "^6.0.1", + "eslint-plugin-promise": "^2.0.1", + "eslint-plugin-standard": "^2.0.0" } }