diff --git a/.github/workflows/nodejs.condo.ci.yml b/.github/workflows/nodejs.condo.ci.yml index 9b956818638..124750770de 100644 --- a/.github/workflows/nodejs.condo.ci.yml +++ b/.github/workflows/nodejs.condo.ci.yml @@ -113,6 +113,7 @@ jobs: - 'apps/condorb' + lint: name: Lint source code runs-on: ubuntu-latest @@ -131,9 +132,12 @@ jobs: - name: Install root dependencies run: | yarn workspaces focus root - - name: Check code-style rules + - name: Check JS code-style rules run: | yarn lint:code + - name: Check styling rules + run: | + yarn lint:styles - name: Check translations rules run: | yarn lint:translations diff --git a/.stylelintignore b/.stylelintignore new file mode 100644 index 00000000000..569ce539708 --- /dev/null +++ b/.stylelintignore @@ -0,0 +1,2 @@ +**/node_modules +**/dist \ No newline at end of file diff --git a/apps/eps b/apps/eps index 75dee1818dc..9cb7c57ca5f 160000 --- a/apps/eps +++ b/apps/eps @@ -1 +1 @@ -Subproject commit 75dee1818dc3980bbc24993e7ed1fb700a659b7a +Subproject commit 9cb7c57ca5f93a20da3f505501f534590ddffdc0 diff --git a/package.json b/package.json index b18fc8ba1bd..07ea48509a5 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,10 @@ "build:apps": "turbo run build --filter='./apps/*' --concurrency=100%", "build": "turbo run build", "lint:code": "yarn run eslint . --ext .js,.jsx,.ts,.tsx", + "lint:styles": "yarn run stylelint \"**/*.{less,css}\"", "lint:code:fix": "yarn run eslint --fix . --ext .js,.jsx,.ts,.tsx", "lint:translations": "turbo run lint-translations", + "lint": "yarn lint:code && yarn lint:styles && yarn lint:translations", "createapp": "node ./bin/createapp", "prepare": "husky install" }, @@ -51,6 +53,7 @@ "jest-jasmine2": "^29.7.0", "mono-pub": "^1.0.1", "node-fetch": "^2.6.7", + "postcss": "^8.3.5", "postcss-less": "^6.0.0", "stylelint": "^14.11.0", "stylelint-config-rational-order": "^0.1.2", diff --git a/yarn.lock b/yarn.lock index f83a9c4be37..3d4209298cc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -37962,6 +37962,15 @@ __metadata: languageName: node linkType: hard +"nanoid@npm:^3.3.7": + version: 3.3.7 + resolution: "nanoid@npm:3.3.7" + bin: + nanoid: bin/nanoid.cjs + checksum: d36c427e530713e4ac6567d488b489a36582ef89da1d6d4e3b87eded11eb10d7042a877958c6f104929809b2ab0bafa17652b076cdf84324aa75b30b722204f2 + languageName: node + linkType: hard + "nanomatch@npm:^1.2.9": version: 1.2.13 resolution: "nanomatch@npm:1.2.13" @@ -41624,6 +41633,17 @@ __metadata: languageName: node linkType: hard +"postcss@npm:^8.3.5": + version: 8.4.38 + resolution: "postcss@npm:8.4.38" + dependencies: + nanoid: ^3.3.7 + picocolors: ^1.0.0 + source-map-js: ^1.2.0 + checksum: 649f9e60a763ca4b5a7bbec446a069edf07f057f6d780a5a0070576b841538d1ecf7dd888f2fbfd1f76200e26c969e405aeeae66332e6927dbdc8bdcb90b9451 + languageName: node + linkType: hard + "postgres-array@npm:~2.0.0": version: 2.0.0 resolution: "postgres-array@npm:2.0.0" @@ -46461,6 +46481,7 @@ __metadata: jest-jasmine2: ^29.7.0 mono-pub: ^1.0.1 node-fetch: ^2.6.7 + postcss: ^8.3.5 postcss-less: ^6.0.0 stylelint: ^14.11.0 stylelint-config-rational-order: ^0.1.2 @@ -47725,6 +47746,13 @@ __metadata: languageName: node linkType: hard +"source-map-js@npm:^1.2.0": + version: 1.2.0 + resolution: "source-map-js@npm:1.2.0" + checksum: 791a43306d9223792e84293b00458bf102a8946e7188f3db0e4e22d8d530b5f80a4ce468eb5ec0bf585443ad55ebbd630bf379c98db0b1f317fd902500217f97 + languageName: node + linkType: hard + "source-map-loader@npm:^4.0.1": version: 4.0.1 resolution: "source-map-loader@npm:4.0.1"