Skip to content

Commit

Permalink
Merge pull request #110 from victorperin/revert-107-refactor/simplify…
Browse files Browse the repository at this point in the history
…-scanFromFile

Revert "Refactor: simplify scan from file"
  • Loading branch information
victorperin authored Feb 2, 2020
2 parents 3996470 + e36cdfc commit 2c3e601
Show file tree
Hide file tree
Showing 16 changed files with 4,485 additions and 4,176 deletions.
1 change: 0 additions & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ plugins:
editorconfig: .editorconfig
eslint:
enabled: true
channel: "eslint-6"

exclude_patterns:
- node_modules/*
Expand Down
18 changes: 8 additions & 10 deletions .eslintrc → .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,18 @@
"node": true,
"jest": true
},
"extends": [
"airbnb-base",
"prettier",
"plugin:node/recommended"
],
"plugins": [
"prettier"
],
"extends": ["airbnb-base", "prettier"],
"plugins": ["prettier", "editorconfig"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
"ecmaVersion": 2018
},
"rules": {
"prettier/prettier": ["error"],
"editorconfig/editorconfig": "error",
"no-console": "off",
"comma-dangle": ["error", "always-multiline"],
"import/prefer-default-export": "off"
Expand Down
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules
bin
coverage
.nyc_output
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
"printWidth": 100,
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"endOfLine": "lf"
"trailingComma": "all"
}
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ before_script:
script:
- commitlint-travis
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then npm run linter ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then xvfb-run npm run test:coverage ; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then npm run test:coverage ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then npm run test:coverage ; fi
Expand Down
7 changes: 3 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
module.exports = {
clearMocks: true,
// collectCoverage: true,
// collectCoverageFrom: ['src/**'],
// coverageReporters: ['lcov', 'text'],
// coverageDirectory: 'coverage',
collectCoverage: true,
collectCoverageFrom: ['<rootDir>/src/**/*.js'],
coverageDirectory: 'coverage',
testEnvironment: 'node',
testMatch: ['<rootDir>/tests/**/*.test.js', '<rootDir>/src/**/*.test.js'],
verbose: true,
Expand Down
Loading

0 comments on commit 2c3e601

Please sign in to comment.