@diplodoc/lint 1.4.0 → 1.4.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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.4.1](https://github.com/diplodoc-platform/lint/compare/v1.4.0...v1.4.1) (2025-12-26)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * remove invalid --no-warn-ignored flag from ESLint command ([1fc9a67](https://github.com/diplodoc-platform/lint/commit/1fc9a670056054dbedce90613f8c52111a1350ea))
9
+ * remove invalid --no-warn-ignored flag from ESLint commands ([644e271](https://github.com/diplodoc-platform/lint/commit/644e27123985ea2c078ffd4f632b9e4252f1a24c))
10
+
3
11
  ## [1.4.0](https://github.com/diplodoc-platform/lint/compare/v1.3.3...v1.4.0) (2025-12-26)
4
12
 
5
13
 
package/bin/lint CHANGED
@@ -40,12 +40,7 @@ fi
40
40
  if [[ -n $FIX ]]; then
41
41
  echo "Run linters in fix mode"
42
42
 
43
- # Filter files using .eslintignore before passing to ESLint
44
- if [[ -f .eslintignore ]]; then
45
- find . -type f \( -name '*.js' -o -name '*.mjs' -o -name '*.cjs' -o -name '*.jsx' -o -name '*.ts' -o -name '*.mts' -o -name '*.cts' -o -name '*.tsx' \) ! -path '*/node_modules/*' | grep -vwFf .eslintignore | xargs $BINDIR/eslint --fix --no-warn-ignored || exit 1
46
- else
47
- $BINDIR/eslint '**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}' --fix
48
- fi
43
+ $BINDIR/eslint '**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}' --fix
49
44
  $BINDIR/prettier --write '**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}'
50
45
  if [[ -n $(find . -type f -name '*.css' -name '*.scss' | grep -vwFf .stylelintignore) ]]; then
51
46
  $BINDIR/stylelint '**/*.{css,scss}' --fix
@@ -56,13 +51,7 @@ fi
56
51
 
57
52
  echo "Run linters"
58
53
 
59
- # Filter files using .eslintignore before passing to ESLint
60
- # This ensures ignorePatterns and .eslintignore are respected
61
- if [[ -f .eslintignore ]]; then
62
- find . -type f \( -name '*.js' -o -name '*.mjs' -o -name '*.cjs' -o -name '*.jsx' -o -name '*.ts' -o -name '*.mts' -o -name '*.cts' -o -name '*.tsx' \) ! -path '*/node_modules/*' | grep -vwFf .eslintignore | xargs $BINDIR/eslint --no-warn-ignored || exit 1
63
- else
64
- $BINDIR/eslint '**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}'
65
- fi
54
+ $BINDIR/eslint '**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}'
66
55
  $BINDIR/prettier --check '**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}'
67
56
  if [[ -n $(find . -type f -name '*.css' -name '*.scss' | grep -vwFf .stylelintignore) ]]; then
68
57
  $BINDIR/stylelint '**/*.{css,scss}'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/lint",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Diplodoc platform internal utility set for linting",
5
5
  "bin": {
6
6
  "lint": "./bin/lint",
@@ -18,7 +18,7 @@ module.exports = {
18
18
  if (filtered.length === 0) {
19
19
  return [];
20
20
  }
21
- return ['prettier --write', 'eslint --max-warnings=0 --fix --no-warn-ignored'];
21
+ return ['prettier --write', 'eslint --max-warnings=0 --fix'];
22
22
  },
23
23
  // Handle .lintstagedrc.js separately (only prettier, no eslint)
24
24
  '.lintstagedrc.js': ['prettier --write'],