arui-presets-lint 7.6.2 → 8.0.0-beta.1
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.
- package/README.md +5 -11
- package/V8_MIGRATION_GUIDE.md +5 -0
- package/package.json +25 -45
package/README.md
CHANGED
|
@@ -16,21 +16,15 @@
|
|
|
16
16
|
|
|
17
17
|
## Установка и обновление
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Установить библиотеку в проект нужно как dev dependency:
|
|
20
20
|
|
|
21
|
-
```
|
|
22
|
-
|
|
21
|
+
```bash
|
|
22
|
+
yarn add -D arui-presets-lint
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
> ⚠️ С версии 8.0.0 библиотеке более не требуется установка peer dependency [подробнее](./V8_MIGRATION_GUIDE.md)
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
yarn info arui-presets-lint peerDependencies
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
И добавьте их себе в проект как dev зависимости.
|
|
32
|
-
|
|
33
|
-
> ⚠️ Нужно производить процедуру установки peer dependencies при каждом обновлении библиотеки
|
|
27
|
+
Далее произвести следующие настройки:
|
|
34
28
|
|
|
35
29
|
## Конфигурация всех линтеров через `package.json`:
|
|
36
30
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Для обновления библиотеки с версии ниже чем 8.0.0, в проекте нужно выполнить команду:
|
|
2
|
+
|
|
3
|
+
```bash
|
|
4
|
+
yarn remove eslint eslint-config-airbnb eslint-config-airbnb-typescript eslint-config-prettier eslint-import-resolver-typescript eslint-plugin-cypress eslint-plugin-dirnames eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-simple-import-sort eslint-plugin-unicorn lint-staged prettier stylelint @typescript-eslint/parser @typescript-eslint/eslint-plugin kebab-case
|
|
5
|
+
```
|
package/package.json
CHANGED
|
@@ -1,68 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arui-presets-lint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-beta.1",
|
|
4
4
|
"description": "Config files for arui-apps",
|
|
5
5
|
"author": "core-ds contributors",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@alfalab/stylelint-core-vars": "1.6.0",
|
|
9
9
|
"@commitlint/cli": "18.4.4",
|
|
10
|
-
"@commitlint/config-conventional": "18.4.4"
|
|
10
|
+
"@commitlint/config-conventional": "18.4.4",
|
|
11
|
+
"@typescript-eslint/eslint-plugin": "7.18.0",
|
|
12
|
+
"@typescript-eslint/parser": "7.18.0",
|
|
13
|
+
"eslint": "8.57.0",
|
|
14
|
+
"eslint-config-airbnb": "19.0.4",
|
|
15
|
+
"eslint-config-airbnb-typescript": "18.0.0",
|
|
16
|
+
"eslint-config-prettier": "9.1.0",
|
|
17
|
+
"eslint-import-resolver-typescript": "3.6.3",
|
|
18
|
+
"eslint-plugin-cypress": "3.5.0",
|
|
19
|
+
"eslint-plugin-dirnames": "1.0.3",
|
|
20
|
+
"eslint-plugin-import": "2.30.0",
|
|
21
|
+
"eslint-plugin-jsx-a11y": "6.10.0",
|
|
22
|
+
"eslint-plugin-react": "7.36.1",
|
|
23
|
+
"eslint-plugin-react-hooks": "4.6.2",
|
|
24
|
+
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
25
|
+
"eslint-plugin-unicorn": "55.0.0",
|
|
26
|
+
"kebab-case": "1.0.0",
|
|
27
|
+
"lint-staged": "15.2.10",
|
|
28
|
+
"prettier": "3.3.3",
|
|
29
|
+
"stylelint": "16.9.0"
|
|
11
30
|
},
|
|
12
31
|
"engines": {
|
|
13
32
|
"node": ">=18.12.0"
|
|
14
33
|
},
|
|
15
|
-
"peerDependencies": {
|
|
16
|
-
"@typescript-eslint/eslint-plugin": ">=6.21.0",
|
|
17
|
-
"@typescript-eslint/parser": ">=6.21.0",
|
|
18
|
-
"eslint": "^8.57.0",
|
|
19
|
-
"eslint-config-airbnb": "^19.0.4",
|
|
20
|
-
"eslint-config-airbnb-typescript": ">=17.1.0",
|
|
21
|
-
"eslint-config-prettier": "^9.1.0",
|
|
22
|
-
"eslint-import-resolver-typescript": "^3.6.1",
|
|
23
|
-
"eslint-plugin-cypress": "^2.15.1",
|
|
24
|
-
"eslint-plugin-dirnames": "^1.0.3",
|
|
25
|
-
"eslint-plugin-import": "^2.29.1",
|
|
26
|
-
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
27
|
-
"eslint-plugin-react": "^7.34.1",
|
|
28
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
29
|
-
"eslint-plugin-simple-import-sort": "^12.0.0",
|
|
30
|
-
"eslint-plugin-unicorn": "^51.0.1",
|
|
31
|
-
"lint-staged": "^15.2.2",
|
|
32
|
-
"prettier": "^3.2.5",
|
|
33
|
-
"stylelint": "^16.3.1"
|
|
34
|
-
},
|
|
35
34
|
"devDependencies": {
|
|
36
|
-
"@alfalab/core-components": "
|
|
35
|
+
"@alfalab/core-components": "47.20.0",
|
|
37
36
|
"@semantic-release/changelog": "6.0.3",
|
|
38
37
|
"@semantic-release/commit-analyzer": "11.1.0",
|
|
39
38
|
"@semantic-release/git": "10.0.1",
|
|
40
39
|
"@semantic-release/github": "9.2.6",
|
|
41
40
|
"@semantic-release/npm": "11.0.2",
|
|
42
41
|
"@semantic-release/release-notes-generator": "12.1.0",
|
|
43
|
-
"
|
|
44
|
-
"@typescript-eslint/parser": "7.4.0",
|
|
45
|
-
"eslint": "8.57.0",
|
|
46
|
-
"eslint-config-airbnb": "19.0.4",
|
|
47
|
-
"eslint-config-airbnb-typescript": "18.0.0",
|
|
48
|
-
"eslint-config-prettier": "9.1.0",
|
|
49
|
-
"eslint-import-resolver-typescript": "3.6.1",
|
|
50
|
-
"eslint-plugin-cypress": "2.15.1",
|
|
51
|
-
"eslint-plugin-dirnames": "1.0.3",
|
|
52
|
-
"eslint-plugin-import": "2.29.1",
|
|
53
|
-
"eslint-plugin-jsx-a11y": "6.8.0",
|
|
54
|
-
"eslint-plugin-react": "7.34.1",
|
|
55
|
-
"eslint-plugin-react-hooks": "4.6.0",
|
|
56
|
-
"eslint-plugin-simple-import-sort": "12.0.0",
|
|
57
|
-
"eslint-plugin-unicorn": "51.0.1",
|
|
58
|
-
"kebab-case": "1.0.0",
|
|
59
|
-
"lint-staged": "15.2.2",
|
|
60
|
-
"prettier": "3.2.5",
|
|
61
|
-
"react": "17.0.2",
|
|
42
|
+
"react": "18.3.1",
|
|
62
43
|
"semantic-release": "22.0.12",
|
|
63
44
|
"simple-git-hooks": "2.11.1",
|
|
64
|
-
"
|
|
65
|
-
"typescript": "5.4.4"
|
|
45
|
+
"typescript": "5.5.4"
|
|
66
46
|
},
|
|
67
47
|
"scripts": {
|
|
68
48
|
"precommit": "lint-staged",
|
|
@@ -105,5 +85,5 @@
|
|
|
105
85
|
"commitlint": {
|
|
106
86
|
"extends": "./commitlint"
|
|
107
87
|
},
|
|
108
|
-
"packageManager": "yarn@4.
|
|
88
|
+
"packageManager": "yarn@4.5.0"
|
|
109
89
|
}
|