Skip to content

Commit

Permalink
feat: update stylelint to v16 and support node 20 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
DRiFTy17 authored Apr 24, 2024
1 parent c2d2f0f commit 51f4636
Show file tree
Hide file tree
Showing 8 changed files with 3,575 additions and 1,780 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/auto-pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ name: Pull Request Validation

on:
pull_request:
branches:
- main
types: [opened, synchronize, reopened, labeled, unlabeled]
workflow_dispatch:

jobs:
release:
name: Pull Request Validation
uses: tyler-technologies-oss/forge-automation-shared/.github/workflows/wf-auto-pr-check.yml@v1.0.0
uses: tyler-technologies-oss/forge-automation-shared/.github/workflows/wf-auto-pr-check.yml@v2.9.0
4 changes: 2 additions & 2 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ concurrency: auto-release-${{ github.ref }}
jobs:
release:
name: Release
uses: tyler-technologies-oss/forge-automation-shared/.github/workflows/wf-build-release.yml@v1.0.0
uses: tyler-technologies-oss/forge-automation-shared/.github/workflows/wf-build-release.yml@v2.9.0
with:
PRODUCTION_RELEASE: true
BUILD_ENABLED: false
secrets:
GITHUB_APP_ID: ${{ secrets.FORGE_AUTOBOT_ID }}
GITHUB_APP_KEY: ${{ secrets.FORGE_AUTOBOT_SECRET }}
NPM_TOKEN: ${{ secrets.FORGE_NPM_TOKEN }}


12 changes: 12 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "./index.mjs",
"rules": {
"scss/at-mixin-argumentless-call-parentheses": null,
"scss/at-rule-conditional-no-parentheses": null,
"scss/no-global-function-names": null,
"scss/no-duplicate-mixins": null,
"at-rule-no-vendor-prefix": null,
"selector-type-no-unknown": null,
"color-function-notation": null
}
}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
## Tyler Stylelint Rules
## Stylelint Rules

This repository contains default rules to provide to `stylelint` when compiling Sass files.
This repository contains default `stylelint` rules for Tyler Technologies, Inc. repositories.

## Usage

Install the latest package:
Install:

```bash
$ npm install -D $tylertech/stylelint-rules
$ npm install -D @tylertech/stylelint-rules
```

Create a new `.stylelintrc` file in the root of your project and provide the default configuration:
Expand All @@ -18,4 +18,4 @@ Create a new `.stylelintrc` file in the root of your project and provide the def
}
```

> Rules can be overridden as needed by specifying the rule and value as you would usually for stylelint.
> Rules can be overridden as needed by specifying the rule and value as you would usually for [stylelint](https://stylelint.io/).
63 changes: 0 additions & 63 deletions index.js

This file was deleted.

75 changes: 75 additions & 0 deletions index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import postcssScss from "postcss-scss";

export default {
extends: "stylelint-config-standard-scss",
customSyntax: postcssScss,
plugins: ["stylelint-scss"],
rules: {
"alpha-value-notation": null,

"at-rule-empty-line-before": null,
"at-rule-no-unknown": null,

"color-hex-length": null,
"color-no-invalid-hex": true,
"comment-no-empty": null,
"custom-property-empty-line-before": null,

"declaration-block-no-duplicate-properties": [true, {
"ignore": ["consecutive-duplicates-with-different-values"]
}],
"declaration-block-no-redundant-longhand-properties": null,
"declaration-block-no-shorthand-property-overrides": null,
"declaration-block-single-line-max-declarations": 1,
"declaration-empty-line-before": null,

"font-family-name-quotes": null,
"font-family-no-missing-generic-family-keyword": null,

"function-calc-no-unspaced-operator": true,
"function-name-case": "lower",
"function-no-unknown": null,
"function-url-quotes": "always",

"length-zero-no-unit": null,

"media-feature-range-notation": null,

"no-descending-specificity": null,
"no-duplicate-selectors": null,

"number-max-precision": null,

"property-no-vendor-prefix": null,

"rule-empty-line-before": null,

"selector-attribute-quotes": null,
"selector-class-pattern": null,
"selector-max-id": null,
"selector-not-notation": null,
"selector-pseudo-element-colon-notation": "double",
"selector-pseudo-element-no-unknown": [true, {
"ignorePseudoElements": ["/part/", "part"]
}],
"selector-type-case": "lower",

"shorthand-property-no-redundant-values": true,

"string-no-newline": true,

"selector-type-case": "lower",
"selector-max-id": null,

"value-keyword-case": null,

"scss/at-function-pattern": null,
"scss/at-if-no-null": null,
"scss/at-mixin-pattern": null,
"scss/comment-no-empty": null,
"scss/dollar-variable-empty-line-before": null,
"scss/dollar-variable-pattern": null,
"scss/double-slash-comment-empty-line-before": null,
"scss/operator-no-newline-after": null
}
};
Loading

0 comments on commit 51f4636

Please sign in to comment.