Skip to content

Commit 62aa48e

Browse files
authored
Enable CSS linting (#58)
* Enable CSS linting * Back out linting of JointJS CSS * Restore lib CSS * Revert changes to lib CSS * Add config
1 parent f16ad40 commit 62aa48e

File tree

5 files changed

+779
-68
lines changed

5 files changed

+779
-68
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,18 @@ jobs:
3636
run: npm ci
3737
- name: Run ESLint
3838
run: npm run lint
39+
40+
lint-styles:
41+
name: Lint Styles
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: Checkout code
45+
uses: actions/checkout@v2
46+
- name: Setup Node.js 16.x
47+
uses: actions/setup-node@v2.1.4
48+
with:
49+
node-version: 16.x
50+
- name: Install dependencies
51+
run: npm ci
52+
- name: Run Stylelint
53+
run: npm run lint:styles

.stylelintrc.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"extends": "stylelint-config-standard-scss",
3+
"rules": {
4+
"indentation": 4,
5+
"font-family-no-missing-generic-family-keyword": [
6+
true,
7+
{
8+
"ignoreFontFamilies": [
9+
"pc-icon"
10+
]
11+
}
12+
],
13+
"no-descending-specificity": null,
14+
"no-duplicate-selectors": null,
15+
"scss/no-global-function-names": null,
16+
"scss/at-extend-no-missing-placeholder": null,
17+
"string-quotes": "single"
18+
}
19+
}

0 commit comments

Comments
 (0)