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.
- package/.linter-bundle.js +8 -8
- package/CHANGELOG.md +23 -1
- package/README.md +1 -1
- package/eslint/{index.js → index.cjs} +7 -7
- package/eslint/{overrides-javascript-lazy.js → overrides-javascript-lazy.cjs} +1 -1
- package/eslint/{overrides-javascript.js → overrides-javascript.cjs} +1 -0
- package/eslint/{overrides-react.js → overrides-react.cjs} +4 -4
- package/eslint/rules/no-unnecessary-typeof.js +12 -1
- package/eslint/rules/package.json +8 -0
- package/eslint/rules/restricted-filenames.js +4 -4
- package/eslint/rules/restricted-filenames.md +1 -1
- package/files/index.js +54 -24
- package/helper/{ensure-type.js → ensure-type.cjs} +2 -0
- package/helper/get-git-files.js +3 -7
- package/helper/get-outdated-dependencies.js +48 -0
- package/helper/{validate-package-overrides.js → get-outdated-overrides.js} +9 -10
- package/helper/get-stylelint-path.js +15 -12
- package/helper/is-npm-or-yarn.js +12 -12
- package/helper/linter-bundle-config.cjs +70 -0
- package/helper/linter-bundle-config.d.ts +46 -0
- package/helper/linter-bundle-config.js +36 -0
- package/helper/run-process.js +14 -10
- package/lint.js +33 -27
- package/package.json +8 -7
- package/stylelint/index.cjs +1007 -0
- package/stylelint/plugins/stylelint-high-performance-animation.js +4 -5
- package/stylelint/plugins/stylelint-selector-no-empty.js +2 -2
- package/stylelint/plugins/stylelint-selector-tag-no-without-class.js +6 -7
- package/stylelint/plugins/stylelint-stylistic.js +7 -6
- package/helper/config.js +0 -48
- package/helper/find-missing-overrides.js +0 -49
- package/stylelint/index.js +0 -1007
- package/types.d.ts +0 -43
- /package/eslint/{overrides-gatsby.js → overrides-gatsby.cjs} +0 -0
- /package/eslint/{overrides-jest.js → overrides-jest.cjs} +0 -0
- /package/eslint/{overrides-jsdoc.js → overrides-jsdoc.cjs} +0 -0
- /package/eslint/{overrides-storybook.js → overrides-storybook.cjs} +0 -0
- /package/eslint/{overrides-type-declarations.js → overrides-type-declarations.cjs} +0 -0
- /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
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|