Skip to content

Commit

Permalink
[ACS-4792] provide support for style linting (#3055)
Browse files Browse the repository at this point in the history
* [ACS-4792] provide support for style linting

* style fixes

* style fixes

* style fixes

* disable yarn licenses until the issue is fixed

* fix package lock

* fix after rebase
  • Loading branch information
DenysVuika committed Mar 14, 2023
1 parent c996d7d commit b939d1c
Show file tree
Hide file tree
Showing 39 changed files with 969 additions and 255 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm run stylelint

build:
name: 'build'
Expand Down
14 changes: 14 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "stylelint-config-standard-scss",
"rules": {
"color-function-notation": "legacy",
"alpha-value-notation": "number",
"function-name-case": "lower",
"selector-class-pattern": [
"^_?(adf|adf-|aca-|app|app-|cdk-||mat-|material-)",
{
"resolveNestedSelectors": true
}
]
}
}
4 changes: 2 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"recommendations": [
"angular.ng-template",
"streetsidesoftware.code-spell-checker",
"ms-azuretools.vscode-docker",
"editorconfig.editorconfig",
"davidanson.vscode-markdownlint",
"esbenp.prettier-vscode",
"eamodio.gitlens"
"eamodio.gitlens",
"stylelint.vscode-stylelint"
]
}
9 changes: 8 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,12 @@
},
"markdownlint.config": {
"MD033": false
}
},
"css.validate": false,
"less.validate": false,
"scss.validate": false,
"stylelint.validate": [
"css",
"scss"
]
}
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ FROM node:16.13-alpine3.14 AS builder
WORKDIR /usr/src/alfresco
COPY package.json package.json

RUN mkdir -p ./licenses && \
yarn licenses list > ./licenses/licenses.txt && \
yarn licenses generate-disclaimer > ./licenses/disclaimer.txt
# RUN mkdir -p ./licenses && \
# yarn licenses list --production > ./licenses/licenses.txt && \
# yarn licenses generate-disclaimer --production > ./licenses/disclaimer.txt

# 2. Generate image

Expand Down
6 changes: 5 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"version": "0.1",
"version": "0.2",
"language": "en",
"ignorePaths": [
".*",
"package.json"
],
"words": [
"ADDFEATURES",
"afts",
Expand Down

0 comments on commit b939d1c

Please sign in to comment.