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 node_modules
# make channels/e2e/playwright/node_modules # make channels/e2e/playwright/node_modules
- name: ci/lint - name: ci/lint
working-directory: webapp/channels
run: | run: |
npm run check npm run check
check-i18n: check-i18n:

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

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

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

@@ -225,7 +225,7 @@
"dev-server": "webpack serve --mode development", "dev-server": "webpack serve --mode development",
"test": "cross-env TZ=Etc/UTC jest --maxWorkers=50%", "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", "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", "stats": "cross-env NODE_ENV=production webpack --profile --json > webpack_stats.json",
"updatesnapshot": "cross-env TZ=Etc/UTC jest --updateSnapshot", "updatesnapshot": "cross-env TZ=Etc/UTC jest --updateSnapshot",
"test:debug": "cross-env TZ=Etc/UTC jest --forceExit --detectOpenHandles", "test:debug": "cross-env TZ=Etc/UTC jest --forceExit --detectOpenHandles",

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

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

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

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

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

@@ -1,4 +1,5 @@
{ {
"name": "playbooks",
"private": true, "private": true,
"engines": { "engines": {
"npm": ">=7.0.0", "npm": ">=7.0.0",
@@ -121,7 +122,7 @@
"debug": "webpack --mode=development", "debug": "webpack --mode=development",
"debug:watch": "webpack --mode=development --watch", "debug:watch": "webpack --mode=development --watch",
"dev-server": "webpack serve --mode=development", "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", "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": "jest --forceExit --detectOpenHandles --verbose",
"test:watch": "jest --watch", "test:watch": "jest --watch",