@diplodoc/lint 1.0.3 → 1.1.1

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,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.1.1](https://github.com/diplodoc-platform/lint/compare/v1.1.0...v1.1.1) (2024-08-12)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * Fix bin resolution for metapackage structure ([ab75994](https://github.com/diplodoc-platform/lint/commit/ab759946f7aad0cba84458bcbf3404e09c239dec))
9
+
10
+ ## [1.1.0](https://github.com/diplodoc-platform/lint/compare/v1.0.3...v1.1.0) (2024-08-11)
11
+
12
+
13
+ ### Features
14
+
15
+ * Handle svgx extension ([56b3242](https://github.com/diplodoc-platform/lint/commit/56b3242d8fb93f2265dd2c63e8e993b21dd81cab))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * Fix prettier errors ([cc2ce97](https://github.com/diplodoc-platform/lint/commit/cc2ce97f2c94fed02849f99f5f2d8b13b7655e76))
21
+
3
22
  ## [1.0.3](https://github.com/diplodoc-platform/lint/compare/v1.0.2...v1.0.3) (2024-08-11)
4
23
 
5
24
 
package/bin/eslint CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- BINDIR=$(dirname $(node -pe "require.resolve('eslint/package.json')"))
3
+ SRCDIR=$(dirname $(dirname $(node -pe "require('fs').realpathSync('${0//\\//}')")))
4
+ BINDIR=$(dirname $(cd "$SRCDIR"; node -pe "require.resolve('eslint/package.json')"))
4
5
 
5
6
  if [[ -z "$BINDIR" ]]; then
6
7
  echo "Required package 'eslint' not found"
package/bin/husky CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- BINDIR=$(dirname $(node -pe "require.resolve('husky')"))
3
+ SRCDIR=$(dirname $(dirname $(node -pe "require('fs').realpathSync('${0//\\//}')")))
4
+ BINDIR=$(dirname $(cd "$SRCDIR"; node -pe "require.resolve('husky')"))
4
5
 
5
6
  if [[ -z "$BINDIR" ]]; then
6
7
  echo "Required package 'husky' not found"
package/bin/lint-staged CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- BINDIR=$(dirname $(node -pe "require.resolve('lint-staged/package.json')"))
3
+ SRCDIR=$(dirname $(dirname $(node -pe "require('fs').realpathSync('${0//\\//}')")))
4
+ BINDIR=$(dirname $(cd "$SRCDIR"; node -pe "require.resolve('lint-staged/package.json')"))
4
5
 
5
6
  if [[ -z "$BINDIR" ]]; then
6
7
  echo "Required package 'lint-staged' not found"
package/bin/prettier CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- BINDIR=$(dirname $(node -pe "require.resolve('prettier')"))
3
+ SRCDIR=$(dirname $(dirname $(node -pe "require('fs').realpathSync('${0//\\//}')")))
4
+ BINDIR=$(dirname $(cd "$SRCDIR"; node -pe "require.resolve('prettier')"))
4
5
 
5
6
  if [[ -z "$BINDIR" ]]; then
6
7
  echo "Required package 'prettier' not found"
package/bin/stylelint CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- BINDIR=$(dirname $(node -pe "require.resolve('stylelint/package.json')"))
3
+ SRCDIR=$(dirname $(dirname $(node -pe "require('fs').realpathSync('${0//\\//}')")))
4
+ BINDIR=$(dirname $(cd "$SRCDIR"; node -pe "require.resolve('stylelint/package.json')"))
4
5
 
5
6
  if [[ -z "$BINDIR" ]]; then
6
7
  echo "Required package 'stylelint' not found"
package/bin/svgo CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
- BINDIR=$(dirname $(node -pe "require.resolve('svgo/package.json')"))
3
+ SRCDIR=$(dirname $(dirname $(node -pe "require('fs').realpathSync('${0//\\//}')")))
4
+ BINDIR=$(dirname $(cd "$SRCDIR"; node -pe "require.resolve('svgo/package.json')"))
4
5
 
5
6
  if [[ -z "$BINDIR" ]]; then
6
7
  echo "Required package 'svgo' not found"
@@ -20,6 +20,7 @@ module.exports = {
20
20
  'consistent-return': 'off',
21
21
  'no-implicit-globals': 'off',
22
22
  'no-param-reassign': 'off',
23
+ 'no-shadow': 'off',
23
24
  '@typescript-eslint/no-shadow': 'off',
24
25
  'import/no-extraneous-dependencies': 'error',
25
26
  'import/order': [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/lint",
3
- "version": "1.0.3",
3
+ "version": "1.1.1",
4
4
  "description": "Diplodoc platform internal utility set for linting",
5
5
  "bin": {
6
6
  "lint": "./bin/lint",
@@ -2,5 +2,5 @@ module.exports = {
2
2
  '**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}': ['prettier --write', 'eslint --max-warnings=0 --fix'],
3
3
  '**/*.{css,scss}': ['prettier --write', 'stylelint --fix'],
4
4
  '**/*.{json,yaml,yml,md}': ['prettier --write'],
5
- '**/*.{svg}': ['svgo'],
5
+ '**/*.{svg,svgx}': ['svgo'],
6
6
  };
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- extends: require.resolve('@diplodoc/lint/stylelint-config')
3
- };
2
+ extends: require.resolve('@diplodoc/lint/stylelint-config'),
3
+ };