Skip to content

Commit

Permalink
ESLint update
Browse files Browse the repository at this point in the history
- Update eslint config
- Move code climate linting to eslint
- Fix all errors
- Autofixes
- Some warning fixes
  • Loading branch information
Patrik Kullman authored and nomego committed May 3, 2019
1 parent 66d3e69 commit 1714f43
Show file tree
Hide file tree
Showing 7 changed files with 362 additions and 183 deletions.
28 changes: 12 additions & 16 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,23 @@
version: "2"
checks:
argument-count:
enabled: true
config:
threshold: 4
enabled: false # handled by eslint rule "max-params"
complex-logic:
enabled: true
config:
threshold: 4
file-lines:
enabled: true
config:
threshold: 250
enabled: false # handled by eslint rule "max-lines"
method-complexity:
enabled: true
config:
threshold: 5
enabled: false # handled by eslint rule "complexity"
method-count:
enabled: true
config:
threshold: 20
method-lines:
enabled: true
config:
threshold: 30
enabled: false # handled by eslint rule "max-lines-per-function"
nested-control-flow:
enabled: true
config:
threshold: 4
enabled: false # handled by eslint rule "max-depth"
return-statements:
enabled: true
config:
Expand All @@ -41,11 +31,17 @@ checks:
plugins:
eslint:
enabled: true
channel: "eslint-4"
channel: "eslint-5"
config:
sanitize_batch: false
extensions:
- .js
- .html
fixme:
enabled: true

exclude_patterns:
- "bower_components/"
- "node_modules/"
- "demo/"
- "test/"
Loading

0 comments on commit 1714f43

Please sign in to comment.