Add formatting and linting tools

This commit is contained in:
svartalf 2020-03-25 08:40:28 +03:00
parent ecffd7835a
commit efdda56b63
14 changed files with 2826 additions and 472 deletions

View file

@ -10,9 +10,11 @@
},
"scripts": {
"bundle": "cp -r .matchers ./dist/",
"build": "ncc build src/main.ts --minify && npm run bundle",
"watch": "npm run bundle && ncc build src/main.ts --watch --minify",
"test": "jest"
"build": "rm -rf ./dist/* && ncc build src/main.ts --minify && npm run bundle",
"format": "prettier --write 'src/**/*.ts' '__tests__/**/*.ts'",
"lint": "tsc --noEmit && eslint 'src/**/*.ts' '__tests__/**/*.ts'",
"watch": "rm -rf ./dist/* && ncc build src/main.ts --watch",
"test": "jest -c jest.config.json"
},
"repository": {
"type": "git",
@ -29,16 +31,23 @@
"url": "https://github.com/actions-rs/cargo/issues"
},
"dependencies": {
"@actions-rs/core": "0.0.8",
"@actions/core": "^1.1.1",
"@actions-rs/core": "0.0.9",
"@actions/core": "^1.2.3",
"string-argv": "^0.3.1"
},
"devDependencies": {
"@types/jest": "^25.1.3",
"@types/node": "^13.7.7",
"@zeit/ncc": "^0.21.1",
"@types/jest": "^25.1.4",
"@types/node": "^13.9.3",
"@typescript-eslint/eslint-plugin": "^2.25.0",
"@typescript-eslint/parser": "^2.25.0",
"@zeit/ncc": "^0.22.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.2",
"jest": "^25.1.0",
"jest-circus": "^25.1.0",
"npm-check-updates": "^4.0.5",
"prettier": "^2.0.2",
"ts-jest": "^25.2.1",
"typescript": "^3.8.3"
}