stylelint-config-crisp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
1
+ on:
2
+ push:
3
+ tags:
4
+ - "v*.*.*"
5
+
6
+ permissions:
7
+ id-token: write
8
+ contents: write
9
+
10
+ name: Build and Release
11
+
12
+ jobs:
13
+ release:
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - name: Checkout code
18
+ uses: actions/checkout@v2
19
+
20
+ - name: Install NodeJS
21
+ uses: actions/setup-node@v1
22
+ with:
23
+ node-version: 20.x
24
+ registry-url: https://registry.npmjs.org
25
+
26
+ - name: Verify versions
27
+ run: node --version && npm --version && node -p process.versions.v8
28
+
29
+ - name: Release package
30
+ run: npm publish --access public --ignore-scripts --provenance
31
+ env:
32
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # Stylelint Config Crisp
2
+
3
+ [![Build and Release](https://github.com/crisp-oss/stylelint-config-crisp/workflows/Build%20and%20Release/badge.svg)](https://github.com/crisp-oss/stylelint-config-crisp/actions?query=workflow%3A%22Build+and+Release%22) [![NPM](https://img.shields.io/npm/v/stylelint-config-crisp.svg)](https://www.npmjs.com/package/stylelint-config-crisp) [![Downloads](https://img.shields.io/npm/dt/stylelint-config-crisp.svg)](https://www.npmjs.com/package/stylelint-config-crisp)
4
+
5
+ A [Stylelint](https://stylelint.io/) configuration that enforces Crisp's CSS rules.
6
+
7
+ **😘 Maintainer**: [@eliottvincent](https://github.com/eliottvincent)
8
+
9
+ ## Usage
10
+
11
+ Just extend this configuration in your Stylelint config object:
12
+ ```json
13
+ {
14
+ "extends": ["stylelint-config-crisp"]
15
+ }
16
+ ```
17
+
18
+
19
+ ## License
20
+
21
+ stylelint-config-crisp is released under the MIT License. See the bundled LICENSE file for details.
package/index.js ADDED
@@ -0,0 +1,77 @@
1
+ module.exports = {
2
+ overrides: [
3
+ {
4
+ "files": ["*.vue"],
5
+ "customSyntax": "postcss-html"
6
+ }
7
+ ],
8
+
9
+ extends: [
10
+ "stylelint-config-standard-scss",
11
+ "@stylistic/stylelint-config"
12
+ ],
13
+
14
+ plugins: [
15
+ "stylelint-selector-bem-pattern"
16
+ ],
17
+
18
+ rules: {
19
+ "color-function-notation": "legacy",
20
+ "color-hex-length": "long",
21
+ "selector-class-pattern": null,
22
+
23
+ "declaration-block-no-redundant-longhand-properties": [
24
+ true,
25
+
26
+ {
27
+ "ignoreShorthands": [
28
+ "inset",
29
+ "overflow"
30
+ ]
31
+ }
32
+ ],
33
+ "selector-pseudo-class-no-unknown": [
34
+ true,
35
+
36
+ {
37
+ "ignorePseudoClasses": [
38
+ "export"
39
+ ]
40
+ }
41
+ ],
42
+
43
+ "alpha-value-notation": "number",
44
+ "number-max-precision": 5,
45
+ "selector-pseudo-element-colon-notation": "single",
46
+
47
+ "scss/operator-no-newline-after": null,
48
+ "scss/dollar-variable-empty-line-before": null,
49
+ "scss/no-global-function-names": null,
50
+ "scss/at-rule-conditional-no-parentheses": null,
51
+
52
+ "@stylistic/declaration-colon-newline-after": null,
53
+ "@stylistic/declaration-block-trailing-semicolon": "always",
54
+ "@stylistic/selector-pseudo-class-case": "lower",
55
+ "@stylistic/selector-pseudo-element-case": "lower",
56
+ "@stylistic/property-case": "lower",
57
+ "@stylistic/unit-case": "lower",
58
+ "@stylistic/color-hex-case": "lower",
59
+ "@stylistic/number-leading-zero": "always",
60
+ "@stylistic/string-quotes": "double",
61
+ "@stylistic/block-closing-brace-newline-after": [
62
+ "always",
63
+
64
+ {
65
+ "ignoreAtRules": ["if", "else"]
66
+ }
67
+ ],
68
+
69
+ "@stylistic/indentation": [
70
+ 2,
71
+
72
+ {
73
+ "ignore": ["inside-parens"]
74
+ }
75
+ ]
76
+ }
77
+ }
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "stylelint-config-crisp",
3
+ "version": "1.0.0",
4
+ "description": "Custom Stylelint Rules for Crisp",
5
+ "author": "Crisp IM SAS",
6
+ "main": "index.js",
7
+ "homepage": "https://github.com/crisp-oss/stylelint-config-crisp",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git://github.com/crisp-oss/stylelint-config-crisp"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/crisp-oss/stylelint-config-crisp/issues"
14
+ },
15
+ "dependencies": {
16
+ "@stylistic/stylelint-config": "1.0.1",
17
+ "postcss-html": "1.5.0",
18
+ "stylelint-config-standard": "35.0.0",
19
+ "stylelint-config-standard-scss": "12.0.0",
20
+ "stylelint-selector-bem-pattern": "3.0.1"
21
+ },
22
+ "peerDependencies": {
23
+ "stylelint": "16.0.2"
24
+ },
25
+ "keywords": [
26
+ "stylelint",
27
+ "stylelint-config",
28
+ "rules",
29
+ "css"
30
+ ],
31
+ "license": "MIT"
32
+ }