@boehringer-ingelheim/eslint-config 9.5.0-typescript-migration.7 → 9.5.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/dist/cjs/configs/base.d.ts +1 -1
- package/dist/cjs/configs/base.d.ts.map +1 -1
- package/dist/cjs/configs/base.js +20 -5
- package/dist/cjs/configs/base.js.map +1 -1
- package/dist/cjs/configs/experimental-naming-convention.d.ts +1 -1
- package/dist/cjs/configs/local.d.ts +1 -1
- package/dist/cjs/configs/local.js +4 -1
- package/dist/cjs/configs/local.js.map +1 -1
- package/dist/cjs/configs/nextjs.d.ts +1 -1
- package/dist/cjs/configs/nextjs.js +5 -2
- package/dist/cjs/configs/nextjs.js.map +1 -1
- package/dist/cjs/configs/playwright.d.ts +1 -1
- package/dist/cjs/configs/playwright.d.ts.map +1 -1
- package/dist/cjs/configs/playwright.js +7 -1
- package/dist/cjs/configs/playwright.js.map +1 -1
- package/dist/cjs/configs/prettier-disable.d.ts +1 -1
- package/dist/cjs/configs/prettier-disable.js +4 -1
- package/dist/cjs/configs/prettier-disable.js.map +1 -1
- package/dist/cjs/configs/react.d.ts +1 -1
- package/dist/cjs/configs/react.js +9 -6
- package/dist/cjs/configs/react.js.map +1 -1
- package/dist/cjs/configs/strict.d.ts +1 -1
- package/dist/cjs/configs/strict.js +5 -2
- package/dist/cjs/configs/strict.js.map +1 -1
- package/dist/cjs/lib/constants.d.ts +2 -0
- package/dist/cjs/lib/constants.d.ts.map +1 -0
- package/dist/cjs/lib/constants.js +5 -0
- package/dist/cjs/lib/constants.js.map +1 -0
- package/dist/cjs/lib/eslint-plugin-perfectionist.d.ts +5 -5
- package/dist/cjs/lib/eslint-plugin-perfectionist.d.ts.map +1 -1
- package/dist/cjs/lib/eslint-plugin-perfectionist.js +1 -0
- package/dist/cjs/lib/eslint-plugin-perfectionist.js.map +1 -1
- package/dist/cjs/lib/include-ignore-file.d.ts +2 -2
- package/dist/cjs/lib/include-ignore-file.d.ts.map +1 -1
- package/dist/cjs/lib/include-ignore-file.js +7 -4
- package/dist/cjs/lib/include-ignore-file.js.map +1 -1
- package/dist/cjs/main.d.ts +15 -23
- package/dist/cjs/main.d.ts.map +1 -1
- package/dist/cjs/main.js +17 -13
- package/dist/cjs/main.js.map +1 -1
- package/dist/esm/configs/base.d.ts.map +1 -1
- package/dist/esm/configs/base.js +13 -1
- package/dist/esm/configs/base.js.map +1 -1
- package/dist/esm/configs/playwright.d.ts.map +1 -1
- package/dist/esm/configs/playwright.js +3 -0
- package/dist/esm/configs/playwright.js.map +1 -1
- package/dist/esm/configs/react.js +2 -2
- package/dist/esm/configs/react.js.map +1 -1
- package/dist/esm/lib/constants.d.ts +2 -0
- package/dist/esm/lib/constants.d.ts.map +1 -0
- package/dist/esm/lib/constants.js +2 -0
- package/dist/esm/lib/constants.js.map +1 -0
- package/dist/esm/lib/eslint-plugin-perfectionist.d.ts +5 -5
- package/dist/esm/lib/eslint-plugin-perfectionist.d.ts.map +1 -1
- package/dist/esm/lib/eslint-plugin-perfectionist.js +1 -0
- package/dist/esm/lib/eslint-plugin-perfectionist.js.map +1 -1
- package/dist/esm/lib/include-ignore-file.d.ts +2 -2
- package/dist/esm/lib/include-ignore-file.d.ts.map +1 -1
- package/dist/esm/lib/include-ignore-file.js +2 -2
- package/dist/esm/lib/include-ignore-file.js.map +1 -1
- package/dist/esm/main.d.ts +7 -15
- package/dist/esm/main.d.ts.map +1 -1
- package/dist/esm/main.js +4 -3
- package/dist/esm/main.js.map +1 -1
- package/package.json +20 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/configs/base.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/configs/base.ts"],"names":[],"mappings":";AAcA,wBA+IE"}
|
package/dist/cjs/configs/base.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const js_1 = require("@eslint/js");
|
|
4
|
-
const eslint_plugin_import_1 = require("eslint-plugin-import");
|
|
5
|
-
const eslint_plugin_perfectionist_1 = require("eslint-plugin-perfectionist");
|
|
6
|
+
const js_1 = __importDefault(require("@eslint/js"));
|
|
7
|
+
const eslint_plugin_import_1 = __importDefault(require("eslint-plugin-import"));
|
|
8
|
+
const eslint_plugin_perfectionist_1 = __importDefault(require("eslint-plugin-perfectionist"));
|
|
6
9
|
const eslint_plugin_sonarjs_1 = require("eslint-plugin-sonarjs");
|
|
7
10
|
const config_1 = require("eslint/config");
|
|
8
|
-
const typescript_eslint_1 = require("typescript-eslint");
|
|
11
|
+
const typescript_eslint_1 = __importDefault(require("typescript-eslint"));
|
|
12
|
+
const constants_js_1 = require("../lib/constants.js");
|
|
9
13
|
const eslint_plugin_perfectionist_js_1 = require("../lib/eslint-plugin-perfectionist.js");
|
|
10
14
|
exports.default = (0, config_1.defineConfig)(js_1.default.configs.recommended, typescript_eslint_1.default.configs.recommendedTypeChecked, typescript_eslint_1.default.configs.stylisticTypeChecked, eslint_plugin_import_1.default.flatConfigs.recommended, eslint_plugin_import_1.default.flatConfigs.typescript, eslint_plugin_perfectionist_1.default.configs['recommended-natural'], eslint_plugin_sonarjs_1.configs.recommended, {
|
|
11
15
|
languageOptions: {
|
|
@@ -105,6 +109,10 @@ exports.default = (0, config_1.defineConfig)(js_1.default.configs.recommended, t
|
|
|
105
109
|
partitionByComment: true,
|
|
106
110
|
},
|
|
107
111
|
],
|
|
112
|
+
// eslint-plugin-sonarjs: https://github.com/SonarSource/SonarJS/blob/master/packages/analysis/src/jsts/rules/README.md
|
|
113
|
+
'sonarjs/deprecation': 'off', // disable rule in favor of @typescript-eslint/no-deprecated
|
|
114
|
+
'sonarjs/no-unused-vars': 'off', // disabled due to overlap with @typescript-eslint/no-unused-vars
|
|
115
|
+
'sonarjs/todo-tag': 'warn',
|
|
108
116
|
},
|
|
109
117
|
settings: {
|
|
110
118
|
'import/resolver': {
|
|
@@ -117,11 +125,18 @@ exports.default = (0, config_1.defineConfig)(js_1.default.configs.recommended, t
|
|
|
117
125
|
}, {
|
|
118
126
|
files: [
|
|
119
127
|
'**/*.d.ts', // TypeScript declaration files
|
|
120
|
-
|
|
128
|
+
...constants_js_1.TEST_FILE_GLOBS,
|
|
121
129
|
'./*.{js,cjs,mjs,ts,cts,mts}', // Mostly configuration files on root level
|
|
122
130
|
],
|
|
123
131
|
rules: {
|
|
124
132
|
'import/no-unused-modules': 'off',
|
|
125
133
|
},
|
|
134
|
+
}, {
|
|
135
|
+
files: [...constants_js_1.TEST_FILE_GLOBS],
|
|
136
|
+
rules: {
|
|
137
|
+
// eslint-plugin-sonarjs: https://github.com/SonarSource/SonarJS/blob/master/packages/analysis/src/jsts/rules/README.md
|
|
138
|
+
'sonarjs/no-duplicate-string': 'off',
|
|
139
|
+
'sonarjs/slow-regex': 'off',
|
|
140
|
+
},
|
|
126
141
|
});
|
|
127
142
|
//# sourceMappingURL=base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/configs/base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/configs/base.ts"],"names":[],"mappings":";;;;;AAAA,oDAAgC;AAChC,gFAAgD;AAChD,8FAAwD;AACxD,iEAAkE;AAClE,0CAA6C;AAC7C,0EAAyC;AACzC,sDAAsD;AACtD,0FAK+C;AAE/C,kBAAe,IAAA,qBAAY,EACzB,YAAM,CAAC,OAAO,CAAC,WAAW,EAC1B,2BAAQ,CAAC,OAAO,CAAC,sBAAsB,EACvC,2BAAQ,CAAC,OAAO,CAAC,oBAAoB,EACrC,8BAAY,CAAC,WAAW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AAK,EAAE;QACL,WAAW,EAAE,+BAA+B;QAC5C,GAAG,8BAAe;QAClB,6BAA6B,EAAE,2CAA2C;KAC3E;IACD,KAAK,EAAE;QACL,0BAA0B,EAAE,KAAK;KAClC;CACF,EACD;IACE,KAAK,EAAE,CAAC,GAAG,8BAAe,CAAC;IAC3B,KAAK,EAAE;QACL,uHAAuH;QACvH,6BAA6B,EAAE,KAAK;QACpC,oBAAoB,EAAE,KAAK;KAC5B;CACF,CACF,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
const config_1 = require("eslint/config");
|
|
4
|
-
const is_ci_1 = require("is-ci");
|
|
7
|
+
const is_ci_1 = __importDefault(require("is-ci"));
|
|
5
8
|
exports.default = (0, config_1.defineConfig)(is_ci_1.default
|
|
6
9
|
? {}
|
|
7
10
|
: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local.js","sourceRoot":"","sources":["../../../src/configs/local.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"local.js","sourceRoot":"","sources":["../../../src/configs/local.ts"],"names":[],"mappings":";;;;;AAAA,0CAA6C;AAC7C,kDAAyB;AAEzB,kBAAe,IAAA,qBAAY,EACzB,eAAI;IACF,CAAC,CAAC,EAAE;IACJ,CAAC,CAAC;QACE,KAAK,EAAE;YACL,gJAAgJ;YAChJ,iBAAiB,EAAE,KAAK;YACxB,sBAAsB,EAAE,KAAK;YAC7B,4BAA4B,EAAE,KAAK;YACnC,0BAA0B,EAAE,KAAK;SAClC;KACF,CACN,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const eslint_plugin_next_1 = require("@next/eslint-plugin-next");
|
|
6
|
+
const eslint_plugin_next_1 = __importDefault(require("@next/eslint-plugin-next"));
|
|
4
7
|
const config_1 = require("eslint/config");
|
|
5
8
|
const nextjs_utils_js_1 = require("../lib/nextjs.utils.js");
|
|
6
|
-
const react_js_1 = require("./react.js");
|
|
9
|
+
const react_js_1 = __importDefault(require("./react.js"));
|
|
7
10
|
exports.default = (0, config_1.defineConfig)(...react_js_1.default, {
|
|
8
11
|
plugins: {
|
|
9
12
|
'@next/next': eslint_plugin_next_1.default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nextjs.js","sourceRoot":"","sources":["../../../src/configs/nextjs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nextjs.js","sourceRoot":"","sources":["../../../src/configs/nextjs.ts"],"names":[],"mappings":";;;;;AAAA,kFAAkD;AAClD,0CAA6C;AAC7C,4DAA8D;AAC9D,0DAA+B;AAE/B,kBAAe,IAAA,qBAAY,EACzB,GAAG,kBAAK,EACR;IACE,OAAO,EAAE;QACP,YAAY,EAAE,4BAAU;KACzB;IACD,KAAK,EAAE;QACL,GAAG,4BAAU,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK;QACvC,GAAG,4BAAU,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,KAAK;KAC/C;CACF,EACD;IACE,KAAK,EAAE,CAAC,qBAAqB,sCAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC;IACxE,KAAK,EAAE;QACL,0BAA0B,EAAE,CAAC,KAAK,CAAC;QAEnC,0FAA0F;QAC1F,sCAAsC,EAAE;YACtC,MAAM;YACN;gBACE,gBAAgB,EAAE;oBAChB;;;;uBAIG;oBACH,SAAS;oBACT,eAAe;oBACf,YAAY;oBACZ,aAAa;oBACb,iBAAiB;oBACjB,YAAY;oBACZ,SAAS;oBAET;;;;uBAIG;oBACH,kBAAkB;oBAClB,UAAU;oBAEV;;;;uBAIG;oBACH,sBAAsB;oBAEtB;;;;uBAIG;oBACH,kBAAkB;oBAClB,UAAU;iBACX;aACF;SACF;KACF;CACF,EACD;IACE,KAAK,EAAE,CAAC,gDAAgD,CAAC;IACzD,KAAK,EAAE;QACL,0BAA0B,EAAE,CAAC,KAAK,CAAC;QAEnC,0FAA0F;QAC1F,sCAAsC,EAAE;YACtC,MAAM;YACN;gBACE,gBAAgB,EAAE;oBAChB;;;;uBAIG;oBACH,UAAU;iBACX;aACF;SACF;KACF;CACF,EACD;IACE;;;;OAIG;IACH,KAAK,EAAE,CAAC,sCAAsC,CAAC;IAC/C,KAAK,EAAE;QACL,0BAA0B,EAAE,CAAC,KAAK,CAAC;QAEnC,0FAA0F;QAC1F,sCAAsC,EAAE;YACtC,MAAM;YACN;gBACE,gBAAgB,EAAE;oBAChB;;;;uBAIG;oBACH,QAAQ;iBACT;aACF;SACF;KACF;CACF,EACD;IACE,KAAK,EAAE,CAAC,4BAA4B,CAAC;IACrC,KAAK,EAAE;QACL,0BAA0B,EAAE,CAAC,KAAK,CAAC;QAEnC,0FAA0F;QAC1F,sCAAsC,EAAE;YACtC,MAAM;YACN;gBACE,gBAAgB,EAAE;oBAChB;;;;uBAIG;oBACH,QAAQ;oBACR,OAAO;iBACR;aACF;SACF;KACF;CACF,CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playwright.d.ts","sourceRoot":"","sources":["../../../src/configs/playwright.ts"],"names":[],"mappings":";AAWA,
|
|
1
|
+
{"version":3,"file":"playwright.d.ts","sourceRoot":"","sources":["../../../src/configs/playwright.ts"],"names":[],"mappings":";AAWA,wBA0BG"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const eslint_plugin_playwright_1 = require("eslint-plugin-playwright");
|
|
6
|
+
const eslint_plugin_playwright_1 = __importDefault(require("eslint-plugin-playwright"));
|
|
4
7
|
const config_1 = require("eslint/config");
|
|
5
8
|
const playwrightPlugin = eslint_plugin_playwright_1.default;
|
|
6
9
|
exports.default = (0, config_1.defineConfig)({
|
|
@@ -23,6 +26,9 @@ exports.default = (0, config_1.defineConfig)({
|
|
|
23
26
|
'playwright/prefer-to-be': 'error',
|
|
24
27
|
'playwright/prefer-to-have-length': 'error',
|
|
25
28
|
'playwright/require-top-level-describe': 'error',
|
|
29
|
+
// eslint-plugin-sonarjs: https://github.com/SonarSource/SonarJS/blob/master/packages/analysis/src/jsts/rules/README.md
|
|
30
|
+
'sonarjs/no-duplicate-string': 'off',
|
|
31
|
+
'sonarjs/slow-regex': 'off',
|
|
26
32
|
},
|
|
27
33
|
});
|
|
28
34
|
//# sourceMappingURL=playwright.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playwright.js","sourceRoot":"","sources":["../../../src/configs/playwright.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"playwright.js","sourceRoot":"","sources":["../../../src/configs/playwright.ts"],"names":[],"mappings":";;;;;AAAA,wFAAkD;AAClD,0CAA6C;AAE7C,MAAM,gBAAgB,GAAG,kCAMxB,CAAC;AAEF,kBAAe,IAAA,qBAAY,EAAC;IAC1B,GAAG,gBAAgB,CAAC,OAAO,CAAC,kBAAkB,CAAC;IAC/C,KAAK,EAAE;QACL;;;;;;;;;;WAUG;QACH,mCAAmC,EAAE,KAAK;QAE1C,6FAA6F;QAC7F,GAAG,gBAAgB,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,KAAK;QACrD,yBAAyB,EAAE,OAAO;QAClC,kCAAkC,EAAE,OAAO;QAC3C,uCAAuC,EAAE,OAAO;QAEhD,uHAAuH;QACvH,6BAA6B,EAAE,KAAK;QACpC,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const eslint_config_prettier_1 = require("eslint-config-prettier");
|
|
6
|
+
const eslint_config_prettier_1 = __importDefault(require("eslint-config-prettier"));
|
|
4
7
|
const config_1 = require("eslint/config");
|
|
5
8
|
exports.default = (0, config_1.defineConfig)({
|
|
6
9
|
...eslint_config_prettier_1.default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prettier-disable.js","sourceRoot":"","sources":["../../../src/configs/prettier-disable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prettier-disable.js","sourceRoot":"","sources":["../../../src/configs/prettier-disable.ts"],"names":[],"mappings":";;;;;AAAA,oFAA8C;AAC9C,0CAA6C;AAE7C,kBAAe,IAAA,qBAAY,EAAC;IAC1B,GAAG,gCAAQ;IACX,KAAK,EAAE;QACL,GAAG,gCAAQ,CAAC,KAAK;QACjB,KAAK,EAAE,OAAO;KACf;CACF,CAAC,CAAC"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const eslint_plugin_jsx_a11y_1 = require("eslint-plugin-jsx-a11y");
|
|
4
|
-
const eslint_plugin_react_1 = require("eslint-plugin-react");
|
|
5
|
-
const eslint_plugin_react_hooks_1 = require("eslint-plugin-react-hooks");
|
|
6
|
+
const eslint_plugin_jsx_a11y_1 = __importDefault(require("eslint-plugin-jsx-a11y"));
|
|
7
|
+
const eslint_plugin_react_1 = __importDefault(require("eslint-plugin-react"));
|
|
8
|
+
const eslint_plugin_react_hooks_1 = __importDefault(require("eslint-plugin-react-hooks"));
|
|
6
9
|
const eslint_plugin_react_refresh_1 = require("eslint-plugin-react-refresh");
|
|
7
10
|
const config_1 = require("eslint/config");
|
|
8
|
-
const globals_1 = require("globals");
|
|
11
|
+
const globals_1 = __importDefault(require("globals"));
|
|
9
12
|
const eslint_plugin_perfectionist_js_1 = require("../lib/eslint-plugin-perfectionist.js");
|
|
10
|
-
const base_js_1 = require("./base.js");
|
|
13
|
+
const base_js_1 = __importDefault(require("./base.js"));
|
|
11
14
|
const reactRecommendedConfig = eslint_plugin_react_1.default.configs.flat['recommended'];
|
|
12
15
|
if (!reactRecommendedConfig) {
|
|
13
16
|
throw new Error('Expected to find the "flat/recommended" configuration in the eslint-plugin-react plugin, but it was not found.');
|
|
@@ -16,7 +19,7 @@ const reactJsxRuntimeConfig = eslint_plugin_react_1.default.configs.flat['jsx-ru
|
|
|
16
19
|
if (!reactJsxRuntimeConfig) {
|
|
17
20
|
throw new Error('Expected to find the "flat/jsx-runtime" configuration in the eslint-plugin-react plugin, but it was not found.');
|
|
18
21
|
}
|
|
19
|
-
exports.default = (0, config_1.defineConfig)(...base_js_1.default, eslint_plugin_jsx_a11y_1.default.flatConfigs.recommended, reactRecommendedConfig, reactJsxRuntimeConfig, eslint_plugin_react_refresh_1.
|
|
22
|
+
exports.default = (0, config_1.defineConfig)(...base_js_1.default, eslint_plugin_jsx_a11y_1.default.flatConfigs.recommended, reactRecommendedConfig, reactJsxRuntimeConfig, eslint_plugin_react_refresh_1.reactRefresh.configs.recommended(), {
|
|
20
23
|
languageOptions: {
|
|
21
24
|
globals: {
|
|
22
25
|
...globals_1.default.browser,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.js","sourceRoot":"","sources":["../../../src/configs/react.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react.js","sourceRoot":"","sources":["../../../src/configs/react.ts"],"names":[],"mappings":";;;;;AAAA,oFAA6C;AAC7C,8EAAwC;AACxC,0FAAmD;AACnD,6EAA2D;AAC3D,0CAA6C;AAC7C,sDAA8B;AAC9B,0FAAoG;AACpG,wDAA6B;AAE7B,MAAM,sBAAsB,GAAG,6BAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AAEjE,IAAI,CAAC,sBAAsB,EAAE,CAAC;IAC5B,MAAM,IAAI,KAAK,CACb,gHAAgH,CACjH,CAAC;AACJ,CAAC;AAED,MAAM,qBAAqB,GAAG,6BAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;AAEhE,IAAI,CAAC,qBAAqB,EAAE,CAAC;IAC3B,MAAM,IAAI,KAAK,CACb,gHAAgH,CACjH,CAAC;AACJ,CAAC;AAED,kBAAe,IAAA,qBAAY,EACzB,GAAG,iBAAI,EACP,gCAAO,CAAC,WAAW,CAAC,WAAW,EAC/B,sBAAsB,EACtB,qBAAqB,EACrB,0CAAY,CAAC,OAAO,CAAC,WAAW,EAAE,EAClC;IACE,eAAe,EAAE;QACf,OAAO,EAAE;YACP,GAAG,iBAAO,CAAC,OAAO;SACnB;QACD,aAAa,EAAE;YACb,YAAY,EAAE;gBACZ,GAAG,EAAE,IAAI;aACV;SACF;KACF;IACD,OAAO,EAAE;QACP,aAAa,EAAE;YACb,GAAG,mCAAU;YACb,kIAAkI;YAClI,uFAAuF;YACvF,iEAAiE;YACjE,OAAO,EAAE,SAAS;SACnB;KACF;IACD,KAAK,EAAE;QACL,yHAAyH;QACzH,gDAAgD,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;QACnE,wCAAwC,EAAE;YACxC,OAAO;YACP;gBACE,KAAK,EAAE;oBACL,UAAU,EAAE;wBACV,OAAO,EACL,qJAAqJ;qBACxJ;oBACD,2BAA2B,EAAE;wBAC3B,OAAO,EACL,qJAAqJ;qBACxJ;iBACF;aACF;SACF;QAED,+FAA+F;QAC/F,uBAAuB,EAAE,OAAO;QAChC,sBAAsB,EAAE,KAAK,EAAE,4DAA4D;QAC3F,0BAA0B,EAAE,OAAO;QAEnC,sHAAsH;QACtH,6BAA6B,EAAE,OAAO;QACtC,4BAA4B,EAAE,OAAO;QAErC,sFAAsF;QACtF,4BAA4B,EAAE;YAC5B,OAAO;YACP;gBACE,YAAY,EAAE;oBACZ;wBACE,kBAAkB,EAAE,CAAC,SAAS,CAAC;wBAC/B,SAAS,EAAE,OAAO;qBACnB;iBACF;gBACD,MAAM,EAAE,CAAC,OAAO,EAAE,GAAG,oDAAmB,CAAC;gBACzC,eAAe,EAAE,CAAC,EAAE,yCAAyC;aAC9D;SACF;QACD,8BAA8B,EAAE;YAC9B,OAAO;YACP;gBACE,YAAY,EAAE;oBACZ;wBACE,kBAAkB,EAAE,OAAO;wBAC3B,SAAS,EAAE,UAAU;qBACtB;oBACD;wBACE,kBAAkB,EAAE,CAAC,UAAU,EAAE,yBAAyB,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,yHAAyH;wBACpM,SAAS,EAAE,eAAe;qBAC3B;iBACF;gBACD,MAAM,EAAE,CAAC,eAAe,EAAE,SAAS,EAAE,UAAU,CAAC;aACjD;SACF;QAED,0FAA0F;QAC1F,sCAAsC,EAAE,MAAM;QAE9C,0BAA0B;QAC1B,sBAAsB,EAAE;YACtB,OAAO;YACP;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,mBAAmB;aAC9B;SACF;KACF;IACD,QAAQ,EAAE;QACR,aAAa,EAAE;YACb,GAAG,uDAAsB;SAC1B;QACD,KAAK,EAAE;YACL,OAAO,EAAE,QAAQ;SAClB;KACF;CACF,CACF,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
const config_1 = require("eslint/config");
|
|
4
|
-
const typescript_eslint_1 = require("typescript-eslint");
|
|
5
|
-
const base_js_1 = require("./base.js");
|
|
7
|
+
const typescript_eslint_1 = __importDefault(require("typescript-eslint"));
|
|
8
|
+
const base_js_1 = __importDefault(require("./base.js"));
|
|
6
9
|
const strictTemplateExpressionsRule = typescript_eslint_1.default.plugin.rules['restrict-template-expressions'];
|
|
7
10
|
if (!strictTemplateExpressionsRule) {
|
|
8
11
|
throw new Error('Expected to find the "restrict-template-expressions" rule in the typescript-eslint plugin, but it was not found.');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"strict.js","sourceRoot":"","sources":["../../../src/configs/strict.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"strict.js","sourceRoot":"","sources":["../../../src/configs/strict.ts"],"names":[],"mappings":";;;;;AAAA,0CAA6C;AAC7C,0EAAyC;AACzC,wDAA6B;AAM7B,MAAM,6BAA6B,GAAI,2BAAQ,CAAC,MAAoC,CAAC,KAAK,CACxF,+BAA+B,CAChC,CAAC;AAEF,IAAI,CAAC,6BAA6B,EAAE,CAAC;IACnC,MAAM,IAAI,KAAK,CACb,kHAAkH,CACnH,CAAC;AACJ,CAAC;AAED,kBAAe,IAAA,qBAAY,EAAC,GAAG,iBAAI,EAAE,2BAAQ,CAAC,OAAO,CAAC,iBAAiB,EAAE;IACvE,KAAK,EAAE;QACL,yHAAyH;QACzH,4CAA4C,EAAE,OAAO;QACrD,gDAAgD,EAAE,OAAO;QACzD,kDAAkD,EAAE;YAClD,OAAO;YACP;gBACE,GAAG,6BAA6B,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;gBAChE,WAAW,EAAE,IAAI;aAClB;SACF;QAED,+FAA+F;QAC/F,wCAAwC,EAAE,CAAC,OAAO,EAAE,kBAAkB,CAAC;KACxE;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,kFAAmF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/lib/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,CAAC,kDAAkD,EAAE,iBAAiB,CAAU,CAAC"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @see https://perfectionist.dev/guide/getting-started#settings
|
|
4
4
|
*/
|
|
5
5
|
export declare const PERFECTIONIST_SETTINGS: {
|
|
6
|
-
ignoreCase:
|
|
7
|
-
type:
|
|
6
|
+
readonly ignoreCase: true;
|
|
7
|
+
readonly type: "natural";
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* While the sorting of imports is done by `eslint-plugin-perfectionist/sort-imports`,
|
|
@@ -12,7 +12,7 @@ export declare const PERFECTIONIST_SETTINGS: {
|
|
|
12
12
|
* as it feels more natural.
|
|
13
13
|
* The following group names are available for configuration: https://eslint-plugin-perfectionist.azat.io/rules/sort-imports#groups
|
|
14
14
|
*/
|
|
15
|
-
export declare const SORT_IMPORTS_GROUPS:
|
|
15
|
+
export declare const SORT_IMPORTS_GROUPS: [["value-builtin", "named-type-builtin"], ["value-external", "named-type-external"], ["value-internal", "named-type-internal"], ["value-parent", "named-type-parent"], ["value-sibling", "named-type-sibling"], ["value-index", "named-type-index"], "value-style", ["value-side-effect-style", "value-side-effect"], "value-ts-equals-import", "unknown"];
|
|
16
16
|
/**
|
|
17
17
|
* This is the the default groups configuration of all the recommended configs by eslint-plugin-perfectionist.
|
|
18
18
|
* This array can be used to reconfigure some options of the perfectionist/sort-classes rule without
|
|
@@ -21,10 +21,10 @@ export declare const SORT_IMPORTS_GROUPS: (string | string[])[];
|
|
|
21
21
|
* - https://eslint-plugin-perfectionist.azat.io/rules/sort-classes#groups
|
|
22
22
|
* - https://github.com/azat-io/eslint-plugin-perfectionist/blob/main/index.ts#L61
|
|
23
23
|
*/
|
|
24
|
-
export declare const SORT_CLASSES_GROUPS:
|
|
24
|
+
export declare const SORT_CLASSES_GROUPS: ["index-signature", ["static-property", "static-accessor-property"], ["static-get-method", "static-set-method"], ["protected-static-property", "protected-static-accessor-property"], ["protected-static-get-method", "protected-static-set-method"], ["private-static-property", "private-static-accessor-property"], ["private-static-get-method", "private-static-set-method"], "static-block", ["property", "accessor-property"], ["get-method", "set-method"], ["protected-property", "protected-accessor-property"], ["protected-get-method", "protected-set-method"], ["private-property", "private-accessor-property"], ["private-get-method", "private-set-method"], "constructor", ["static-method", "static-function-property"], ["protected-static-method", "protected-static-function-property"], ["private-static-method", "private-static-function-property"], ["method", "function-property"], ["protected-method", "protected-function-property"], ["private-method", "private-function-property"], "unknown"];
|
|
25
25
|
/**
|
|
26
26
|
* Customized configuration to configure the perfectionist/sort-intersection-types rule.
|
|
27
27
|
* The following group names are available for configuration: https://perfectionist.dev/rules/sort-intersection-types#groups
|
|
28
28
|
*/
|
|
29
|
-
export declare const SORT_INTERSECTION_TYPES_GROUPS:
|
|
29
|
+
export declare const SORT_INTERSECTION_TYPES_GROUPS: ["conditional", "function", "import", "intersection", "union", "named", "keyword", "literal", "operator", "tuple", "object", "nullish", "unknown"];
|
|
30
30
|
//# sourceMappingURL=eslint-plugin-perfectionist.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-plugin-perfectionist.d.ts","sourceRoot":"","sources":["../../../src/lib/eslint-plugin-perfectionist.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"eslint-plugin-perfectionist.d.ts","sourceRoot":"","sources":["../../../src/lib/eslint-plugin-perfectionist.ts"],"names":[],"mappings":"AAsDA;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;CAGF,CAAC;AAElC;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,4VAWyB,CAAC;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,i+BAuByB,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,8BAA8B,oJAcwB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SORT_INTERSECTION_TYPES_GROUPS = exports.SORT_CLASSES_GROUPS = exports.SORT_IMPORTS_GROUPS = exports.PERFECTIONIST_SETTINGS = void 0;
|
|
4
|
+
/* eslint-enable @typescript-eslint/no-duplicate-type-constituents */
|
|
4
5
|
/**
|
|
5
6
|
* Opinionated 'default' settings for eslint-plugin-perfectionist.
|
|
6
7
|
* @see https://perfectionist.dev/guide/getting-started#settings
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-plugin-perfectionist.js","sourceRoot":"","sources":["../../../src/lib/eslint-plugin-perfectionist.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"eslint-plugin-perfectionist.js","sourceRoot":"","sources":["../../../src/lib/eslint-plugin-perfectionist.ts"],"names":[],"mappings":";;;AAoDA,qEAAqE;AAErE;;;GAGG;AACU,QAAA,sBAAsB,GAAG;IACpC,UAAU,EAAE,IAAI;IAChB,IAAI,EAAE,SAAS;CACgB,CAAC;AAElC;;;;;GAKG;AACU,QAAA,mBAAmB,GAAG;IACjC,CAAC,eAAe,EAAE,oBAAoB,CAAC;IACvC,CAAC,gBAAgB,EAAE,qBAAqB,CAAC;IACzC,CAAC,gBAAgB,EAAE,qBAAqB,CAAC;IACzC,CAAC,cAAc,EAAE,mBAAmB,CAAC;IACrC,CAAC,eAAe,EAAE,oBAAoB,CAAC;IACvC,CAAC,aAAa,EAAE,kBAAkB,CAAC;IACnC,aAAa;IACb,CAAC,yBAAyB,EAAE,mBAAmB,CAAC;IAChD,wBAAwB;IACxB,SAAS;CAC8C,CAAC;AAE1D;;;;;;;GAOG;AACU,QAAA,mBAAmB,GAAG;IACjC,iBAAiB;IACjB,CAAC,iBAAiB,EAAE,0BAA0B,CAAC;IAC/C,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAC1C,CAAC,2BAA2B,EAAE,oCAAoC,CAAC;IACnE,CAAC,6BAA6B,EAAE,6BAA6B,CAAC;IAC9D,CAAC,yBAAyB,EAAE,kCAAkC,CAAC;IAC/D,CAAC,2BAA2B,EAAE,2BAA2B,CAAC;IAC1D,cAAc;IACd,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACjC,CAAC,YAAY,EAAE,YAAY,CAAC;IAC5B,CAAC,oBAAoB,EAAE,6BAA6B,CAAC;IACrD,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;IAChD,CAAC,kBAAkB,EAAE,2BAA2B,CAAC;IACjD,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAC5C,aAAa;IACb,CAAC,eAAe,EAAE,0BAA0B,CAAC;IAC7C,CAAC,yBAAyB,EAAE,oCAAoC,CAAC;IACjE,CAAC,uBAAuB,EAAE,kCAAkC,CAAC;IAC7D,CAAC,QAAQ,EAAE,mBAAmB,CAAC;IAC/B,CAAC,kBAAkB,EAAE,6BAA6B,CAAC;IACnD,CAAC,gBAAgB,EAAE,2BAA2B,CAAC;IAC/C,SAAS;CAC8C,CAAC;AAE1D;;;GAGG;AACU,QAAA,8BAA8B,GAAG;IAC5C,aAAa;IACb,UAAU;IACV,QAAQ;IACR,cAAc;IACd,OAAO;IACP,OAAO;IACP,SAAS;IACT,SAAS;IACT,UAAU;IACV,OAAO;IACP,QAAQ;IACR,SAAS;IACT,SAAS;CACwD,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @param {string} [ignoreFilePath='.gitignore'] - The path to the ignore file. Defaults to `.gitignore`.
|
|
5
5
|
* @throws {TypeError} If the provided path is not a string.
|
|
6
6
|
* @throws {Error} If the provided path is an empty string.
|
|
7
|
-
* @returns {import('@eslint/
|
|
7
|
+
* @returns {import('@eslint/config-helpers').FlatConfig} The result of including the ignore file at the resolved absolute path.
|
|
8
8
|
*/
|
|
9
|
-
export declare const includeIgnoreFile: (ignoreFilePath?: string) => import("@eslint/
|
|
9
|
+
export declare const includeIgnoreFile: (ignoreFilePath?: string) => import("@eslint/config-helpers").Config;
|
|
10
10
|
//# sourceMappingURL=include-ignore-file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"include-ignore-file.d.ts","sourceRoot":"","sources":["../../../src/lib/include-ignore-file.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAAI,uBAA6B,
|
|
1
|
+
{"version":3,"file":"include-ignore-file.d.ts","sourceRoot":"","sources":["../../../src/lib/include-ignore-file.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAAI,uBAA6B,4CAW9D,CAAC"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.includeIgnoreFile = void 0;
|
|
4
|
-
const node_path_1 = require("node:path");
|
|
7
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
5
8
|
const node_process_1 = require("node:process");
|
|
6
|
-
const
|
|
9
|
+
const config_helpers_1 = require("@eslint/config-helpers");
|
|
7
10
|
/**
|
|
8
11
|
* Reads an ignore file (e.g. `.gitignore`) and returns an object with the ignore patterns.
|
|
9
12
|
*
|
|
10
13
|
* @param {string} [ignoreFilePath='.gitignore'] - The path to the ignore file. Defaults to `.gitignore`.
|
|
11
14
|
* @throws {TypeError} If the provided path is not a string.
|
|
12
15
|
* @throws {Error} If the provided path is an empty string.
|
|
13
|
-
* @returns {import('@eslint/
|
|
16
|
+
* @returns {import('@eslint/config-helpers').FlatConfig} The result of including the ignore file at the resolved absolute path.
|
|
14
17
|
*/
|
|
15
18
|
const includeIgnoreFile = (ignoreFilePath = '.gitignore') => {
|
|
16
19
|
if (typeof ignoreFilePath !== 'string') {
|
|
@@ -20,7 +23,7 @@ const includeIgnoreFile = (ignoreFilePath = '.gitignore') => {
|
|
|
20
23
|
throw new Error('Expected a non-empty string');
|
|
21
24
|
}
|
|
22
25
|
const absolutePath = node_path_1.default.resolve((0, node_process_1.cwd)(), ignoreFilePath);
|
|
23
|
-
return (0,
|
|
26
|
+
return (0, config_helpers_1.includeIgnoreFile)(absolutePath);
|
|
24
27
|
};
|
|
25
28
|
exports.includeIgnoreFile = includeIgnoreFile;
|
|
26
29
|
//# sourceMappingURL=include-ignore-file.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"include-ignore-file.js","sourceRoot":"","sources":["../../../src/lib/include-ignore-file.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"include-ignore-file.js","sourceRoot":"","sources":["../../../src/lib/include-ignore-file.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA6B;AAC7B,+CAAmC;AACnC,2DAAwF;AAExF;;;;;;;GAOG;AACI,MAAM,iBAAiB,GAAG,CAAC,cAAc,GAAG,YAAY,EAAE,EAAE;IACjE,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE,CAAC;QACvC,MAAM,IAAI,SAAS,CAAC,mBAAmB,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,cAAc,KAAK,EAAE,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,YAAY,GAAG,mBAAI,CAAC,OAAO,CAAC,IAAA,kBAAG,GAAE,EAAE,cAAc,CAAC,CAAC;IACzD,OAAO,IAAA,kCAAyB,EAAC,YAAY,CAAC,CAAC;AACjD,CAAC,CAAC;AAXW,QAAA,iBAAiB,qBAW5B"}
|
package/dist/cjs/main.d.ts
CHANGED
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { includeIgnoreFile } from './lib/include-ignore-file.js';
|
|
2
|
+
declare const configs: {
|
|
3
|
+
base: import("eslint/config").Config[];
|
|
4
|
+
experimentalNamingConvention: import("eslint/config").Config[];
|
|
5
|
+
local: import("eslint/config").Config[];
|
|
6
|
+
nextjs: import("eslint/config").Config[];
|
|
7
|
+
playwright: import("eslint/config").Config[];
|
|
8
|
+
prettierDisable: import("eslint/config").Config[];
|
|
9
|
+
react: import("eslint/config").Config[];
|
|
10
|
+
strict: import("eslint/config").Config[];
|
|
10
11
|
};
|
|
11
|
-
export { includeIgnoreFile }
|
|
12
|
-
declare const
|
|
13
|
-
configs:
|
|
14
|
-
|
|
15
|
-
experimentalNamingConvention: import("@eslint/config-helpers").Config[];
|
|
16
|
-
local: import("@eslint/config-helpers").Config[];
|
|
17
|
-
nextjs: import("@eslint/config-helpers").Config[];
|
|
18
|
-
playwright: import("@eslint/config-helpers").Config[];
|
|
19
|
-
prettierDisable: import("@eslint/config-helpers").Config[];
|
|
20
|
-
react: import("@eslint/config-helpers").Config[];
|
|
21
|
-
strict: import("@eslint/config-helpers").Config[];
|
|
22
|
-
};
|
|
23
|
-
includeIgnoreFile: (ignoreFilePath?: string) => import("@eslint/core").ConfigObject<import("@eslint/core").RulesConfig>;
|
|
12
|
+
export { configs, includeIgnoreFile };
|
|
13
|
+
declare const defaultExport: {
|
|
14
|
+
configs: typeof configs;
|
|
15
|
+
includeIgnoreFile: typeof includeIgnoreFile;
|
|
24
16
|
};
|
|
25
|
-
export default
|
|
17
|
+
export default defaultExport;
|
|
26
18
|
//# sourceMappingURL=main.d.ts.map
|
package/dist/cjs/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEjE,QAAA,MAAM,OAAO;;;;;;;;;CASZ,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAEtC,QAAA,MAAM,aAAa,EAAE;IAAE,OAAO,EAAE,OAAO,OAAO,CAAC;IAAC,iBAAiB,EAAE,OAAO,iBAAiB,CAAA;CAG1F,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/dist/cjs/main.js
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.includeIgnoreFile = exports.configs = void 0;
|
|
4
|
-
const base_js_1 = require("./configs/base.js");
|
|
5
|
-
const experimental_naming_convention_js_1 = require("./configs/experimental-naming-convention.js");
|
|
6
|
-
const local_js_1 = require("./configs/local.js");
|
|
7
|
-
const nextjs_js_1 = require("./configs/nextjs.js");
|
|
8
|
-
const playwright_js_1 = require("./configs/playwright.js");
|
|
9
|
-
const prettier_disable_js_1 = require("./configs/prettier-disable.js");
|
|
10
|
-
const react_js_1 = require("./configs/react.js");
|
|
11
|
-
const strict_js_1 = require("./configs/strict.js");
|
|
7
|
+
const base_js_1 = __importDefault(require("./configs/base.js"));
|
|
8
|
+
const experimental_naming_convention_js_1 = __importDefault(require("./configs/experimental-naming-convention.js"));
|
|
9
|
+
const local_js_1 = __importDefault(require("./configs/local.js"));
|
|
10
|
+
const nextjs_js_1 = __importDefault(require("./configs/nextjs.js"));
|
|
11
|
+
const playwright_js_1 = __importDefault(require("./configs/playwright.js"));
|
|
12
|
+
const prettier_disable_js_1 = __importDefault(require("./configs/prettier-disable.js"));
|
|
13
|
+
const react_js_1 = __importDefault(require("./configs/react.js"));
|
|
14
|
+
const strict_js_1 = __importDefault(require("./configs/strict.js"));
|
|
12
15
|
const include_ignore_file_js_1 = require("./lib/include-ignore-file.js");
|
|
13
|
-
exports.
|
|
16
|
+
Object.defineProperty(exports, "includeIgnoreFile", { enumerable: true, get: function () { return include_ignore_file_js_1.includeIgnoreFile; } });
|
|
17
|
+
const configs = {
|
|
14
18
|
base: base_js_1.default,
|
|
15
19
|
experimentalNamingConvention: experimental_naming_convention_js_1.default,
|
|
16
20
|
local: local_js_1.default,
|
|
@@ -20,10 +24,10 @@ exports.configs = {
|
|
|
20
24
|
react: react_js_1.default,
|
|
21
25
|
strict: strict_js_1.default,
|
|
22
26
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
configs: exports.configs,
|
|
27
|
+
exports.configs = configs;
|
|
28
|
+
const defaultExport = {
|
|
29
|
+
configs,
|
|
27
30
|
includeIgnoreFile: include_ignore_file_js_1.includeIgnoreFile,
|
|
28
31
|
};
|
|
32
|
+
exports.default = defaultExport;
|
|
29
33
|
//# sourceMappingURL=main.js.map
|
package/dist/cjs/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AACrC,oHAAuF;AACvF,kEAAuC;AACvC,oEAAyC;AACzC,4EAAiD;AACjD,wFAA4D;AAC5D,kEAAuC;AACvC,oEAAyC;AACzC,yEAAiE;AAa/C,kGAbT,0CAAiB,OAaS;AAXnC,MAAM,OAAO,GAAG;IACd,IAAI,EAAJ,iBAAI;IACJ,4BAA4B,EAA5B,2CAA4B;IAC5B,KAAK,EAAL,kBAAK;IACL,MAAM,EAAN,mBAAM;IACN,UAAU,EAAV,uBAAU;IACV,eAAe,EAAf,6BAAe;IACf,KAAK,EAAL,kBAAK;IACL,MAAM,EAAN,mBAAM;CACP,CAAC;AAEO,0BAAO;AAEhB,MAAM,aAAa,GAA6E;IAC9F,OAAO;IACP,iBAAiB,EAAjB,0CAAiB;CAClB,CAAC;AAEF,kBAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/configs/base.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/configs/base.ts"],"names":[],"mappings":";AAcA,wBA+IE"}
|
package/dist/esm/configs/base.js
CHANGED
|
@@ -4,6 +4,7 @@ import perfectionist from 'eslint-plugin-perfectionist';
|
|
|
4
4
|
import { configs as sonarjsConfigs } from 'eslint-plugin-sonarjs';
|
|
5
5
|
import { defineConfig } from 'eslint/config';
|
|
6
6
|
import tseslint from 'typescript-eslint';
|
|
7
|
+
import { TEST_FILE_GLOBS } from '../lib/constants.js';
|
|
7
8
|
import { PERFECTIONIST_SETTINGS, SORT_CLASSES_GROUPS, SORT_IMPORTS_GROUPS, SORT_INTERSECTION_TYPES_GROUPS, } from '../lib/eslint-plugin-perfectionist.js';
|
|
8
9
|
export default defineConfig(eslint.configs.recommended, tseslint.configs.recommendedTypeChecked, tseslint.configs.stylisticTypeChecked, importPlugin.flatConfigs.recommended, importPlugin.flatConfigs.typescript, perfectionist.configs['recommended-natural'], sonarjsConfigs.recommended, {
|
|
9
10
|
languageOptions: {
|
|
@@ -103,6 +104,10 @@ export default defineConfig(eslint.configs.recommended, tseslint.configs.recomme
|
|
|
103
104
|
partitionByComment: true,
|
|
104
105
|
},
|
|
105
106
|
],
|
|
107
|
+
// eslint-plugin-sonarjs: https://github.com/SonarSource/SonarJS/blob/master/packages/analysis/src/jsts/rules/README.md
|
|
108
|
+
'sonarjs/deprecation': 'off', // disable rule in favor of @typescript-eslint/no-deprecated
|
|
109
|
+
'sonarjs/no-unused-vars': 'off', // disabled due to overlap with @typescript-eslint/no-unused-vars
|
|
110
|
+
'sonarjs/todo-tag': 'warn',
|
|
106
111
|
},
|
|
107
112
|
settings: {
|
|
108
113
|
'import/resolver': {
|
|
@@ -115,11 +120,18 @@ export default defineConfig(eslint.configs.recommended, tseslint.configs.recomme
|
|
|
115
120
|
}, {
|
|
116
121
|
files: [
|
|
117
122
|
'**/*.d.ts', // TypeScript declaration files
|
|
118
|
-
|
|
123
|
+
...TEST_FILE_GLOBS,
|
|
119
124
|
'./*.{js,cjs,mjs,ts,cts,mts}', // Mostly configuration files on root level
|
|
120
125
|
],
|
|
121
126
|
rules: {
|
|
122
127
|
'import/no-unused-modules': 'off',
|
|
123
128
|
},
|
|
129
|
+
}, {
|
|
130
|
+
files: [...TEST_FILE_GLOBS],
|
|
131
|
+
rules: {
|
|
132
|
+
// eslint-plugin-sonarjs: https://github.com/SonarSource/SonarJS/blob/master/packages/analysis/src/jsts/rules/README.md
|
|
133
|
+
'sonarjs/no-duplicate-string': 'off',
|
|
134
|
+
'sonarjs/slow-regex': 'off',
|
|
135
|
+
},
|
|
124
136
|
});
|
|
125
137
|
//# sourceMappingURL=base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/configs/base.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,YAAY,CAAC;AAChC,OAAO,YAAY,MAAM,sBAAsB,CAAC;AAChD,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,EACL,sBAAsB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aAC5B;SACF;QACD,4BAA4B,EAAE;YAC5B,OAAO;YACP;gBACE,MAAM,EAAE,mBAAmB;gBAC3B,eAAe,EAAE,CAAC,EAAE,yCAAyC;aAC9D;SACF;QACD,uCAAuC,EAAE;YACvC,OAAO;YACP;gBACE,MAAM,EAAE,8BAA8B;aACvC;SACF;QACD,kCAAkC,EAAE;YAClC,OAAO;YACP;gBACE,WAAW,EAAE,IAAI;aAClB;SACF;QACD,4BAA4B,EAAE;YAC5B,OAAO;YACP;gBACE,kBAAkB,EAAE,IAAI;aACzB;SACF;QAED,uHAAuH;QACvH,qBAAqB,EAAE,KAAK,EAAE,4DAA4D;QAC1F,wBAAwB,EAAE,KAAK,EAAE,iEAAiE;QAClG,kBAAkB,EAAE,MAAM;KAC3B;IACD,QAAQ,EAAE;QACR,iBAAiB,EAAE;YACjB,UAAU,EAAE,IAAI;SACjB;QACD,aAAa,EAAE;YACb,GAAG,sBAAsB;SAC1B;KACF;CACF,EACD;IACE,KAAK,EAAE;QACL,WAAW,EAAE,+BAA+B;QAC5C,GAAG,eAAe;QAClB,6BAA6B,EAAE,2CAA2C;KAC3E;IACD,KAAK,EAAE;QACL,0BAA0B,EAAE,KAAK;KAClC;CACF,EACD;IACE,KAAK,EAAE,CAAC,GAAG,eAAe,CAAC;IAC3B,KAAK,EAAE;QACL,uHAAuH;QACvH,6BAA6B,EAAE,KAAK;QACpC,oBAAoB,EAAE,KAAK;KAC5B;CACF,CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playwright.d.ts","sourceRoot":"","sources":["../../../src/configs/playwright.ts"],"names":[],"mappings":";AAWA,
|
|
1
|
+
{"version":3,"file":"playwright.d.ts","sourceRoot":"","sources":["../../../src/configs/playwright.ts"],"names":[],"mappings":";AAWA,wBA0BG"}
|
|
@@ -21,6 +21,9 @@ export default defineConfig({
|
|
|
21
21
|
'playwright/prefer-to-be': 'error',
|
|
22
22
|
'playwright/prefer-to-have-length': 'error',
|
|
23
23
|
'playwright/require-top-level-describe': 'error',
|
|
24
|
+
// eslint-plugin-sonarjs: https://github.com/SonarSource/SonarJS/blob/master/packages/analysis/src/jsts/rules/README.md
|
|
25
|
+
'sonarjs/no-duplicate-string': 'off',
|
|
26
|
+
'sonarjs/slow-regex': 'off',
|
|
24
27
|
},
|
|
25
28
|
});
|
|
26
29
|
//# sourceMappingURL=playwright.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playwright.js","sourceRoot":"","sources":["../../../src/configs/playwright.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,gBAAgB,GAAG,UAMxB,CAAC;AAEF,eAAe,YAAY,CAAC;IAC1B,GAAG,gBAAgB,CAAC,OAAO,CAAC,kBAAkB,CAAC;IAC/C,KAAK,EAAE;QACL;;;;;;;;;;WAUG;QACH,mCAAmC,EAAE,KAAK;QAE1C,6FAA6F;QAC7F,GAAG,gBAAgB,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,KAAK;QACrD,yBAAyB,EAAE,OAAO;QAClC,kCAAkC,EAAE,OAAO;QAC3C,uCAAuC,EAAE,OAAO;
|
|
1
|
+
{"version":3,"file":"playwright.js","sourceRoot":"","sources":["../../../src/configs/playwright.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,gBAAgB,GAAG,UAMxB,CAAC;AAEF,eAAe,YAAY,CAAC;IAC1B,GAAG,gBAAgB,CAAC,OAAO,CAAC,kBAAkB,CAAC;IAC/C,KAAK,EAAE;QACL;;;;;;;;;;WAUG;QACH,mCAAmC,EAAE,KAAK;QAE1C,6FAA6F;QAC7F,GAAG,gBAAgB,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,KAAK;QACrD,yBAAyB,EAAE,OAAO;QAClC,kCAAkC,EAAE,OAAO;QAC3C,uCAAuC,EAAE,OAAO;QAEhD,uHAAuH;QACvH,6BAA6B,EAAE,KAAK;QACpC,oBAAoB,EAAE,KAAK;KAC5B;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import jsxA11y from 'eslint-plugin-jsx-a11y';
|
|
2
2
|
import react from 'eslint-plugin-react';
|
|
3
3
|
import reactHooks from 'eslint-plugin-react-hooks';
|
|
4
|
-
import reactRefresh from 'eslint-plugin-react-refresh';
|
|
4
|
+
import { reactRefresh } from 'eslint-plugin-react-refresh';
|
|
5
5
|
import { defineConfig } from 'eslint/config';
|
|
6
6
|
import globals from 'globals';
|
|
7
7
|
import { PERFECTIONIST_SETTINGS, SORT_IMPORTS_GROUPS } from '../lib/eslint-plugin-perfectionist.js';
|
|
@@ -14,7 +14,7 @@ const reactJsxRuntimeConfig = react.configs.flat['jsx-runtime'];
|
|
|
14
14
|
if (!reactJsxRuntimeConfig) {
|
|
15
15
|
throw new Error('Expected to find the "flat/jsx-runtime" configuration in the eslint-plugin-react plugin, but it was not found.');
|
|
16
16
|
}
|
|
17
|
-
export default defineConfig(...base, jsxA11y.flatConfigs.recommended, reactRecommendedConfig, reactJsxRuntimeConfig, reactRefresh.configs.recommended, {
|
|
17
|
+
export default defineConfig(...base, jsxA11y.flatConfigs.recommended, reactRecommendedConfig, reactJsxRuntimeConfig, reactRefresh.configs.recommended(), {
|
|
18
18
|
languageOptions: {
|
|
19
19
|
globals: {
|
|
20
20
|
...globals.browser,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.js","sourceRoot":"","sources":["../../../src/configs/react.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,wBAAwB,CAAC;AAC7C,OAAO,KAAK,MAAM,qBAAqB,CAAC;AACxC,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,YAAY,MAAM,6BAA6B,CAAC;
|
|
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AAsB;SAC1B;QACD,KAAK,EAAE;YACL,OAAO,EAAE,QAAQ;SAClB;KACF;CACF,CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,kFAAmF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,kDAAkD,EAAE,iBAAiB,CAAU,CAAC"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @see https://perfectionist.dev/guide/getting-started#settings
|
|
4
4
|
*/
|
|
5
5
|
export declare const PERFECTIONIST_SETTINGS: {
|
|
6
|
-
ignoreCase:
|
|
7
|
-
type:
|
|
6
|
+
readonly ignoreCase: true;
|
|
7
|
+
readonly type: "natural";
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* While the sorting of imports is done by `eslint-plugin-perfectionist/sort-imports`,
|
|
@@ -12,7 +12,7 @@ export declare const PERFECTIONIST_SETTINGS: {
|
|
|
12
12
|
* as it feels more natural.
|
|
13
13
|
* The following group names are available for configuration: https://eslint-plugin-perfectionist.azat.io/rules/sort-imports#groups
|
|
14
14
|
*/
|
|
15
|
-
export declare const SORT_IMPORTS_GROUPS:
|
|
15
|
+
export declare const SORT_IMPORTS_GROUPS: [["value-builtin", "named-type-builtin"], ["value-external", "named-type-external"], ["value-internal", "named-type-internal"], ["value-parent", "named-type-parent"], ["value-sibling", "named-type-sibling"], ["value-index", "named-type-index"], "value-style", ["value-side-effect-style", "value-side-effect"], "value-ts-equals-import", "unknown"];
|
|
16
16
|
/**
|
|
17
17
|
* This is the the default groups configuration of all the recommended configs by eslint-plugin-perfectionist.
|
|
18
18
|
* This array can be used to reconfigure some options of the perfectionist/sort-classes rule without
|
|
@@ -21,10 +21,10 @@ export declare const SORT_IMPORTS_GROUPS: (string | string[])[];
|
|
|
21
21
|
* - https://eslint-plugin-perfectionist.azat.io/rules/sort-classes#groups
|
|
22
22
|
* - https://github.com/azat-io/eslint-plugin-perfectionist/blob/main/index.ts#L61
|
|
23
23
|
*/
|
|
24
|
-
export declare const SORT_CLASSES_GROUPS:
|
|
24
|
+
export declare const SORT_CLASSES_GROUPS: ["index-signature", ["static-property", "static-accessor-property"], ["static-get-method", "static-set-method"], ["protected-static-property", "protected-static-accessor-property"], ["protected-static-get-method", "protected-static-set-method"], ["private-static-property", "private-static-accessor-property"], ["private-static-get-method", "private-static-set-method"], "static-block", ["property", "accessor-property"], ["get-method", "set-method"], ["protected-property", "protected-accessor-property"], ["protected-get-method", "protected-set-method"], ["private-property", "private-accessor-property"], ["private-get-method", "private-set-method"], "constructor", ["static-method", "static-function-property"], ["protected-static-method", "protected-static-function-property"], ["private-static-method", "private-static-function-property"], ["method", "function-property"], ["protected-method", "protected-function-property"], ["private-method", "private-function-property"], "unknown"];
|
|
25
25
|
/**
|
|
26
26
|
* Customized configuration to configure the perfectionist/sort-intersection-types rule.
|
|
27
27
|
* The following group names are available for configuration: https://perfectionist.dev/rules/sort-intersection-types#groups
|
|
28
28
|
*/
|
|
29
|
-
export declare const SORT_INTERSECTION_TYPES_GROUPS:
|
|
29
|
+
export declare const SORT_INTERSECTION_TYPES_GROUPS: ["conditional", "function", "import", "intersection", "union", "named", "keyword", "literal", "operator", "tuple", "object", "nullish", "unknown"];
|
|
30
30
|
//# sourceMappingURL=eslint-plugin-perfectionist.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-plugin-perfectionist.d.ts","sourceRoot":"","sources":["../../../src/lib/eslint-plugin-perfectionist.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"eslint-plugin-perfectionist.d.ts","sourceRoot":"","sources":["../../../src/lib/eslint-plugin-perfectionist.ts"],"names":[],"mappings":"AAsDA;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;CAGF,CAAC;AAElC;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,4VAWyB,CAAC;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,i+BAuByB,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,8BAA8B,oJAcwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-plugin-perfectionist.js","sourceRoot":"","sources":["../../../src/lib/eslint-plugin-perfectionist.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"eslint-plugin-perfectionist.js","sourceRoot":"","sources":["../../../src/lib/eslint-plugin-perfectionist.ts"],"names":[],"mappings":"AAoDA,qEAAqE;AAErE;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,UAAU,EAAE,IAAI;IAChB,IAAI,EAAE,SAAS;CACgB,CAAC;AAElC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,CAAC,eAAe,EAAE,oBAAoB,CAAC;IACvC,CAAC,gBAAgB,EAAE,qBAAqB,CAAC;IACzC,CAAC,gBAAgB,EAAE,qBAAqB,CAAC;IACzC,CAAC,cAAc,EAAE,mBAAmB,CAAC;IACrC,CAAC,eAAe,EAAE,oBAAoB,CAAC;IACvC,CAAC,aAAa,EAAE,kBAAkB,CAAC;IACnC,aAAa;IACb,CAAC,yBAAyB,EAAE,mBAAmB,CAAC;IAChD,wBAAwB;IACxB,SAAS;CAC8C,CAAC;AAE1D;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,iBAAiB;IACjB,CAAC,iBAAiB,EAAE,0BAA0B,CAAC;IAC/C,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IAC1C,CAAC,2BAA2B,EAAE,oCAAoC,CAAC;IACnE,CAAC,6BAA6B,EAAE,6BAA6B,CAAC;IAC9D,CAAC,yBAAyB,EAAE,kCAAkC,CAAC;IAC/D,CAAC,2BAA2B,EAAE,2BAA2B,CAAC;IAC1D,cAAc;IACd,CAAC,UAAU,EAAE,mBAAmB,CAAC;IACjC,CAAC,YAAY,EAAE,YAAY,CAAC;IAC5B,CAAC,oBAAoB,EAAE,6BAA6B,CAAC;IACrD,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;IAChD,CAAC,kBAAkB,EAAE,2BAA2B,CAAC;IACjD,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAC5C,aAAa;IACb,CAAC,eAAe,EAAE,0BAA0B,CAAC;IAC7C,CAAC,yBAAyB,EAAE,oCAAoC,CAAC;IACjE,CAAC,uBAAuB,EAAE,kCAAkC,CAAC;IAC7D,CAAC,QAAQ,EAAE,mBAAmB,CAAC;IAC/B,CAAC,kBAAkB,EAAE,6BAA6B,CAAC;IACnD,CAAC,gBAAgB,EAAE,2BAA2B,CAAC;IAC/C,SAAS;CAC8C,CAAC;AAE1D;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,aAAa;IACb,UAAU;IACV,QAAQ;IACR,cAAc;IACd,OAAO;IACP,OAAO;IACP,SAAS;IACT,SAAS;IACT,UAAU;IACV,OAAO;IACP,QAAQ;IACR,SAAS;IACT,SAAS;CACwD,CAAC"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @param {string} [ignoreFilePath='.gitignore'] - The path to the ignore file. Defaults to `.gitignore`.
|
|
5
5
|
* @throws {TypeError} If the provided path is not a string.
|
|
6
6
|
* @throws {Error} If the provided path is an empty string.
|
|
7
|
-
* @returns {import('@eslint/
|
|
7
|
+
* @returns {import('@eslint/config-helpers').FlatConfig} The result of including the ignore file at the resolved absolute path.
|
|
8
8
|
*/
|
|
9
|
-
export declare const includeIgnoreFile: (ignoreFilePath?: string) => import("@eslint/
|
|
9
|
+
export declare const includeIgnoreFile: (ignoreFilePath?: string) => import("@eslint/config-helpers").Config;
|
|
10
10
|
//# sourceMappingURL=include-ignore-file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"include-ignore-file.d.ts","sourceRoot":"","sources":["../../../src/lib/include-ignore-file.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAAI,uBAA6B,
|
|
1
|
+
{"version":3,"file":"include-ignore-file.d.ts","sourceRoot":"","sources":["../../../src/lib/include-ignore-file.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,GAAI,uBAA6B,4CAW9D,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import path from 'node:path';
|
|
2
2
|
import { cwd } from 'node:process';
|
|
3
|
-
import { includeIgnoreFile as includeIgnoreFileAbsolute } from '@eslint/
|
|
3
|
+
import { includeIgnoreFile as includeIgnoreFileAbsolute } from '@eslint/config-helpers';
|
|
4
4
|
/**
|
|
5
5
|
* Reads an ignore file (e.g. `.gitignore`) and returns an object with the ignore patterns.
|
|
6
6
|
*
|
|
7
7
|
* @param {string} [ignoreFilePath='.gitignore'] - The path to the ignore file. Defaults to `.gitignore`.
|
|
8
8
|
* @throws {TypeError} If the provided path is not a string.
|
|
9
9
|
* @throws {Error} If the provided path is an empty string.
|
|
10
|
-
* @returns {import('@eslint/
|
|
10
|
+
* @returns {import('@eslint/config-helpers').FlatConfig} The result of including the ignore file at the resolved absolute path.
|
|
11
11
|
*/
|
|
12
12
|
export const includeIgnoreFile = (ignoreFilePath = '.gitignore') => {
|
|
13
13
|
if (typeof ignoreFilePath !== 'string') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"include-ignore-file.js","sourceRoot":"","sources":["../../../src/lib/include-ignore-file.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,iBAAiB,IAAI,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"include-ignore-file.js","sourceRoot":"","sources":["../../../src/lib/include-ignore-file.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,iBAAiB,IAAI,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAExF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,cAAc,GAAG,YAAY,EAAE,EAAE;IACjE,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE,CAAC;QACvC,MAAM,IAAI,SAAS,CAAC,mBAAmB,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,cAAc,KAAK,EAAE,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACjD,CAAC;IAED,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,cAAc,CAAC,CAAC;IACzD,OAAO,yBAAyB,CAAC,YAAY,CAAC,CAAC;AACjD,CAAC,CAAC"}
|
package/dist/esm/main.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { includeIgnoreFile } from './lib/include-ignore-file.js';
|
|
2
|
+
declare const configs: {
|
|
2
3
|
base: import("eslint/config").Config[];
|
|
3
4
|
experimentalNamingConvention: import("eslint/config").Config[];
|
|
4
5
|
local: import("eslint/config").Config[];
|
|
@@ -8,19 +9,10 @@ export declare const configs: {
|
|
|
8
9
|
react: import("eslint/config").Config[];
|
|
9
10
|
strict: import("eslint/config").Config[];
|
|
10
11
|
};
|
|
11
|
-
export { includeIgnoreFile }
|
|
12
|
-
declare const
|
|
13
|
-
configs:
|
|
14
|
-
|
|
15
|
-
experimentalNamingConvention: import("eslint/config").Config[];
|
|
16
|
-
local: import("eslint/config").Config[];
|
|
17
|
-
nextjs: import("eslint/config").Config[];
|
|
18
|
-
playwright: import("eslint/config").Config[];
|
|
19
|
-
prettierDisable: import("eslint/config").Config[];
|
|
20
|
-
react: import("eslint/config").Config[];
|
|
21
|
-
strict: import("eslint/config").Config[];
|
|
22
|
-
};
|
|
23
|
-
includeIgnoreFile: (ignoreFilePath?: string) => import("@eslint/core").ConfigObject<import("@eslint/core").RulesConfig>;
|
|
12
|
+
export { configs, includeIgnoreFile };
|
|
13
|
+
declare const defaultExport: {
|
|
14
|
+
configs: typeof configs;
|
|
15
|
+
includeIgnoreFile: typeof includeIgnoreFile;
|
|
24
16
|
};
|
|
25
|
-
export default
|
|
17
|
+
export default defaultExport;
|
|
26
18
|
//# sourceMappingURL=main.d.ts.map
|
package/dist/esm/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEjE,QAAA,MAAM,OAAO;;;;;;;;;CASZ,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAEtC,QAAA,MAAM,aAAa,EAAE;IAAE,OAAO,EAAE,OAAO,OAAO,CAAC;IAAC,iBAAiB,EAAE,OAAO,iBAAiB,CAAA;CAG1F,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/dist/esm/main.js
CHANGED
|
@@ -7,7 +7,7 @@ import prettierDisable from './configs/prettier-disable.js';
|
|
|
7
7
|
import react from './configs/react.js';
|
|
8
8
|
import strict from './configs/strict.js';
|
|
9
9
|
import { includeIgnoreFile } from './lib/include-ignore-file.js';
|
|
10
|
-
|
|
10
|
+
const configs = {
|
|
11
11
|
base,
|
|
12
12
|
experimentalNamingConvention,
|
|
13
13
|
local,
|
|
@@ -17,9 +17,10 @@ export const configs = {
|
|
|
17
17
|
react,
|
|
18
18
|
strict,
|
|
19
19
|
};
|
|
20
|
-
export { includeIgnoreFile }
|
|
21
|
-
|
|
20
|
+
export { configs, includeIgnoreFile };
|
|
21
|
+
const defaultExport = {
|
|
22
22
|
configs,
|
|
23
23
|
includeIgnoreFile,
|
|
24
24
|
};
|
|
25
|
+
export default defaultExport;
|
|
25
26
|
//# sourceMappingURL=main.js.map
|
package/dist/esm/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,mBAAmB,CAAC;AACrC,OAAO,4BAA4B,MAAM,6CAA6C,CAAC;AACvF,OAAO,KAAK,MAAM,oBAAoB,CAAC;AACvC,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,MAAM,oBAAoB,CAAC;AACvC,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEjE,MAAM,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,mBAAmB,CAAC;AACrC,OAAO,4BAA4B,MAAM,6CAA6C,CAAC;AACvF,OAAO,KAAK,MAAM,oBAAoB,CAAC;AACvC,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,MAAM,oBAAoB,CAAC;AACvC,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEjE,MAAM,OAAO,GAAG;IACd,IAAI;IACJ,4BAA4B;IAC5B,KAAK;IACL,MAAM;IACN,UAAU;IACV,eAAe;IACf,KAAK;IACL,MAAM;CACP,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAEtC,MAAM,aAAa,GAA6E;IAC9F,OAAO;IACP,iBAAiB;CAClB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boehringer-ingelheim/eslint-config",
|
|
3
|
-
"version": "9.5.0
|
|
3
|
+
"version": "9.5.0",
|
|
4
4
|
"description": "Shared eslint configuration used at Boehringer Ingelheim for code styling",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"boehringer",
|
|
@@ -57,35 +57,36 @@
|
|
|
57
57
|
"eslint": ">= 9.34.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@eslint/
|
|
61
|
-
"@eslint/js": "^9.39.
|
|
62
|
-
"@next/eslint-plugin-next": "^16.
|
|
60
|
+
"@eslint/config-helpers": "^0.6.0",
|
|
61
|
+
"@eslint/js": "^9.39.4",
|
|
62
|
+
"@next/eslint-plugin-next": "^16.2.6",
|
|
63
63
|
"eslint-config-prettier": "^10.1.8",
|
|
64
64
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
65
65
|
"eslint-plugin-import": "^2.32.0",
|
|
66
66
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
67
|
-
"eslint-plugin-perfectionist": "^5.
|
|
68
|
-
"eslint-plugin-playwright": "^2.
|
|
67
|
+
"eslint-plugin-perfectionist": "^5.9.0",
|
|
68
|
+
"eslint-plugin-playwright": "^2.10.2",
|
|
69
69
|
"eslint-plugin-react": "^7.37.5",
|
|
70
|
-
"eslint-plugin-react-hooks": "^7.
|
|
71
|
-
"eslint-plugin-react-refresh": "^0.
|
|
72
|
-
"eslint-plugin-sonarjs": "^
|
|
73
|
-
"globals": "^17.
|
|
70
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
71
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
72
|
+
"eslint-plugin-sonarjs": "^4.0.3",
|
|
73
|
+
"globals": "^17.6.0",
|
|
74
74
|
"is-ci": "^4.1.0",
|
|
75
|
-
"typescript-eslint": "^8.
|
|
75
|
+
"typescript-eslint": "^8.59.3"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@boehringer-ingelheim/prettier-config": "2.0.0",
|
|
79
|
-
"@commitlint/cli": "
|
|
80
|
-
"@commitlint/config-conventional": "
|
|
81
|
-
"@commitlint/types": "
|
|
82
|
-
"@types/eslint-plugin-jsx-a11y": "
|
|
83
|
-
"@types/node": "
|
|
79
|
+
"@commitlint/cli": "21.0.1",
|
|
80
|
+
"@commitlint/config-conventional": "21.0.1",
|
|
81
|
+
"@commitlint/types": "21.0.1",
|
|
82
|
+
"@types/eslint-plugin-jsx-a11y": "6.10.1",
|
|
83
|
+
"@types/node": "24.12.4",
|
|
84
84
|
"dotenv-cli": "11.0.0",
|
|
85
85
|
"husky": "9.1.7",
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
86
|
+
"lint-staged": "17.0.4",
|
|
87
|
+
"prettier": "3.8.3",
|
|
88
|
+
"semantic-release": "25.0.3",
|
|
89
|
+
"typescript": "6.0.3"
|
|
89
90
|
},
|
|
90
91
|
"type": "module"
|
|
91
92
|
}
|