@diplodoc/lint 1.0.1 → 1.0.2
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 +10 -0
- package/bin/eslint +1 -0
- package/bin/husky +1 -0
- package/bin/lint +7 -11
- package/bin/lint-staged +1 -0
- package/bin/prettier +1 -0
- package/bin/stylelint +1 -0
- package/bin/svgo +1 -0
- package/package.json +1 -1
- package/scaffolding/.husky/pre-commit +0 -3
- package/scripts/modify-ignore.js +0 -7
- package/scripts/modify-package.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.2](https://github.com/diplodoc-platform/lint/compare/v1.0.1...v1.0.2) (2024-08-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* Change init staps sequence ([7f8aaa5](https://github.com/diplodoc-platform/lint/commit/7f8aaa54f758dbfe58adbbda6ec0a9e5cb556baa))
|
|
9
|
+
* Do not rewrite husky npm script ([f0b1b85](https://github.com/diplodoc-platform/lint/commit/f0b1b85e2ba86cafc85d91f844ebb09c081c8ed2))
|
|
10
|
+
* Make internal bins force executable ([d69f85e](https://github.com/diplodoc-platform/lint/commit/d69f85e1e60e0cd6fb9f7c3b0648785191eb065d))
|
|
11
|
+
* Unignore rc configs ([cf201c6](https://github.com/diplodoc-platform/lint/commit/cf201c694ee4de91d6c7a98326ec07ee52254fb8))
|
|
12
|
+
|
|
3
13
|
## [1.0.1](https://github.com/diplodoc-platform/lint/compare/v1.0.0...v1.0.1) (2024-08-11)
|
|
4
14
|
|
|
5
15
|
|
package/bin/eslint
CHANGED
package/bin/husky
CHANGED
package/bin/lint
CHANGED
|
@@ -21,23 +21,19 @@ while (( $# )); do
|
|
|
21
21
|
done
|
|
22
22
|
|
|
23
23
|
if [[ -n "$INIT$UPDATE" ]]; then
|
|
24
|
+
if [[ -n $INIT ]]; then
|
|
25
|
+
echo "[@diplodoc/lint] Extend package.json configuration"
|
|
26
|
+
node "$SRCDIR/scripts/modify-package.js"
|
|
27
|
+
|
|
28
|
+
$BINDIR/husky init
|
|
29
|
+
fi
|
|
30
|
+
|
|
24
31
|
echo "[@diplodoc/lint] Add initial lint configs"
|
|
25
32
|
cp -a "$SRCDIR/scaffolding/." .
|
|
26
33
|
|
|
27
34
|
echo "[@diplodoc/lint] Extend .ignore configuration"
|
|
28
35
|
node "$SRCDIR/scripts/modify-ignore.js"
|
|
29
36
|
|
|
30
|
-
if [[ -z $INIT ]]; then
|
|
31
|
-
exit 0
|
|
32
|
-
fi
|
|
33
|
-
fi
|
|
34
|
-
|
|
35
|
-
if [[ -n $INIT ]]; then
|
|
36
|
-
echo "[@diplodoc/lint] Extend package.json configuration"
|
|
37
|
-
node "$SRCDIR/scripts/modify-package.js"
|
|
38
|
-
|
|
39
|
-
$BINDIR/husky init
|
|
40
|
-
|
|
41
37
|
exit 0
|
|
42
38
|
fi
|
|
43
39
|
|
package/bin/lint-staged
CHANGED
package/bin/prettier
CHANGED
package/bin/stylelint
CHANGED
package/bin/svgo
CHANGED
package/package.json
CHANGED
package/scripts/modify-ignore.js
CHANGED
|
@@ -24,13 +24,6 @@ const ignores = {
|
|
|
24
24
|
...SYSTEM,
|
|
25
25
|
...INSTALL,
|
|
26
26
|
...ARTIFACTS,
|
|
27
|
-
'/.eslintrc.js',
|
|
28
|
-
'/.prettierrc.js',
|
|
29
|
-
'/.stylelintrc.js',
|
|
30
|
-
'/.lintstagedrc.js',
|
|
31
|
-
// '/.eslinignore',
|
|
32
|
-
// '/.prettierignore',
|
|
33
|
-
// '/.stylelintignore',
|
|
34
27
|
],
|
|
35
28
|
'.eslintignore': [
|
|
36
29
|
...SYSTEM,
|
|
@@ -24,6 +24,5 @@ function configure(command, impl, strict = true) {
|
|
|
24
24
|
configure('lint', 'lint update && lint');
|
|
25
25
|
configure('lint:fix', 'lint update && lint fix');
|
|
26
26
|
configure('pre-commit', 'lint update && lint-staged');
|
|
27
|
-
configure('prepare', 'husky install || true', false);
|
|
28
27
|
|
|
29
28
|
writeFileSync(filename, JSON.stringify(pkg, null, 2), 'utf8');
|