Run linters for all web app packages as part of Web App CI linting (#22576)

Этот коммит содержится в:
Harrison Healey
2023-03-23 10:10:28 -04:00
коммит произвёл GitHub
родитель a31159257d
Коммит f294ef9843
6 изменённых файлов: 7 добавлений и 7 удалений

1
.github/workflows/channels-ci.yml поставляемый
Просмотреть файл

@@ -38,7 +38,6 @@ jobs:
make node_modules
# make channels/e2e/playwright/node_modules
- name: ci/lint
working-directory: webapp/channels
run: |
npm run check
check-i18n:

Просмотреть файл

@@ -17,8 +17,8 @@
"check-style:fix:prettier": "prettier --write './src/**/*.scss'",
"check-types": "tsc",
"check-types:fix": "npm run check-types -- --noEmit --fix",
"check": "npm run check-lint && npm run check-style && npm run check-types",
"fix": "npm run check-lint:fix && npm run check-style:fix && npm run check-types:fix",
"check": "npm run check-lint && npm run check-style",
"fix": "npm run check-lint:fix && npm run check-style:fix",
"test": "jest --forceExit --detectOpenHandles --verbose",
"test:watch": "jest --watch",
"test:updatesnapshot": "jest --updateSnapshot",

Просмотреть файл

@@ -225,7 +225,7 @@
"dev-server": "webpack serve --mode development",
"test": "cross-env TZ=Etc/UTC jest --maxWorkers=50%",
"test-ci": "cross-env NODE_OPTIONS=--max_old_space_size=5120 TZ=Etc/UTC jest --ci",
"clean": "rm -rf dist node_modules .eslintcache .stylelintcache",
"clean": "rm -rf dist node_modules .eslintcache .stylelintcache tsconfig.tsbuildinfo",
"stats": "cross-env NODE_ENV=production webpack --profile --json > webpack_stats.json",
"updatesnapshot": "cross-env TZ=Etc/UTC jest --updateSnapshot",
"test:debug": "cross-env TZ=Etc/UTC jest --forceExit --detectOpenHandles",

Просмотреть файл

@@ -38,6 +38,6 @@
"build": "tsc --build --verbose",
"run": "tsc --watch --preserveWatchOutput",
"test": "jest",
"clean": "rm -rf tsconfig.tsbuildinfo ./lib"
"clean": "rm -rf lib node_modules tsconfig.tsbuildinfo"
}
}

Просмотреть файл

@@ -7,7 +7,7 @@
"scripts": {
"build": "rollup -c",
"run": "rollup -c --watch",
"clean": "rm -rf node_modules dist"
"clean": "rm -rf dist node_modules tsconfig.tsbuildinfo"
},
"devDependencies": {
"@babel/cli": "^7.17.6",

Просмотреть файл

@@ -1,4 +1,5 @@
{
"name": "playbooks",
"private": true,
"engines": {
"npm": ">=7.0.0",
@@ -121,7 +122,7 @@
"debug": "webpack --mode=development",
"debug:watch": "webpack --mode=development --watch",
"dev-server": "webpack serve --mode=development",
"lint": "eslint --ignore-pattern node_modules --ignore-pattern dist --ext .js --ext .jsx --ext tsx --ext ts . --quiet --cache",
"check": "eslint --ignore-pattern node_modules --ignore-pattern dist --ext .js --ext .jsx --ext tsx --ext ts . --quiet --cache",
"fix": "eslint --ignore-pattern node_modules --ignore-pattern dist --ext .js --ext .jsx --ext tsx --ext ts . --quiet --fix --cache",
"test": "jest --forceExit --detectOpenHandles --verbose",
"test:watch": "jest --watch",