chore: add editorconfig-checker
This commit is contained in:
parent
85953cdcce
commit
0d0109be52
20
.github/workflows/nodejs.yml
vendored
20
.github/workflows/nodejs.yml
vendored
@ -33,17 +33,9 @@ jobs:
|
||||
- name: 'Install dependencies'
|
||||
run: 'npm ci --cache .npm --prefer-offline'
|
||||
|
||||
- name: 'Lint'
|
||||
run: 'npm run lint'
|
||||
|
||||
- name: 'MarkdownLint'
|
||||
run: 'npm run markdownlint'
|
||||
|
||||
- name: 'Build'
|
||||
run: 'npm run build'
|
||||
|
||||
- name: 'Run the tests and generate coverage report'
|
||||
run: 'npm test'
|
||||
|
||||
- name: 'Upload coverage to Codecov'
|
||||
uses: 'codecov/codecov-action@v1'
|
||||
- run: 'npm run lint:editorconfig'
|
||||
- run: 'npm run lint:markdown'
|
||||
- run: 'npm run lint'
|
||||
- run: 'npm run build'
|
||||
- run: 'npm test'
|
||||
- uses: 'codecov/codecov-action@v1'
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
npm run lint:editorconfig
|
||||
npm run lint:markdown
|
||||
npm run lint
|
||||
npm run markdownlint
|
||||
|
914
package-lock.json
generated
914
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -39,8 +39,9 @@
|
||||
},
|
||||
"hooks": {
|
||||
"before:init": [
|
||||
"npm run lint:editorconfig",
|
||||
"npm run lint:markdown",
|
||||
"npm run lint",
|
||||
"npm run markdownlint",
|
||||
"npm run build",
|
||||
"npm run test"
|
||||
]
|
||||
@ -73,7 +74,8 @@
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rimraf ./build && tsc",
|
||||
"markdownlint": "markdownlint '**/*.md' --dot --ignore node_modules",
|
||||
"lint:editorconfig": "editorconfig-checker",
|
||||
"lint:markdown": "markdownlint '**/*.md' --dot --ignore node_modules",
|
||||
"lint": "ts-standard",
|
||||
"release": "release-it",
|
||||
"test": "jest",
|
||||
@ -97,6 +99,7 @@
|
||||
"@types/node": "14.14.35",
|
||||
"@types/server-destroy": "1.0.1",
|
||||
"axios": "0.21.1",
|
||||
"editorconfig-checker": "4.0.1",
|
||||
"express": "4.17.1",
|
||||
"husky": "5.1.3",
|
||||
"jest": "26.6.3",
|
||||
|
Reference in New Issue
Block a user