-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
44 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"extends": "eslint-config-neo/config-backend", | ||
"rules": { | ||
"no-console": "off" | ||
"no-console": "off", | ||
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
module.exports = { | ||
collectCoverageFrom: ['src/**/*.{ts,js}', '!<rootDir>/node_modules/', '!<rootDir>/build/', '!<rootDir>/*.js'], | ||
collectCoverageFrom: [ | ||
'src/**/*.{ts,js}', | ||
'!<rootDir>/node_modules/', | ||
'!<rootDir>/build/', | ||
'!<rootDir>/dist/', | ||
'!<rootDir>/*.js' | ||
], | ||
globals: { | ||
'ts-jest': { | ||
tsConfig: '<rootDir>/test/tsconfig.json' | ||
} | ||
}, | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
testPathIgnorePatterns: ['<rootDir>/build/', '<rootDir>/config.*.js'] | ||
testPathIgnorePatterns: ['<rootDir>/build/', '<rootDir>/dist/', '<rootDir>/config.*.js'] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "ccscan", | ||
"description": "Scan files for credit card numbers", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "Neo Financial Engineering <[email protected]>", | ||
"license": "MIT", | ||
"main": "build/app.js", | ||
|
@@ -17,13 +17,14 @@ | |
}, | ||
"scripts": { | ||
"start": "./bin/ccscan.js", | ||
"watch": "tsc -w", | ||
"build": "tsc", | ||
"watch": "ncc build src/app.ts -o build --minify --watch", | ||
"build": "ncc build src/app.ts -o build --minify", | ||
"clean": "rimraf build", | ||
"test": "NODE_ENV=test jest", | ||
"lint": "eslint \"**/*.{ts,js}\"", | ||
"format": "prettier --write \"**/*.{ts,js,json,yaml,yml,md}\"", | ||
"format:check": "prettier --debug-check \"**/*.{ts,js,json,yaml,yml,md}\"" | ||
"format:check": "prettier --debug-check \"**/*.{ts,js,json,yaml,yml,md}\"", | ||
"prepublishOnly": "rimraf build && ncc build src/app.ts -o build --minify" | ||
}, | ||
"files": [ | ||
"bin", | ||
|
@@ -39,28 +40,27 @@ | |
"git add" | ||
] | ||
}, | ||
"dependencies": { | ||
"chalk": "^2.4.2", | ||
"fast-luhn": "^1.0.4", | ||
"globby": "^10.0.1", | ||
"line-reader": "^0.4.0", | ||
"yargs": "^14.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^24.0.20", | ||
"@types/line-reader": "^0.0.28", | ||
"@types/node": "^12.11.7", | ||
"@types/yargs": "^13.0.3", | ||
"@zeit/ncc": "^0.20.5", | ||
"chalk": "^2.4.2", | ||
"eslint": "^5.16.0", | ||
"eslint-config-neo": "~0.3.3", | ||
"fast-luhn": "^1.0.4", | ||
"globby": "^10.0.1", | ||
"husky": "^3.0.8", | ||
"jest": "^24.9.0", | ||
"line-reader": "^0.4.0", | ||
"lint-staged": "^9.4.2", | ||
"prettier": "^1.18.2", | ||
"rimraf": "^3.0.0", | ||
"strip-ansi": "^5.2.0", | ||
"ts-jest": "^24.1.0", | ||
"ts-node": "^8.4.1", | ||
"typescript": "~3.5.3" | ||
"typescript": "~3.5.3", | ||
"yargs": "^14.2.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters