arui-presets-lint 6.2.0 → 6.3.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 +7 -0
- package/README.md +8 -8
- package/package.json +3 -2
- package/release.config.js +2 -0
- package/CODEOWNERS +0 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Общая конфигурация линтеров
|
|
2
2
|
|
|
3
3
|
[![npm][npm-img]][npm]
|
|
4
4
|
[![license][license-img]][license]
|
|
@@ -20,8 +20,6 @@
|
|
|
20
20
|
|
|
21
21
|
Данный проект использует [semantic-release](https://semantic-release.gitbook.io/semantic-release/).
|
|
22
22
|
|
|
23
|
-
Релизы публикуются руками. Если вам нужно выпустить новую версию библиотеки - выполните следующие действия (а лучше прикрутите сюда нормальный ci):
|
|
24
|
-
|
|
25
23
|
```
|
|
26
24
|
yarn --immutable
|
|
27
25
|
yarn semantic-release --no-ci
|
|
@@ -68,9 +66,9 @@ yarn info arui-presets-lint peerDependencies
|
|
|
68
66
|
"scripts": {
|
|
69
67
|
"lint:css": "stylelint **/*.css",
|
|
70
68
|
"lint:scripts": "eslint \"**/*.{js,jsx,ts,tsx}\" --ext .js,.jsx,.ts,.tsx",
|
|
71
|
-
"lint": "yarn lint:css && yarn lint:scripts",
|
|
69
|
+
"lint": "yarn lint:css && yarn lint:scripts && prettier --check \"./**/*.{ts,tsx,js,jsx,css,json}\"",
|
|
72
70
|
"lint:fix": "yarn lint:scripts --fix && yarn lint:css --fix",
|
|
73
|
-
"format": "prettier --write \"./**/*.{ts,tsx,js,jsx,css,json
|
|
71
|
+
"format": "prettier --write \"./**/*.{ts,tsx,js,jsx,css,json}\""
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
74
|
```
|
|
@@ -80,6 +78,8 @@ yarn info arui-presets-lint peerDependencies
|
|
|
80
78
|
|
|
81
79
|
> ⚠️ Внимание, .eslintignore [по умолчанию не подтягиватся в lint-staged](https://github.com/okonet/lint-staged#how-can-i-ignore-files-from-eslintignore)!
|
|
82
80
|
|
|
81
|
+
Так же можно добавить к командам аргумент `--ignore-path` со значением `.gitignore`, в этом случае конфиг из дефолтных файлов (.eslintignore, .stylelintignore, .prettierignore) не будет применятся, но можно добавить специфичные правила в конфиг ([eslintConfig.ignorePatterns](https://eslint.org/docs/latest/use/configure/ignore#ignorepatterns-in-config-files), [stylelintConfig.ignoreFiles](https://stylelint.io/user-guide/configure#ignorefiles)).
|
|
82
|
+
|
|
83
83
|
Для запуска eslint/stylelint рекомендуется использовать флаг [--max-warnings](https://eslint.org/docs/latest/user-guide/command-line-interface#--max-warnings), который позволяет ограничить количество возникающих предупреждений.
|
|
84
84
|
|
|
85
85
|
## Конфигурация `husky` и `lint-staged`:
|
|
@@ -109,9 +109,9 @@ yarn info arui-presets-lint peerDependencies
|
|
|
109
109
|
"scripts": {
|
|
110
110
|
"lint:css": "stylelint **/*.css",
|
|
111
111
|
"lint:scripts": "eslint \"**/*.{js,jsx,ts,tsx}\" --ext .js,.jsx,.ts,.tsx",
|
|
112
|
-
"lint": "yarn lint:css && yarn lint:scripts",
|
|
112
|
+
"lint": "yarn lint:css && yarn lint:scripts && prettier --check \"./**/*.{ts,tsx,js,jsx,css,json}\"",
|
|
113
113
|
"lint:fix": "yarn lint:scripts --fix && yarn lint:css --fix",
|
|
114
|
-
"format": "prettier --write \"./**/*.{ts,tsx,js,jsx,css,json
|
|
114
|
+
"format": "prettier --write \"./**/*.{ts,tsx,js,jsx,css,json}\""
|
|
115
115
|
},
|
|
116
116
|
"husky": {
|
|
117
117
|
"hooks": {
|
|
@@ -144,7 +144,7 @@ yarn info arui-presets-lint peerDependencies
|
|
|
144
144
|
```
|
|
145
145
|
The MIT License (MIT)
|
|
146
146
|
|
|
147
|
-
Copyright (c)
|
|
147
|
+
Copyright (c) 2023 core-ds contributors
|
|
148
148
|
|
|
149
149
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
150
150
|
of this software and associated documentation files (the "Software"), to deal
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arui-presets-lint",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"description": "Config files for arui-apps",
|
|
5
|
-
"author": "
|
|
5
|
+
"author": "core-ds contributors",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@alfalab/stylelint-core-vars": "1.5.0",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"@semantic-release/changelog": "5.0.1",
|
|
40
40
|
"@semantic-release/commit-analyzer": "8.0.1",
|
|
41
41
|
"@semantic-release/git": "9.0.1",
|
|
42
|
+
"@semantic-release/github": "8.1.0",
|
|
42
43
|
"@semantic-release/npm": "7.1.3",
|
|
43
44
|
"@semantic-release/release-notes-generator": "9.0.3",
|
|
44
45
|
"@typescript-eslint/eslint-plugin": "5.30.6",
|
package/release.config.js
CHANGED
|
@@ -9,8 +9,10 @@ module.exports = {
|
|
|
9
9
|
},
|
|
10
10
|
],
|
|
11
11
|
'@semantic-release/changelog',
|
|
12
|
+
'@semantic-release/github',
|
|
12
13
|
'@semantic-release/npm',
|
|
13
14
|
'@semantic-release/git',
|
|
14
15
|
],
|
|
15
16
|
branches: ['master'],
|
|
17
|
+
repositoryUrl: 'https://github.com/core-ds/arui-presets-lint.git',
|
|
16
18
|
};
|
package/CODEOWNERS
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
* @alfa-laboratory/frontstandards
|