From 061082d9bac443eb39a0094adf5baf25ec1f741c Mon Sep 17 00:00:00 2001 From: Gil Barbara Date: Sun, 16 Dec 2018 04:25:50 -0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Update=20CI=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .codeclimate.yml | 42 ++++++++++++++++++++++++++---------------- .eslintrc | 2 +- .gitignore | 2 +- .travis.yml | 5 ++--- 4 files changed, 30 insertions(+), 21 deletions(-) diff --git a/.codeclimate.yml b/.codeclimate.yml index b8ad490..36c938d 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -1,31 +1,41 @@ --- version: "2" checks: + argument-count: + config: + threshold: 4 + complex-logic: + config: + threshold: 4 + file-lines: + config: + threshold: 500 method-complexity: config: - threshold: 10 + threshold: 20 + method-count: + config: + threshold: 20 method-lines: config: threshold: 50 -plugins: - eslint: - enabled: true - channel: "eslint-4" - checks: - import/no-duplicates: - enabled: false - no-template-curly-in-string: - enabled: false - import/no-unresolved: - enabled: false - import/no-extraneous-dependencies: - enabled: false - import/no-named-as-default-member: - enabled: false + nested-control-flow: + config: + threshold: 4 + return-statements: + config: + threshold: 4 + similar-code: + config: + threshold: 100 + identical-code: + config: + threshold: 20 exclude_patterns: - coverage/**/* - es/**/* - lib/**/* - node_modules/**/* + - stories/**/* - test/**/* diff --git a/.eslintrc b/.eslintrc index d68e543..a929a8e 100644 --- a/.eslintrc +++ b/.eslintrc @@ -123,7 +123,7 @@ "jsx-a11y/no-static-element-interactions": "off", "jsx-quotes": "warn", "react/destructuring-assignment": "warn", - "react/forbid-prop-types": "off", + "react/forbid-foreign-prop-types": "off", "react/jsx-closing-bracket-location": ["warn", "line-aligned"], "react/jsx-filename-extension": "off", "react/jsx-first-prop-new-line": ["warn", "multiline"], diff --git a/.gitignore b/.gitignore index 860d8f0..a4b5a95 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,7 @@ local.properties # Modules and Caches ########################### .tmp -package/ +coverage node_modules /*.js !/*.config.js diff --git a/.travis.yml b/.travis.yml index ec4898b..ba08e0d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: node_js node_js: - - '8' + - '10' cache: directories: - "node_modules" @@ -9,9 +9,8 @@ before_script: - chmod +x ./cc-test-reporter - ./cc-test-reporter before-build script: - - npm test + - npm validate after_success: - - npm run bundlesize - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT addons: code_climate: true