2
1
mirror of https://github.com/Thream/socketio-jwt.git synced 2024-07-21 09:38:31 +02:00

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'
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'

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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",