Skip to content

Commit

Permalink
⚡️ Update CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara committed Dec 16, 2018
1 parent 468694b commit 061082d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 21 deletions.
42 changes: 26 additions & 16 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -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/**/*

2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local.properties
# Modules and Caches
###########################
.tmp
package/
coverage
node_modules
/*.js
!/*.config.js
Expand Down
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- '8'
- '10'
cache:
directories:
- "node_modules"
Expand All @@ -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

0 comments on commit 061082d

Please sign in to comment.