arui-presets-lint 10.3.0 → 10.4.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/CHANGELOG.md +16 -5
- package/cli/index.mjs +2 -2
- package/package.json +3 -2
- package/prettier/index.d.ts +2 -0
- package/prettier/index.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
## 10.4.0
|
|
2
|
+
|
|
3
|
+
### Minor Changes
|
|
4
|
+
|
|
5
|
+
- [#150](https://github.com/core-ds/arui-presets-lint/pull/150) [`b48a542`](https://github.com/core-ds/arui-presets-lint/commit/b48a542e8879422b5c8676e2469e38f2fc495ab9) Thanks [@kiskv](https://github.com/kiskv)! - - Prettier ускорен через включение экспериментального cli на Rust
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @alfalab/stylelint-core-vars@3.0.0
|
|
11
|
+
|
|
1
12
|
## 10.3.0
|
|
2
13
|
|
|
3
14
|
### Minor Changes
|
|
@@ -16,14 +27,14 @@
|
|
|
16
27
|
|
|
17
28
|
- [#136](https://github.com/core-ds/arui-presets-lint/pull/136) [`3612e03`](https://github.com/core-ds/arui-presets-lint/commit/3612e0386142053b43a800d8e7f9cf7e7b41205e) Thanks [@kiskv](https://github.com/kiskv)! - ## New Features
|
|
18
29
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
30
|
+
- Подключены плагины [`@eslint/json`](https://github.com/eslint/json) и [`@eslint/markdown`](https://github.com/eslint/markdown).
|
|
31
|
+
- `.json` файлы проверяются как строгий JSON, `.jsonc` и `tsconfig*.json` - как JSONC, `.json5` — как JSON5. Правила: `json/no-duplicate-keys`, `json/no-empty-keys`, `json/no-unnormalized-keys`, `json/no-unsafe-values` (как error).
|
|
32
|
+
- `.md` файлы проверяются по CommonMark (как warning). Подключены все рекомендованные правила `@eslint/markdown` (контроль уровней заголовков, отсутствие пустых ссылок/изображений, alt-текст и т.д.). `**/CHANGELOG.md` игнорируется по умолчанию.
|
|
33
|
+
- Добавлены константы для удобного прописывания области видимости правил на уровне проекта
|
|
23
34
|
|
|
24
35
|
## Bug fixes
|
|
25
36
|
|
|
26
|
-
|
|
37
|
+
- Исправлены скоупы files, все плагины определены глобально, для того чтобы корректно срабатывало переопределение.
|
|
27
38
|
|
|
28
39
|
### Patch Changes
|
|
29
40
|
|
package/cli/index.mjs
CHANGED
|
@@ -8,8 +8,8 @@ const cacheFolder = './node_modules/.cache';
|
|
|
8
8
|
const commandsMap = {
|
|
9
9
|
styles: `stylelint "**/*.css" --allow-empty-input --ignore-path .gitignore --ignore-path .stylelintignore --cache --cache-location="${cacheFolder}/stylelint/.stylelintcache"`,
|
|
10
10
|
scripts: 'eslint .',
|
|
11
|
-
format: `prettier --write ${prettierParams}
|
|
12
|
-
'format:check': `prettier --check ${prettierParams}`,
|
|
11
|
+
format: `prettier --experimental-cli --write ${prettierParams}`,
|
|
12
|
+
'format:check': `prettier --experimental-cli --check ${prettierParams}`,
|
|
13
13
|
};
|
|
14
14
|
const commands = Object.keys(commandsMap);
|
|
15
15
|
const enableEcho = process.argv[2] === '--echo';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arui-presets-lint",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.4.0",
|
|
4
4
|
"description": "Config files for arui-apps",
|
|
5
5
|
"author": "core-ds contributors",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"@eslint/js": "9.39.4",
|
|
18
18
|
"@eslint/json": "2.0.0",
|
|
19
19
|
"@eslint/markdown": "8.0.2",
|
|
20
|
+
"@prettier/plugin-oxc": "0.1.4",
|
|
20
21
|
"@types/eslint-plugin-jsx-a11y": "6.10.1",
|
|
21
22
|
"@typescript-eslint/utils": "8.61.1",
|
|
22
23
|
"eslint": "9.39.4",
|
|
@@ -95,5 +96,5 @@
|
|
|
95
96
|
"stylelint": {
|
|
96
97
|
"extends": "./stylelint/index.ts"
|
|
97
98
|
},
|
|
98
|
-
"prettier": "./prettier/index.
|
|
99
|
+
"prettier": "./prettier/index.js"
|
|
99
100
|
}
|
package/prettier/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
plugins: string[];
|
|
2
3
|
printWidth: number;
|
|
3
4
|
singleQuote: true;
|
|
4
5
|
jsxSingleQuote: true;
|
|
@@ -7,3 +8,4 @@ declare const _default: {
|
|
|
7
8
|
endOfLine: "auto";
|
|
8
9
|
};
|
|
9
10
|
export default _default;
|
|
11
|
+
export type PrettierConfig = import("prettier").Config;
|
package/prettier/index.js
CHANGED