Skip to content

Commit

Permalink
csslint; folders (+readme up) code-charity#2345 code-charity#2438 cod…
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube authored and 4yman-0 committed Jul 18, 2024
1 parent 5bcbba2 commit 65c580b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 14 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/eslint_csslint_jest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,16 @@ jobs:
run: npx eslint --config=tests/eslint_rules.config.mjs
continue-on-error: true

- name: Run CSSLint
run: |
find css -type f -name '*.css' -exec npx csslint --config tests/csslint_rules.json {} +
# - name: Run JSLint
# run: npx jslint "**/*.js"
# continue-on-error: true

- name: Run Jest
run: npx jest # --config=tests/jest.config.js
run: npx jest --config=tests/jest.config.js

- name: Run npm test
run: npm test

- name: Install csslint using npm
run: npm install -g csslint@1.0.5

# - name: Lint CSS files
# run: |
# for file in $(grep -rl --include='*.css' '' ./); do npx csslint --config tests/csslint_rules.json "$file"; done


34 changes: 30 additions & 4 deletions tests/csslint_rules.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
{"rules":
{"known-properties":true,
}
}
{
"rules": {
"adjoining-classes": "warn",
"box-model": "warn",
"box-sizing": "warn",
"compatible-vendor-prefixes": "warn",
"display-property-grouping": "warn",
"duplicate-background-images": "warn",
"floats": "warn",
"font-faces": "warn",
"font-sizes": "warn",
"gradients": "warn",
"ids": "warn",
"import": "warn",
"important": "warn",
"known-properties": "enforce",
"outline-none": "warn",
"overqualified-elements": "warn",
"qualified-headings": "warn",
"regex-selectors": "warn",
"shorthand": "warn",
"text-indent": "warn",
"underscore-property-hack": "warn",
"unique-headings": "warn",
"universal-selector": "warn",
"unqualified-attributes": "warn",
"vendor-prefix": "warn",
"zero-units": "warn"
}
}

File renamed without changes.

0 comments on commit 65c580b

Please sign in to comment.