chore: add editorconfig-checker

This commit is contained in:
divlo 2021-03-19 14:07:21 +01:00
parent 85953cdcce
commit 0d0109be52
4 changed files with 627 additions and 317 deletions

View File

@ -33,17 +33,9 @@ jobs:
- name: 'Install dependencies' - name: 'Install dependencies'
run: 'npm ci --cache .npm --prefer-offline' run: 'npm ci --cache .npm --prefer-offline'
- name: 'Lint' - run: 'npm run lint:editorconfig'
run: 'npm run lint' - run: 'npm run lint:markdown'
- run: 'npm run lint'
- name: 'MarkdownLint' - run: 'npm run build'
run: 'npm run markdownlint' - run: 'npm test'
- uses: 'codecov/codecov-action@v1'
- 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'

View File

@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
. "$(dirname "$0")/_/husky.sh" . "$(dirname "$0")/_/husky.sh"
npm run lint:editorconfig
npm run lint:markdown
npm run lint npm run lint
npm run markdownlint

914
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -39,8 +39,9 @@
}, },
"hooks": { "hooks": {
"before:init": [ "before:init": [
"npm run lint:editorconfig",
"npm run lint:markdown",
"npm run lint", "npm run lint",
"npm run markdownlint",
"npm run build", "npm run build",
"npm run test" "npm run test"
] ]
@ -73,7 +74,8 @@
}, },
"scripts": { "scripts": {
"build": "rimraf ./build && tsc", "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", "lint": "ts-standard",
"release": "release-it", "release": "release-it",
"test": "jest", "test": "jest",
@ -97,6 +99,7 @@
"@types/node": "14.14.35", "@types/node": "14.14.35",
"@types/server-destroy": "1.0.1", "@types/server-destroy": "1.0.1",
"axios": "0.21.1", "axios": "0.21.1",
"editorconfig-checker": "4.0.1",
"express": "4.17.1", "express": "4.17.1",
"husky": "5.1.3", "husky": "5.1.3",
"jest": "26.6.3", "jest": "26.6.3",