arui-presets-lint 8.0.1 → 8.1.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.
- package/V8_MIGRATION_GUIDE.md +6 -1
- package/cli/index.mjs +1 -1
- package/package.json +10 -10
- package/prettier/index.js +1 -0
package/V8_MIGRATION_GUIDE.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
1. Для начала нужно выполнить команду:
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
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 stylelint-config-prettier husky kebab-case
|
|
13
|
+
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 stylelint-config-prettier husky kebab-case @commitlint/cli @commitlint/config-conventional
|
|
14
14
|
```
|
|
15
15
|
-- отмечу, что никаких зависимостей с плагинами stylelint/eslint в проекте быть не должно, кроме тех, которые использует ваш локальный конфиг
|
|
16
16
|
|
|
@@ -76,3 +76,8 @@ npx --no-install lefthook install
|
|
|
76
76
|
|
|
77
77
|
> A: Это плавающая проблема с установкой библиотеки prettier, которая решается командой: `chmod +x ./node_modules/.bin/prettier`
|
|
78
78
|
Происходит такое только на системах macOS [issue](https://github.com/prettier/prettier/issues/15164)
|
|
79
|
+
|
|
80
|
+
> Q: Отображается warning при изменении файла, который не должен проверятся eslint:
|
|
81
|
+
`0:0 warning File ignored because of a matching ignore pattern. Use "--no-ignore" to disable file ignore settings or use "--no-warn-ignored" to suppress this warning.`
|
|
82
|
+
|
|
83
|
+
> A: Это ожидаемое поведение, eslint не будет пытаться изменить файл. Warning будет отключен в рамках [issue](https://github.com/core-ds/arui-presets-lint/issues/28), следите за обновлениями
|
package/cli/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ const cacheFolder = './node_modules/.cache';
|
|
|
9
9
|
const commandsMap = {
|
|
10
10
|
styles: `stylelint "**/*.css" --allow-empty-input --ignore-path .gitignore --ignore-path .stylelintignore --cache --cache-location="${cacheFolder}/stylelint/.stylelintcache"`,
|
|
11
11
|
scripts: `eslint "**/*.{js,jsx,ts,tsx,mjs,mts,cjs,cts}" --ext .js,.jsx,.ts,.tsx,.mjs,.mts,.cjs,.cts --ignore-pattern=.gitignore,.eslintignore --cache --cache-location="${cacheFolder}/eslint/.eslintcache"`,
|
|
12
|
-
format: `prettier --write ${prettierParams}`,
|
|
12
|
+
format: `prettier --write ${prettierParams} --list-different`,
|
|
13
13
|
'format:check': `prettier --check ${prettierParams}`,
|
|
14
14
|
};
|
|
15
15
|
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arui-presets-lint",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "Config files for arui-apps",
|
|
5
5
|
"author": "core-ds contributors",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": "./cli/index.mjs",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@alfalab/stylelint-core-vars": "1.
|
|
9
|
+
"@alfalab/stylelint-core-vars": "1.7.0",
|
|
10
10
|
"@commitlint/cli": "18.4.4",
|
|
11
11
|
"@commitlint/config-conventional": "18.4.4",
|
|
12
12
|
"@typescript-eslint/eslint-plugin": "7.18.0",
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
"eslint-config-airbnb-typescript": "18.0.0",
|
|
17
17
|
"eslint-config-prettier": "9.1.0",
|
|
18
18
|
"eslint-import-resolver-typescript": "3.6.3",
|
|
19
|
-
"eslint-plugin-cypress": "3.
|
|
19
|
+
"eslint-plugin-cypress": "3.6.0",
|
|
20
20
|
"eslint-plugin-dirnames": "1.0.3",
|
|
21
|
-
"eslint-plugin-import": "2.
|
|
22
|
-
"eslint-plugin-jsx-a11y": "6.10.
|
|
23
|
-
"eslint-plugin-react": "7.
|
|
21
|
+
"eslint-plugin-import": "2.31.0",
|
|
22
|
+
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
23
|
+
"eslint-plugin-react": "7.37.2",
|
|
24
24
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
25
25
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
26
|
-
"eslint-plugin-unicorn": "
|
|
27
|
-
"execa": "9.
|
|
26
|
+
"eslint-plugin-unicorn": "56.0.0",
|
|
27
|
+
"execa": "9.5.1",
|
|
28
28
|
"kebab-case": "1.0.0",
|
|
29
|
-
"lefthook": "1.8.
|
|
29
|
+
"lefthook": "1.8.2",
|
|
30
30
|
"prettier": "3.3.3",
|
|
31
31
|
"stylelint": "16.10.0"
|
|
32
32
|
},
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"node": ">=18.12.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@alfalab/core-components": "47.
|
|
37
|
+
"@alfalab/core-components": "47.25.0",
|
|
38
38
|
"@semantic-release/changelog": "6.0.3",
|
|
39
39
|
"@semantic-release/commit-analyzer": "11.1.0",
|
|
40
40
|
"@semantic-release/git": "10.0.1",
|