@nitra/cursor 1.0.7 → 1.0.8

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.
Files changed (2) hide show
  1. package/mdc/stylelint.mdc +83 -0
  2. package/package.json +1 -1
@@ -0,0 +1,83 @@
1
+ ---
2
+ description: Правила стилів CSS та SCSS
3
+ alwaysApply: true
4
+ version: '1.0'
5
+ ---
6
+
7
+ в файлі .vscode/extensions.json є налаштування для офіційного плагіну:
8
+
9
+ ```json title=".vscode/extensions.json"
10
+ {
11
+ "recommendations": ["stylelint.vscode-stylelint"]
12
+ }
13
+ ```
14
+
15
+ в файлі .vscode/settings.json є налаштування для stylelint:
16
+
17
+ ```json title=".vscode/settings.json"
18
+ {
19
+ "css.validate": false,
20
+ "less.validate": false,
21
+ "scss.validate": false,
22
+ "editor.codeActionsOnSave": {
23
+ "source.fixAll": "explicit"
24
+ }
25
+ }
26
+ ```
27
+
28
+ в файлі package.json є налаштування для stylelint:
29
+ ```json title="package.json"
30
+ "scripts": {
31
+ "lint-style": "stylelint '**/*.{css,scss,vue}' --fix",
32
+ },
33
+ "devDependencies": {
34
+ "@nitra/stylelint-config": "^1.3.0"
35
+ },
36
+ "stylelint": {
37
+ "extends": "@nitra/stylelint-config"
38
+ },
39
+ ```
40
+ Є гітхаб actions .github/workflows/lint-style.yml:
41
+ ```yaml
42
+ name: StyleLint
43
+
44
+ on:
45
+ push:
46
+ branches:
47
+ - dev
48
+ paths:
49
+ - '**/*.css'
50
+ - '**/*.scss'
51
+ - '**/*.vue'
52
+
53
+ pull_request:
54
+ branches:
55
+ - dev
56
+ paths:
57
+ - '**/*.css'
58
+ - '**/*.scss'
59
+ - '**/*.vue'
60
+
61
+ concurrency:
62
+ group: ${{ github.ref }}-${{ github.workflow }}
63
+ cancel-in-progress: true
64
+
65
+ jobs:
66
+ eslint:
67
+ runs-on: ubuntu-latest
68
+ steps:
69
+ - uses: actions/checkout@v4
70
+
71
+ - name: StyleLint
72
+ run: |
73
+ node - <<'NODE'
74
+ const fs = require('fs')
75
+ const data = JSON.parse(fs.readFileSync('package.json', 'utf8'))
76
+ delete data.workspaces
77
+ data.devDependencies = {}
78
+ fs.writeFileSync('package.json', JSON.stringify(data, null, 2) + '\n')
79
+ NODE
80
+ npm install @nitra/stylelint-config
81
+ npx stylelint '**/*.{css,scss,vue}'
82
+ ```
83
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitra/cursor",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "CLI для завантаження cursor-правил Nitra у локальний репозиторій",
5
5
  "keywords": [
6
6
  "cli",