Skip to content

Commit

Permalink
build(global): INFRA-354 global stylelint 💅🏾💅🏾💅🏾 (#4868)
Browse files Browse the repository at this point in the history
* build(global): INFRA-354 global stylelint

* build(global): INFRA-354 added proper postcss dep

* fix(global): INFRA-354 fix current styling errors
  • Loading branch information
SavelevMatthew authored Jun 25, 2024
1 parent c96d9ba commit 3811f06
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/nodejs.condo.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ jobs:
- 'apps/condorb'
lint:
name: Lint source code
runs-on: ubuntu-latest
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/node_modules
**/dist
2 changes: 1 addition & 1 deletion apps/eps
Submodule eps updated from 75dee1 to 9cb7c5
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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",
Expand Down
28 changes: 28 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 3811f06

Please sign in to comment.