mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-08 20:09:19 +00:00
Run dead code analysis in lint script and CI
This commit is contained in:
2
.github/workflows/lint.yaml
vendored
2
.github/workflows/lint.yaml
vendored
@@ -23,3 +23,5 @@ jobs:
|
|||||||
run: "yarn run lint:eslint"
|
run: "yarn run lint:eslint"
|
||||||
- name: Type check
|
- name: Type check
|
||||||
run: "yarn run lint:types"
|
run: "yarn run lint:types"
|
||||||
|
- name: Dead code analysis
|
||||||
|
run: "yarn run lint:knip"
|
||||||
|
|||||||
@@ -8,9 +8,10 @@
|
|||||||
"serve": "vite preview",
|
"serve": "vite preview",
|
||||||
"prettier:check": "prettier -c .",
|
"prettier:check": "prettier -c .",
|
||||||
"prettier:format": "prettier -w .",
|
"prettier:format": "prettier -w .",
|
||||||
"lint": "yarn lint:types && yarn lint:eslint",
|
"lint": "yarn lint:types && yarn lint:eslint && yarn lint:knip",
|
||||||
"lint:eslint": "eslint --max-warnings 0 src",
|
"lint:eslint": "eslint --max-warnings 0 src",
|
||||||
"lint:eslint-fix": "eslint --max-warnings 0 src --fix",
|
"lint:eslint-fix": "eslint --max-warnings 0 src --fix",
|
||||||
|
"lint:knip": "knip",
|
||||||
"lint:types": "tsc",
|
"lint:types": "tsc",
|
||||||
"i18n": "i18next",
|
"i18n": "i18next",
|
||||||
"i18n:check": "i18next --fail-on-warnings --fail-on-update",
|
"i18n:check": "i18next --fail-on-warnings --fail-on-update",
|
||||||
|
|||||||
Reference in New Issue
Block a user