@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 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
@@ -8,4 +8,5 @@ if [[ -z "$BINDIR" ]]; then
8
8
  fi
9
9
 
10
10
  # Redirect to original eslint bin
11
+ chmod +x $BINDIR/bin/eslint.js
11
12
  $BINDIR/bin/eslint.js $@
package/bin/husky CHANGED
@@ -8,4 +8,5 @@ if [[ -z "$BINDIR" ]]; then
8
8
  fi
9
9
 
10
10
  # Redirect to original husky bin
11
+ chmod +x $BINDIR/bin.js
11
12
  $BINDIR/bin.js $@
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
@@ -8,4 +8,5 @@ if [[ -z "$BINDIR" ]]; then
8
8
  fi
9
9
 
10
10
  # Redirect to original lint-staged bin
11
+ chmod +x $BINDIR/bin/lint-staged.js
11
12
  $BINDIR/bin/lint-staged.js $@
package/bin/prettier CHANGED
@@ -8,4 +8,5 @@ if [[ -z "$BINDIR" ]]; then
8
8
  fi
9
9
 
10
10
  # Redirect to original prettier bin
11
+ chmod +x $BINDIR/bin/prettier.cjs
11
12
  $BINDIR/bin/prettier.cjs $@
package/bin/stylelint CHANGED
@@ -8,4 +8,5 @@ if [[ -z "$BINDIR" ]]; then
8
8
  fi
9
9
 
10
10
  # Redirect to original stylelint bin
11
+ chmod +x $BINDIR/bin/stylelint.mjs
11
12
  $BINDIR/bin/stylelint.mjs $@
package/bin/svgo CHANGED
@@ -8,4 +8,5 @@ if [[ -z "$BINDIR" ]]; then
8
8
  fi
9
9
 
10
10
  # Redirect to original svgo bin
11
+ chmod +x $BINDIR/bin/svgo
11
12
  $BINDIR/bin/svgo $@
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/lint",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Diplodoc platform internal utility set for linting",
5
5
  "bin": {
6
6
  "lint": "./bin/lint",
@@ -1,4 +1 @@
1
- #!/bin/sh
2
- . "$(dirname "$0")/_/husky.sh"
3
-
4
1
  npm run pre-commit
@@ -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');