@averay/codeformat 0.2.20 → 0.2.22
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/dist/lib/convertWarnsToErrors.d.ts +3 -1
- package/dist/lib/convertWarnsToErrors.js.map +1 -1
- package/dist/rulesets/eslint/ruleset-jsx.d.ts +1 -61
- package/dist/rulesets/eslint/ruleset-jsx.js +1 -11
- package/dist/rulesets/eslint/ruleset-jsx.js.map +1 -1
- package/dist/src/makePrettierConfig.js +6 -3
- package/dist/src/makePrettierConfig.js.map +1 -1
- package/dist/src/php/PhpCsFixerConfig.php +10 -0
- package/package.json +18 -14
- package/.editorconfig +0 -15
- package/tsconfig.base.json +0 -28
- package/tsconfig.json +0 -11
- package/types.d.ts +0 -109
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
type WarnValue = 'warn' | 1;
|
|
2
|
+
type ConvertedValue<T> = T extends WarnValue ? 'error' : T extends readonly [WarnValue, ...infer TRest] ? ['error', ...TRest] : T;
|
|
1
3
|
type Converted<T> = {
|
|
2
|
-
[key in keyof T]: T[key]
|
|
4
|
+
[key in keyof T]: ConvertedValue<T[key]>;
|
|
3
5
|
};
|
|
4
6
|
/**
|
|
5
7
|
* Replaces any `warn` values in the provided object with `error` (including those within arrays with configs), preserving all other values.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertWarnsToErrors.js","sourceRoot":"","sources":["../../lib/convertWarnsToErrors.ts"],"names":[],"mappings":"AAUA,MAAM,SAAS,GAAG,CAAC,KAAc,
|
|
1
|
+
{"version":3,"file":"convertWarnsToErrors.js","sourceRoot":"","sources":["../../lib/convertWarnsToErrors.ts"],"names":[],"mappings":"AAUA,MAAM,SAAS,GAAG,CAAC,KAAc,EAAsB,EAAE,CAAC,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,CAAC,CAAC;AAE1F;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAoC,OAAU;IACxF,MAAM,gBAAgB,GAAG,EAAkB,CAAC;IAC5C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAgB,EAAE,CAAC;QAClE,IAAI,cAAc,CAAC;QACnB,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,cAAc,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;YAC5B,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;QACjF,CAAC;aAAM,CAAC;YACN,cAAc,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;QACtD,CAAC;QACD,gBAAgB,CAAC,GAAG,CAAC,GAAG,cAA0C,CAAC;IACrE,CAAC;IACD,OAAO,gBAAgB,CAAC;AAC1B,CAAC"}
|
|
@@ -1,65 +1,4 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
readonly '@typescript-eslint/naming-convention': ["error", ...({
|
|
3
|
-
readonly selector: "default";
|
|
4
|
-
readonly format: readonly ["strictCamelCase"];
|
|
5
|
-
} | {
|
|
6
|
-
readonly selector: "import";
|
|
7
|
-
readonly format: null;
|
|
8
|
-
} | {
|
|
9
|
-
readonly selector: "variable";
|
|
10
|
-
readonly modifiers: readonly ["const"];
|
|
11
|
-
readonly format: readonly ["strictCamelCase", "StrictPascalCase", "UPPER_CASE"];
|
|
12
|
-
} | {
|
|
13
|
-
readonly selector: "variable";
|
|
14
|
-
readonly modifiers: readonly ["const"];
|
|
15
|
-
readonly filter: {
|
|
16
|
-
readonly regex: string;
|
|
17
|
-
readonly match: true;
|
|
18
|
-
};
|
|
19
|
-
readonly format: readonly ["strictCamelCase"];
|
|
20
|
-
readonly leadingUnderscore: "allow";
|
|
21
|
-
} | {
|
|
22
|
-
readonly selector: "property";
|
|
23
|
-
readonly format: readonly ["strictCamelCase", "UPPER_CASE"];
|
|
24
|
-
} | {
|
|
25
|
-
readonly selector: "classProperty";
|
|
26
|
-
readonly modifiers: readonly ["static"];
|
|
27
|
-
readonly format: readonly ["strictCamelCase", "StrictPascalCase", "UPPER_CASE"];
|
|
28
|
-
} | {
|
|
29
|
-
readonly selector: "enumMember";
|
|
30
|
-
readonly format: readonly ["strictCamelCase", "StrictPascalCase", "UPPER_CASE"];
|
|
31
|
-
} | {
|
|
32
|
-
readonly selector: "function";
|
|
33
|
-
readonly format: readonly ["strictCamelCase", "StrictPascalCase"];
|
|
34
|
-
} | {
|
|
35
|
-
readonly selector: "typeLike";
|
|
36
|
-
readonly format: readonly ["StrictPascalCase"];
|
|
37
|
-
} | {
|
|
38
|
-
readonly selector: readonly ["objectLiteralProperty"];
|
|
39
|
-
readonly format: null;
|
|
40
|
-
} | {
|
|
41
|
-
readonly selector: readonly ["classProperty", "objectLiteralMethod"];
|
|
42
|
-
readonly format: readonly ["strictCamelCase", "UPPER_CASE"];
|
|
43
|
-
} | {
|
|
44
|
-
readonly selector: "typeParameter";
|
|
45
|
-
readonly format: null;
|
|
46
|
-
readonly custom: {
|
|
47
|
-
readonly regex: string;
|
|
48
|
-
readonly match: true;
|
|
49
|
-
};
|
|
50
|
-
} | ({
|
|
51
|
-
readonly selector: "parameter";
|
|
52
|
-
readonly format: readonly ["strictCamelCase"];
|
|
53
|
-
readonly leadingUnderscore: "allow";
|
|
54
|
-
} & Record<"modifiers", unknown>) | ({
|
|
55
|
-
readonly selector: "parameter";
|
|
56
|
-
readonly format: readonly ["strictCamelCase"];
|
|
57
|
-
readonly leadingUnderscore: "allow";
|
|
58
|
-
} & Record<"filter", unknown>) | {
|
|
59
|
-
format: string[];
|
|
60
|
-
selector: "parameter";
|
|
61
|
-
leadingUnderscore: "allow";
|
|
62
|
-
})[]];
|
|
63
2
|
readonly 'jsx-a11y/aria-role': ["error", {
|
|
64
3
|
readonly allowInvalidRoles: readonly ["text"];
|
|
65
4
|
}];
|
|
@@ -67,6 +6,7 @@ declare const _default: {
|
|
|
67
6
|
readonly 'jsx-a11y/lang': "error";
|
|
68
7
|
readonly 'jsx-a11y/no-aria-hidden-on-focusable': "error";
|
|
69
8
|
readonly 'jsx-a11y/prefer-tag-over-role': "error";
|
|
9
|
+
readonly 'react-you-might-not-need-an-effect/no-pass-ref-to-parent': "off";
|
|
70
10
|
readonly 'react/button-has-type': "error";
|
|
71
11
|
readonly 'react/checked-requires-onchange-or-readonly': "error";
|
|
72
12
|
readonly 'react/destructuring-assignment': ["error", "always"];
|
|
@@ -1,29 +1,19 @@
|
|
|
1
1
|
import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
|
|
2
2
|
import reactPlugin from 'eslint-plugin-react';
|
|
3
3
|
import reactYouMightNotNeedAnEffectPlugin from 'eslint-plugin-react-you-might-not-need-an-effect';
|
|
4
|
-
import rulesetTypescript from "./ruleset-typescript.js";
|
|
5
4
|
const reactHooksPlugin = await import('eslint-plugin-react-hooks').then((module) => module.default);
|
|
6
|
-
const [namingConventionState, ...namingConventionRules] = rulesetTypescript['@typescript-eslint/naming-convention'];
|
|
7
5
|
export default {
|
|
8
6
|
...jsxA11yPlugin.configs.strict.rules,
|
|
9
7
|
...reactPlugin.configs.flat['recommended']?.rules,
|
|
10
8
|
...reactPlugin.configs.flat['jsx-runtime']?.rules,
|
|
11
9
|
...reactHooksPlugin.configs.recommended.rules,
|
|
12
10
|
...reactYouMightNotNeedAnEffectPlugin.configs.recommended.rules,
|
|
13
|
-
'@typescript-eslint/naming-convention': [
|
|
14
|
-
namingConventionState,
|
|
15
|
-
...namingConventionRules.map((rule) => {
|
|
16
|
-
if (rule.selector !== 'parameter' || 'modifiers' in rule || 'filter' in rule) {
|
|
17
|
-
return rule;
|
|
18
|
-
}
|
|
19
|
-
return { ...rule, format: ['strictCamelCase', 'StrictPascalCase'] };
|
|
20
|
-
}),
|
|
21
|
-
],
|
|
22
11
|
'jsx-a11y/aria-role': ['error', { allowInvalidRoles: ['text'] }],
|
|
23
12
|
'jsx-a11y/control-has-associated-label': 'error',
|
|
24
13
|
'jsx-a11y/lang': 'error',
|
|
25
14
|
'jsx-a11y/no-aria-hidden-on-focusable': 'error',
|
|
26
15
|
'jsx-a11y/prefer-tag-over-role': 'error',
|
|
16
|
+
'react-you-might-not-need-an-effect/no-pass-ref-to-parent': 'off', // `forwardRef` is deprecated.
|
|
27
17
|
'react/button-has-type': 'error',
|
|
28
18
|
'react/checked-requires-onchange-or-readonly': 'error',
|
|
29
19
|
'react/destructuring-assignment': ['error', 'always'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ruleset-jsx.js","sourceRoot":"","sources":["../../../rulesets/eslint/ruleset-jsx.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,kCAAkC,MAAM,kDAAkD,CAAC;AAElG,
|
|
1
|
+
{"version":3,"file":"ruleset-jsx.js","sourceRoot":"","sources":["../../../rulesets/eslint/ruleset-jsx.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/* eslint sort-keys: "error" -- Organise rules */
|
|
2
2
|
/* eslint unicorn/no-useless-spread: "off" -- Keep the basic settings together. */
|
|
3
|
+
import * as pluginPhp from '@prettier/plugin-php';
|
|
4
|
+
import pluginXml from '@prettier/plugin-xml';
|
|
5
|
+
import pluginIni from 'prettier-plugin-ini';
|
|
3
6
|
/**
|
|
4
7
|
* @param root1 Included plugins to enable.
|
|
5
8
|
* @param root2 Project-specific customisations.
|
|
@@ -7,13 +10,13 @@
|
|
|
7
10
|
*/
|
|
8
11
|
export default function makePrettierConfig({ ini = false, php = false, xml = false } = {}, { plugins = [], overrides = [], ...config } = {}) {
|
|
9
12
|
if (ini) {
|
|
10
|
-
plugins.push(
|
|
13
|
+
plugins.push(pluginIni);
|
|
11
14
|
}
|
|
12
15
|
if (php) {
|
|
13
|
-
plugins.push(
|
|
16
|
+
plugins.push(pluginPhp);
|
|
14
17
|
}
|
|
15
18
|
if (xml) {
|
|
16
|
-
plugins.push(
|
|
19
|
+
plugins.push(pluginXml);
|
|
17
20
|
}
|
|
18
21
|
return {
|
|
19
22
|
...{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makePrettierConfig.js","sourceRoot":"","sources":["../../src/makePrettierConfig.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,kFAAkF;
|
|
1
|
+
{"version":3,"file":"makePrettierConfig.js","sourceRoot":"","sources":["../../src/makePrettierConfig.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,kFAAkF;AAElF,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAE7C,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAQ5C;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,EAAE,GAAG,GAAG,KAAK,EAAE,GAAG,GAAG,KAAK,EAAE,GAAG,GAAG,KAAK,KAAc,EAAE,EACvD,EAAE,OAAO,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,MAAM,KAAa,EAAE;IAExD,IAAI,GAAG,EAAE,CAAC;QACR,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC1B,CAAC;IACD,IAAI,GAAG,EAAE,CAAC;QACR,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC1B,CAAC;IACD,IAAI,GAAG,EAAE,CAAC;QACR,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC1B,CAAC;IACD,OAAO;QACL,GAAG;YACD,WAAW,EAAE,QAAQ;YACrB,OAAO;YACP,SAAS,EAAE,OAAO;YAClB,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,IAAI;YACjB,aAAa,EAAE,KAAK;SACrB;QACD,SAAS,EAAE;YACT;gBACE,KAAK,EAAE,CAAC,UAAU,EAAE,WAAW,CAAC;gBAChC,OAAO,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,4EAA4E;aACjH;YACD,GAAG,SAAS;SACb;QACD,GAAG,MAAM;KACV,CAAC;AACJ,CAAC"}
|
|
@@ -17,6 +17,7 @@ class PhpCsFixerConfig extends BaseConfig
|
|
|
17
17
|
$config = new self();
|
|
18
18
|
|
|
19
19
|
$config->setParallelConfig(ParallelConfigFactory::detect())->setRiskyAllowed(true)->setRules(static::loadRules());
|
|
20
|
+
$config->setUnsupportedPhpVersionAllowed(self::phpVersionCompare('>=', '8.5.0'));
|
|
20
21
|
|
|
21
22
|
if ($finder !== null) {
|
|
22
23
|
$config->setFinder($finder);
|
|
@@ -24,4 +25,13 @@ class PhpCsFixerConfig extends BaseConfig
|
|
|
24
25
|
|
|
25
26
|
return $config;
|
|
26
27
|
}
|
|
28
|
+
|
|
29
|
+
private static function phpVersionCompare(string $operator, string $version): bool
|
|
30
|
+
{
|
|
31
|
+
return \version_compare(
|
|
32
|
+
\PHP_MAJOR_VERSION . '.' . \PHP_MINOR_VERSION . '.' . \PHP_RELEASE_VERSION,
|
|
33
|
+
$version,
|
|
34
|
+
$operator,
|
|
35
|
+
);
|
|
36
|
+
}
|
|
27
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@averay/codeformat",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.22",
|
|
4
4
|
"author": "Adam Averay (https://adamaveray.com.au/)",
|
|
5
5
|
"homepage": "https://github.com/adamaveray/codeformat",
|
|
6
6
|
"repository": {
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
},
|
|
19
19
|
"main": "dist/src/index.js",
|
|
20
20
|
"types": "dist/src/index.d.ts",
|
|
21
|
+
"files": [
|
|
22
|
+
"/dist",
|
|
23
|
+
"/README.md"
|
|
24
|
+
],
|
|
21
25
|
"scripts": {
|
|
22
26
|
"build": "rm -rf dist && bun run build:tsc && bun run build:php && chmod +x dist/bin/*.js",
|
|
23
27
|
"build:tsc": "bun --bun x tsc --project tsconfig.build.json --outDir dist",
|
|
@@ -33,34 +37,34 @@
|
|
|
33
37
|
"dependencies": {
|
|
34
38
|
"@averay/css-properties-sort-order": "^1.0.3",
|
|
35
39
|
"@eslint/js": "^9.39.1",
|
|
36
|
-
"@eslint/markdown": "^7.5.
|
|
40
|
+
"@eslint/markdown": "^7.5.1",
|
|
37
41
|
"@prettier/plugin-php": "^0.24.0",
|
|
38
42
|
"@prettier/plugin-xml": "^3.4.2",
|
|
39
|
-
"@stylistic/eslint-plugin": "^5.
|
|
43
|
+
"@stylistic/eslint-plugin": "^5.6.1",
|
|
40
44
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
42
|
-
"@typescript-eslint/parser": "^8.
|
|
43
|
-
"@typescript-eslint/utils": "^8.
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
46
|
+
"@typescript-eslint/parser": "^8.48.0",
|
|
47
|
+
"@typescript-eslint/utils": "^8.48.0",
|
|
44
48
|
"eslint": "^9.39.1",
|
|
45
49
|
"eslint-config-prettier": "^10.1.8",
|
|
46
50
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
47
51
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
48
52
|
"eslint-plugin-import-x": "^4.16.1",
|
|
49
|
-
"eslint-plugin-jsdoc": "^61.1
|
|
53
|
+
"eslint-plugin-jsdoc": "^61.4.1",
|
|
50
54
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
51
55
|
"eslint-plugin-promise": "^7.2.1",
|
|
52
56
|
"eslint-plugin-react": "^7.37.5",
|
|
53
57
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
54
|
-
"eslint-plugin-react-you-might-not-need-an-effect": "^0.
|
|
58
|
+
"eslint-plugin-react-you-might-not-need-an-effect": "^0.7.0",
|
|
55
59
|
"eslint-plugin-regexp": "^2.10.0",
|
|
56
60
|
"eslint-plugin-sonarjs": "^3.0.5",
|
|
57
|
-
"eslint-plugin-unicorn": "^
|
|
61
|
+
"eslint-plugin-unicorn": "^62.0.0",
|
|
58
62
|
"globals": "^16.5.0",
|
|
59
|
-
"knip": "^5.
|
|
63
|
+
"knip": "^5.70.2",
|
|
60
64
|
"postcss-scss": "^4.0.9",
|
|
61
|
-
"prettier": "^3.
|
|
65
|
+
"prettier": "^3.7.1",
|
|
62
66
|
"prettier-plugin-ini": "^1.3.0",
|
|
63
|
-
"stylelint": "^16.
|
|
67
|
+
"stylelint": "^16.26.0",
|
|
64
68
|
"stylelint-config-recommended": "^17.0.0",
|
|
65
69
|
"stylelint-config-recommended-scss": "^16.0.2",
|
|
66
70
|
"stylelint-config-standard": "^39.0.1",
|
|
@@ -69,11 +73,11 @@
|
|
|
69
73
|
"stylelint-plugin-defensive-css": "^1.0.4",
|
|
70
74
|
"stylelint-scss": "^6.12.1",
|
|
71
75
|
"stylelint-use-logical": "^2.1.2",
|
|
72
|
-
"typescript-eslint": "^8.
|
|
76
|
+
"typescript-eslint": "^8.48.0"
|
|
73
77
|
},
|
|
74
78
|
"devDependencies": {
|
|
75
79
|
"@types/bun": "latest",
|
|
76
|
-
"bumpp": "^10.3.
|
|
80
|
+
"bumpp": "^10.3.2",
|
|
77
81
|
"husky": "^9.1.7",
|
|
78
82
|
"typescript": "^5.9.3"
|
|
79
83
|
}
|
package/.editorconfig
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# http://editorconfig.org
|
|
2
|
-
root = true
|
|
3
|
-
|
|
4
|
-
[*]
|
|
5
|
-
charset = utf-8
|
|
6
|
-
end_of_line = lf
|
|
7
|
-
indent_size = 2
|
|
8
|
-
indent_style = space
|
|
9
|
-
insert_final_newline = true
|
|
10
|
-
max_line_length = 120
|
|
11
|
-
trim_trailing_whitespace = true
|
|
12
|
-
|
|
13
|
-
[*.md]
|
|
14
|
-
max_line_length = 999999999
|
|
15
|
-
trim_trailing_whitespace = false
|
package/tsconfig.base.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
// Output
|
|
4
|
-
"noEmit": true,
|
|
5
|
-
// Module resolution
|
|
6
|
-
"allowImportingTsExtensions": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"forceConsistentCasingInFileNames": true,
|
|
9
|
-
"isolatedModules": true,
|
|
10
|
-
"module": "ESNext",
|
|
11
|
-
"moduleResolution": "Bundler",
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
// Type checking
|
|
14
|
-
"allowJs": true,
|
|
15
|
-
"allowUnreachableCode": false,
|
|
16
|
-
"allowUnusedLabels": false,
|
|
17
|
-
"checkJs": true,
|
|
18
|
-
"exactOptionalPropertyTypes": false,
|
|
19
|
-
"noImplicitOverride": true,
|
|
20
|
-
"noImplicitReturns": true,
|
|
21
|
-
"noPropertyAccessFromIndexSignature": true,
|
|
22
|
-
"noUncheckedIndexedAccess": true,
|
|
23
|
-
"noUnusedLocals": true,
|
|
24
|
-
"noUnusedParameters": true,
|
|
25
|
-
"skipLibCheck": true,
|
|
26
|
-
"strict": true
|
|
27
|
-
}
|
|
28
|
-
}
|
package/tsconfig.json
DELETED
package/types.d.ts
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
declare module '@stylistic/eslint-plugin' {
|
|
2
|
-
import type { TSESLint } from '@typescript-eslint/utils';
|
|
3
|
-
|
|
4
|
-
export default {} as TSESLint.FlatConfig.Plugin & {
|
|
5
|
-
configs: Record<'recommended', TSESLint.FlatConfig.Config>;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
declare module 'eslint-config-prettier' {
|
|
10
|
-
import type { TSESLint } from '@typescript-eslint/utils';
|
|
11
|
-
|
|
12
|
-
export default {} as TSESLint.FlatConfig.Config;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
declare module 'eslint-plugin-eslint-comments' {
|
|
16
|
-
import type { TSESLint } from '@typescript-eslint/utils';
|
|
17
|
-
|
|
18
|
-
export default {} as TSESLint.FlatConfig.Plugin & {
|
|
19
|
-
configs: Record<'recommended', TSESLint.FlatConfig.Config>;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
declare module 'eslint-plugin-jsdoc' {
|
|
24
|
-
import type { TSESLint } from '@typescript-eslint/utils';
|
|
25
|
-
|
|
26
|
-
export default {} as TSESLint.FlatConfig.Plugin & {
|
|
27
|
-
configs: Record<'recommended', TSESLint.FlatConfig.Config>;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
declare module 'eslint-plugin-promise' {
|
|
32
|
-
import type { TSESLint } from '@typescript-eslint/utils';
|
|
33
|
-
|
|
34
|
-
export default {} as TSESLint.FlatConfig.Plugin & {
|
|
35
|
-
configs: Record<'recommended', TSESLint.FlatConfig.Config>;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
declare module 'eslint-plugin-sonarjs' {
|
|
40
|
-
import type { TSESLint } from '@typescript-eslint/utils';
|
|
41
|
-
|
|
42
|
-
export default {} as TSESLint.FlatConfig.Plugin & {
|
|
43
|
-
configs: Record<'recommended', TSESLint.FlatConfig.Config>;
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
declare module 'eslint-plugin-unicorn' {
|
|
48
|
-
import type { TSESLint } from '@typescript-eslint/utils';
|
|
49
|
-
|
|
50
|
-
export default {} as TSESLint.FlatConfig.Plugin & {
|
|
51
|
-
configs: Record<'recommended', TSESLint.FlatConfig.Config>;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
declare module 'eslint-plugin-react-hooks' {
|
|
56
|
-
import type { TSESLint } from '@typescript-eslint/utils';
|
|
57
|
-
|
|
58
|
-
export = {} as TSESLint.FlatConfig.Plugin & {
|
|
59
|
-
configs: Record<'recommended', TSESLint.FlatConfig.Config>;
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
declare module 'stylelint-config-recommended' {
|
|
64
|
-
import type { Config } from 'stylelint';
|
|
65
|
-
|
|
66
|
-
export default {} as Config;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
declare module 'stylelint-config-recommended-scss' {
|
|
70
|
-
import type { Config } from 'stylelint';
|
|
71
|
-
|
|
72
|
-
export default {} as Config;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
declare module 'stylelint-config-standard' {
|
|
76
|
-
import type { Config } from 'stylelint';
|
|
77
|
-
|
|
78
|
-
export default {} as Config;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
declare module 'stylelint-config-standard-scss' {
|
|
82
|
-
import type { Config } from 'stylelint';
|
|
83
|
-
|
|
84
|
-
export default {} as Config;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
declare module 'stylelint-order' {
|
|
88
|
-
import type { Plugin } from 'stylelint';
|
|
89
|
-
|
|
90
|
-
export default {} as Plugin;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
declare module 'stylelint-plugin-defensive-css' {
|
|
94
|
-
import type { Plugin } from 'stylelint';
|
|
95
|
-
|
|
96
|
-
export default [] as [Plugin];
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
declare module 'stylelint-scss' {
|
|
100
|
-
import type { Plugin } from 'stylelint';
|
|
101
|
-
|
|
102
|
-
export default {} as Plugin;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
declare module 'stylelint-use-logical' {
|
|
106
|
-
import type { Plugin } from 'stylelint';
|
|
107
|
-
|
|
108
|
-
export default {} as Plugin;
|
|
109
|
-
}
|