linter-bundle 4.0.2 → 5.0.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.
Files changed (39) hide show
  1. package/.linter-bundle.js +8 -8
  2. package/CHANGELOG.md +23 -1
  3. package/README.md +1 -1
  4. package/eslint/{index.js → index.cjs} +7 -7
  5. package/eslint/{overrides-javascript-lazy.js → overrides-javascript-lazy.cjs} +1 -1
  6. package/eslint/{overrides-javascript.js → overrides-javascript.cjs} +1 -0
  7. package/eslint/{overrides-react.js → overrides-react.cjs} +4 -4
  8. package/eslint/rules/no-unnecessary-typeof.js +12 -1
  9. package/eslint/rules/package.json +8 -0
  10. package/eslint/rules/restricted-filenames.js +4 -4
  11. package/eslint/rules/restricted-filenames.md +1 -1
  12. package/files/index.js +54 -24
  13. package/helper/{ensure-type.js → ensure-type.cjs} +2 -0
  14. package/helper/get-git-files.js +3 -7
  15. package/helper/get-outdated-dependencies.js +48 -0
  16. package/helper/{validate-package-overrides.js → get-outdated-overrides.js} +9 -10
  17. package/helper/get-stylelint-path.js +15 -12
  18. package/helper/is-npm-or-yarn.js +12 -12
  19. package/helper/linter-bundle-config.cjs +70 -0
  20. package/helper/linter-bundle-config.d.ts +46 -0
  21. package/helper/linter-bundle-config.js +36 -0
  22. package/helper/run-process.js +14 -10
  23. package/lint.js +33 -27
  24. package/package.json +8 -7
  25. package/stylelint/index.cjs +1007 -0
  26. package/stylelint/plugins/stylelint-high-performance-animation.js +4 -5
  27. package/stylelint/plugins/stylelint-selector-no-empty.js +2 -2
  28. package/stylelint/plugins/stylelint-selector-tag-no-without-class.js +6 -7
  29. package/stylelint/plugins/stylelint-stylistic.js +7 -6
  30. package/helper/config.js +0 -48
  31. package/helper/find-missing-overrides.js +0 -49
  32. package/stylelint/index.js +0 -1007
  33. package/types.d.ts +0 -43
  34. /package/eslint/{overrides-gatsby.js → overrides-gatsby.cjs} +0 -0
  35. /package/eslint/{overrides-jest.js → overrides-jest.cjs} +0 -0
  36. /package/eslint/{overrides-jsdoc.js → overrides-jsdoc.cjs} +0 -0
  37. /package/eslint/{overrides-storybook.js → overrides-storybook.cjs} +0 -0
  38. /package/eslint/{overrides-type-declarations.js → overrides-type-declarations.cjs} +0 -0
  39. /package/eslint/{overrides-worker.js → overrides-worker.cjs} +0 -0
package/types.d.ts DELETED
@@ -1,43 +0,0 @@
1
- /**
2
- *
3
- * As of TypeScript 4.3.5, assigning a property to `globalThis` is less intuitive.
4
- *
5
- * There are two ways, which all require to disable TSC-error reporting and a couple of linter warning.
6
- *
7
- * If the way below doesn't work anymore, this is an alternative:
8
- * export declare global {
9
- *
10
- * @see https://stackoverflow.com/a/68452689/4449804
11
- */
12
-
13
- /* eslint-disable @typescript-eslint/naming-convention -- We have to follow the naming conventions of the Linter rules here. */
14
-
15
- // @ts-expect-error -- False-positive
16
- declare namespace globalThis {
17
- // eslint-disable-next-line no-inner-declarations, vars-on-top, no-var -- False-positives
18
- var linterBundleSettings: {
19
- readonly overrides?: {
20
- readonly general?: {
21
- readonly 'no-restricted-globals'?: {
22
- readonly additionalRestrictions?: string[];
23
- };
24
- readonly 'no-restricted-properties'?: {
25
- readonly additionalRestrictions?: string[];
26
- };
27
- readonly 'no-restricted-syntax'?: {
28
- readonly additionalRestrictions?: string[];
29
- };
30
- readonly 'import/order'?: {
31
- readonly additionalExternalPatterns?: string[];
32
- };
33
- };
34
- readonly react?: {
35
- readonly 'react/forbid-component-props'?: {
36
- readonly allowClassNameFor?: string[];
37
- readonly allowStyleFor?: string[];
38
- };
39
- };
40
- };
41
- readonly patternPrefix?: string;
42
- } | undefined;
43
- }