Skip to content

Commit

Permalink
refactor: simplify scan from file
Browse files Browse the repository at this point in the history
Refactor: simplify scan from file
  • Loading branch information
victorperin committed Feb 2, 2020
2 parents 2c3e601 + 7030958 commit 18b7064
Show file tree
Hide file tree
Showing 16 changed files with 4,176 additions and 4,485 deletions.
1 change: 1 addition & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins:
editorconfig: .editorconfig
eslint:
enabled: true
channel: "eslint-6"

exclude_patterns:
- node_modules/*
Expand Down
18 changes: 10 additions & 8 deletions .eslintrc.json → .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@
"node": true,
"jest": true
},
"extends": ["airbnb-base", "prettier"],
"plugins": ["prettier", "editorconfig"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"extends": [
"airbnb-base",
"prettier",
"plugin:node/recommended"
],
"plugins": [
"prettier"
],
"parserOptions": {
"ecmaVersion": 2018
"ecmaVersion": 9,
"sourceType": "module"
},
"rules": {
"prettier/prettier": ["error"],
"editorconfig/editorconfig": "error",
"no-console": "off",
"comma-dangle": ["error", "always-multiline"],
"import/prefer-default-export": "off"
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.js text eol=lf
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
bin
coverage
.nyc_output
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"printWidth": 100,
"semi": false,
"singleQuote": true,
"trailingComma": "all"
"trailingComma": "all",
"endOfLine": "lf"
}
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ 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: 4 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
module.exports = {
clearMocks: true,
collectCoverage: true,
collectCoverageFrom: ['<rootDir>/src/**/*.js'],
coverageDirectory: 'coverage',
// collectCoverage: true,
// collectCoverageFrom: ['src/**'],
// coverageReporters: ['lcov', 'text'],
// coverageDirectory: 'coverage',
testEnvironment: 'node',
testMatch: ['<rootDir>/tests/**/*.test.js', '<rootDir>/src/**/*.test.js'],
verbose: true,
Expand Down
Loading

0 comments on commit 18b7064

Please sign in to comment.