@useinsider/eslint-config 1.9.2 → 1.10.0-beta.10
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/README.md +7 -6
- package/dist/base.d.ts +2 -2
- package/dist/configs/config/index.d.ts +1 -1
- package/dist/configs/javascript/index.d.ts +2 -1
- package/dist/configs/javascript-dom/index.d.ts +1 -1
- package/dist/configs/javascript-node/index.d.ts +1 -1
- package/dist/configs/jest/index.d.ts +1 -1
- package/dist/configs/jsdoc-based-ts/index.d.ts +1 -1
- package/dist/configs/typescript/index.d.ts +1 -1
- package/dist/configs/typescript-dom/index.d.ts +1 -1
- package/dist/configs/typescript-node/index.d.ts +2 -2
- package/dist/configs/vue2/index.d.ts +1 -1
- package/dist/configs/vue2-typescript/index.d.ts +3 -0
- package/dist/configs/vue3/index.d.ts +1 -1
- package/dist/configs/vue3-typescript/index.d.ts +1 -1
- package/dist/index-BTX-Xx3E.js +14 -0
- package/dist/index-BTX-Xx3E.js.map +1 -0
- package/dist/index-BYgw1jEi.js +14 -0
- package/dist/index-BYgw1jEi.js.map +1 -0
- package/dist/index-BfeyRYMe.js +17 -0
- package/dist/index-BfeyRYMe.js.map +1 -0
- package/dist/index-BhIppjjk.cjs +54 -0
- package/dist/index-BhIppjjk.cjs.map +1 -0
- package/dist/index-Bkn0-edz.js +54 -0
- package/dist/index-Bkn0-edz.js.map +1 -0
- package/dist/index-ByJGX90X.cjs +28 -0
- package/dist/index-ByJGX90X.cjs.map +1 -0
- package/dist/index-CDyyy483.js +28 -0
- package/dist/index-CDyyy483.js.map +1 -0
- package/dist/index-CR8V-t6x.js +14 -0
- package/dist/index-CR8V-t6x.js.map +1 -0
- package/dist/index-CjgvrUgK.cjs +14 -0
- package/dist/index-CjgvrUgK.cjs.map +1 -0
- package/dist/index-Cw0lWOha.cjs +14 -0
- package/dist/index-Cw0lWOha.cjs.map +1 -0
- package/dist/index-D-rYWfeI.cjs +28 -0
- package/dist/index-D-rYWfeI.cjs.map +1 -0
- package/dist/index-D4MPQx8Q.cjs +9 -0
- package/dist/index-D4MPQx8Q.cjs.map +1 -0
- package/dist/index-D84g26dl.js +44 -0
- package/dist/index-D84g26dl.js.map +1 -0
- package/dist/index-DCq2un1b.cjs +17 -0
- package/dist/index-DCq2un1b.cjs.map +1 -0
- package/dist/index-DGiWIDAp.cjs +28 -0
- package/dist/index-DGiWIDAp.cjs.map +1 -0
- package/dist/index-DIqcxV_k.js +28 -0
- package/dist/index-DIqcxV_k.js.map +1 -0
- package/dist/index-DJL4a_Kw.js +15 -0
- package/dist/index-DJL4a_Kw.js.map +1 -0
- package/dist/index-DPseTvz6.cjs +10 -0
- package/dist/index-DPseTvz6.cjs.map +1 -0
- package/dist/index-DbPDbm1S.js +10 -0
- package/dist/index-DbPDbm1S.js.map +1 -0
- package/dist/index-DePBHdMb.cjs +15 -0
- package/dist/index-DePBHdMb.cjs.map +1 -0
- package/dist/index-FNO0uAiM.js +9 -0
- package/dist/index-FNO0uAiM.js.map +1 -0
- package/dist/index-PJMgYgcV.cjs +14 -0
- package/dist/index-PJMgYgcV.cjs.map +1 -0
- package/dist/index-g7AwuujJ.js +28 -0
- package/dist/index-g7AwuujJ.js.map +1 -0
- package/dist/index-hIqcylZ1.js +11 -0
- package/dist/index-hIqcylZ1.js.map +1 -0
- package/dist/index-lL8X11Fl.cjs +44 -0
- package/dist/index-lL8X11Fl.cjs.map +1 -0
- package/dist/index-xJXN5s4U.cjs +11 -0
- package/dist/index-xJXN5s4U.cjs.map +1 -0
- package/dist/main.cjs +192 -3
- package/dist/main.cjs.map +1 -0
- package/dist/main.d.ts +3 -2
- package/dist/main.js +142 -164
- package/dist/main.js.map +1 -0
- package/dist/rules/core.d.ts +1 -1
- package/dist/rules/cspell.d.ts +1 -1
- package/dist/rules/importRules.d.ts +1 -1
- package/dist/rules/jsdoc.d.ts +1 -1
- package/dist/rules/stylistic.d.ts +1 -1
- package/dist/rules/typescript.d.ts +1 -1
- package/dist/rules/vue.d.ts +1 -1
- package/dist/rules/vue2-typescript.d.ts +2 -0
- package/dist/rules/vue2.d.ts +2 -2
- package/dist/stylistic-BzZCZ0ri.js +418 -0
- package/dist/stylistic-BzZCZ0ri.js.map +1 -0
- package/dist/stylistic-CFIZ-V78.cjs +417 -0
- package/dist/stylistic-CFIZ-V78.cjs.map +1 -0
- package/dist/{rules/typescript.js → typescript-Bh2dj5yT.js} +10 -8
- package/dist/typescript-Bh2dj5yT.js.map +1 -0
- package/dist/typescript-JqNY1gXc.cjs +51 -0
- package/dist/typescript-JqNY1gXc.cjs.map +1 -0
- package/dist/utils/merge.d.ts +1 -1
- package/dist/utils/mergeAllConfig.d.ts +1 -1
- package/dist/vue-B6Bqb251.cjs +209 -0
- package/dist/vue-B6Bqb251.cjs.map +1 -0
- package/dist/{rules/vue.js → vue-DtDckVDl.js} +22 -19
- package/dist/vue-DtDckVDl.js.map +1 -0
- package/dist/vue2-PRuaQ_vg.js +19 -0
- package/dist/vue2-PRuaQ_vg.js.map +1 -0
- package/dist/vue2-R3Acomcd.cjs +18 -0
- package/dist/vue2-R3Acomcd.cjs.map +1 -0
- package/package.json +36 -42
- package/dist/base-C2fq_o3u.cjs +0 -1
- package/dist/base-DhxoXy40.js +0 -29
- package/dist/compat-DfBTP0AK.js +0 -15
- package/dist/compat-S2mgbwTA.cjs +0 -1
- package/dist/index-B7Hdni5X.cjs +0 -1
- package/dist/index-BSFKHRiy.js +0 -33
- package/dist/index-BUOro8yS.js +0 -54
- package/dist/index-BX0PuY7X.cjs +0 -1
- package/dist/index-BYXlsowx.cjs +0 -1
- package/dist/index-BcjSGMc4.cjs +0 -1
- package/dist/index-BpqckWqb.js +0 -8
- package/dist/index-BsEDEtyS.js +0 -13
- package/dist/index-C743UfJX.cjs +0 -1
- package/dist/index-CAuGyIr4.cjs +0 -1
- package/dist/index-CCc7nS-L.cjs +0 -1
- package/dist/index-CG7O0RJO.js +0 -14
- package/dist/index-CcvN-eiV.cjs +0 -1
- package/dist/index-CixUmpPQ.js +0 -9
- package/dist/index-Cjyj5Al1.cjs +0 -1
- package/dist/index-CydLRA6p.js +0 -34
- package/dist/index-DIhDmtxO.js +0 -17
- package/dist/index-DWdvFLYP.js +0 -13
- package/dist/index-D_iZLt4b.js +0 -34
- package/dist/index-Dgx6nuN5.cjs +0 -1
- package/dist/index-Dz51pbFA.js +0 -13
- package/dist/index-E3Dvq2rq.js +0 -13
- package/dist/index-UyB1dQmr.cjs +0 -1
- package/dist/index-jfME37P0.cjs +0 -1
- package/dist/rules/core.cjs +0 -1
- package/dist/rules/core.js +0 -101
- package/dist/rules/cspell.cjs +0 -1
- package/dist/rules/cspell.js +0 -10
- package/dist/rules/importRules.cjs +0 -1
- package/dist/rules/importRules.js +0 -33
- package/dist/rules/jsdoc.cjs +0 -1
- package/dist/rules/jsdoc.js +0 -74
- package/dist/rules/stylistic.cjs +0 -1
- package/dist/rules/stylistic.js +0 -182
- package/dist/rules/typescript.cjs +0 -1
- package/dist/rules/vue.cjs +0 -1
- package/dist/rules/vue2.cjs +0 -1
- package/dist/rules/vue2.js +0 -12
- package/dist/utils/compat.d.ts +0 -7
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
## Prerequisites
|
|
18
18
|
|
|
19
19
|
- NodeJS 20+
|
|
20
|
-
- ESLint
|
|
20
|
+
- ESLint 9+
|
|
21
21
|
|
|
22
22
|
## Available Presets
|
|
23
23
|
|
|
@@ -45,10 +45,11 @@ configured for different environments, such as ServiceWorkers, WebWorkers, etc.
|
|
|
45
45
|
|
|
46
46
|
### Framework-specific
|
|
47
47
|
|
|
48
|
-
| Environment
|
|
49
|
-
|
|
|
50
|
-
| **Vue 3
|
|
51
|
-
| **Vue 2 (
|
|
48
|
+
| Environment | JavaScript | TypeScript |
|
|
49
|
+
| :-------------------------------- | :-------------------------------------------------------- | :-------------------------------------------------------- |
|
|
50
|
+
| **Vue 3 (Setup/Composition API)** | [`vue3`](./src/configs/vue3#readme) | [`vue3-typescript`](./src/configs/vue3-typescript#readme) |
|
|
51
|
+
| **Vue 2 (Setup/Composition API)** | [`vue2-typescript`](./src/configs/vue2-typescript#readme) | [`vue2-typescript`](./src/configs/vue2-typescript#readme) |
|
|
52
|
+
| **Vue 2 (Options API)** | [`vue2`](./src/configs/vue2#readme) | - |
|
|
52
53
|
|
|
53
54
|
### ⏳ Upcoming Configurations
|
|
54
55
|
|
|
@@ -74,7 +75,7 @@ ESLint config file.
|
|
|
74
75
|
```js
|
|
75
76
|
import { useInsider, silenceDependencyWarning } from '@useinsider/eslint-config';
|
|
76
77
|
|
|
77
|
-
silenceDependencyWarning(['@eslint
|
|
78
|
+
silenceDependencyWarning(['@cspell/eslint-plugin', '@stylistic/eslint-plugin']);
|
|
78
79
|
```
|
|
79
80
|
|
|
80
81
|
Or you can pass `true` to the `silenceDependencyWarning` function to silence all
|
package/dist/base.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
export declare function preConfig(
|
|
3
|
-
export declare function postConfig(): Linter.
|
|
2
|
+
export declare function preConfig(): Linter.Config<Linter.RulesRecord>;
|
|
3
|
+
export declare function postConfig(): Linter.Config;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const scope: Linter.Config;
|
|
3
|
+
export default scope;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import globals from "globals";
|
|
2
|
+
import { merge } from "./main.js";
|
|
3
|
+
import javascript from "./index-hIqcylZ1.js";
|
|
4
|
+
const index = merge(javascript, {
|
|
5
|
+
languageOptions: {
|
|
6
|
+
globals: {
|
|
7
|
+
...globals.node
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
index as default
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index-BTX-Xx3E.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BTX-Xx3E.js","sources":["../src/configs/javascript-node/index.ts"],"sourcesContent":["import type { Linter } from 'eslint';\nimport globals from 'globals';\nimport { merge } from '../../utils/merge';\nimport javascript from '../javascript';\n\nexport default merge(\n javascript,\n {\n languageOptions: {\n globals: {\n ...globals.node,\n },\n },\n }\n) as Linter.Config;\n"],"names":[],"mappings":";;;AAKA,MAAe,QAAA,MACX,YACA;AAAA,EACI,iBAAiB;AAAA,IACb,SAAS;AAAA,MACL,GAAG,QAAQ;AAAA,IAAA;AAAA,EACd;AAER,CAAA;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import globals from "globals";
|
|
2
|
+
import { merge } from "./main.js";
|
|
3
|
+
import typescript from "./index-DIqcxV_k.js";
|
|
4
|
+
const scope = merge(typescript, {
|
|
5
|
+
languageOptions: {
|
|
6
|
+
globals: {
|
|
7
|
+
...globals.node
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
scope as default
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index-BYgw1jEi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BYgw1jEi.js","sources":["../src/configs/typescript-node/index.ts"],"sourcesContent":["import type { Linter } from 'eslint';\nimport globals from 'globals';\nimport { merge } from '../../utils/merge';\nimport typescript from '../typescript';\n\nconst scope = merge(\n typescript,\n {\n languageOptions: {\n globals: {\n ...globals.node,\n },\n },\n }\n) as Linter.Config;\n\nexport default scope;\n"],"names":[],"mappings":";;;AAKM,MAAA,QAAQ,MACV,YACA;AAAA,EACI,iBAAiB;AAAA,IACb,SAAS;AAAA,MACL,GAAG,QAAQ;AAAA,IAAA;AAAA,EACd;AAER,CAAA;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import globals from "globals";
|
|
2
|
+
import { merge } from "./main.js";
|
|
3
|
+
import typescript from "./index-DIqcxV_k.js";
|
|
4
|
+
const index = merge(typescript, {
|
|
5
|
+
languageOptions: {
|
|
6
|
+
parserOptions: {
|
|
7
|
+
extraFileExtensions: [".vue"]
|
|
8
|
+
},
|
|
9
|
+
globals: {
|
|
10
|
+
...globals.browser
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
export {
|
|
15
|
+
index as default
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=index-BfeyRYMe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BfeyRYMe.js","sources":["../src/configs/typescript-dom/index.ts"],"sourcesContent":["import type { Linter } from 'eslint';\nimport globals from 'globals';\nimport { merge } from '../../utils/merge';\nimport typescript from '../typescript';\n\nexport default merge(\n typescript,\n {\n languageOptions: {\n parserOptions: {\n extraFileExtensions: ['.vue'],\n },\n globals: {\n ...globals.browser,\n },\n },\n } as Linter.Config\n);\n"],"names":[],"mappings":";;;AAKA,MAAe,QAAA,MACX,YACA;AAAA,EACI,iBAAiB;AAAA,IACb,eAAe;AAAA,MACX,qBAAqB,CAAC,MAAM;AAAA,IAC/B;AAAA,IACD,SAAS;AAAA,MACL,GAAG,QAAQ;AAAA,IAAA;AAAA,EACd;AAES,CAAA;"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const js = require("@eslint/js");
|
|
4
|
+
const stylistic$1 = require("@stylistic/eslint-plugin");
|
|
5
|
+
const airbnb = require("eslint-config-airbnb-extended");
|
|
6
|
+
const eslintPluginImportX = require("eslint-plugin-import-x");
|
|
7
|
+
const jsdocPlugin = require("eslint-plugin-jsdoc");
|
|
8
|
+
const pluginVue = require("eslint-plugin-vue");
|
|
9
|
+
const eslintPluginVueScopedCSS = require("eslint-plugin-vue-scoped-css");
|
|
10
|
+
const globals = require("globals");
|
|
11
|
+
const ts = require("typescript-eslint");
|
|
12
|
+
const stylistic = require("./stylistic-CFIZ-V78.cjs");
|
|
13
|
+
const typescript = require("./typescript-JqNY1gXc.cjs");
|
|
14
|
+
const vue2 = require("./vue2-R3Acomcd.cjs");
|
|
15
|
+
const main = require("./main.cjs");
|
|
16
|
+
const vue2Typescript = {
|
|
17
|
+
rules: {
|
|
18
|
+
"@typescript-eslint/no-duplicate-type-constituents": "off",
|
|
19
|
+
"@typescript-eslint/no-unsafe-call": "off",
|
|
20
|
+
"@typescript-eslint/no-unsafe-argument": "off",
|
|
21
|
+
"@typescript-eslint/no-unsafe-return": "off",
|
|
22
|
+
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
23
|
+
"@typescript-eslint/no-unsafe-member-access": "off"
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
const index = main.mergeAll(ts.config(js.configs.recommended, eslintPluginImportX.importX.flatConfigs.recommended, airbnb.configs.base.all, ...ts.configs.recommended, ...ts.configs.recommendedTypeChecked.filter((scope) => !scope.plugins), ...pluginVue.configs["flat/vue2-recommended"].map((config) => {
|
|
27
|
+
delete config.files;
|
|
28
|
+
return config;
|
|
29
|
+
}), ...eslintPluginVueScopedCSS.configs["flat/vue2-recommended"], jsdocPlugin.configs["flat/recommended-typescript-error"], main.merge(stylistic.preConfig(), stylistic.core, stylistic.importRules, stylistic.cspell, { plugins: { "@stylistic": stylistic$1 } }, stylistic.stylisticRules, vue2.vue2Composition, typescript.typescript, vue2Typescript, stylistic.postConfig(), {
|
|
30
|
+
languageOptions: {
|
|
31
|
+
globals: {
|
|
32
|
+
...globals.browser
|
|
33
|
+
},
|
|
34
|
+
parserOptions: {
|
|
35
|
+
parser: ts.parser,
|
|
36
|
+
sourceType: "module",
|
|
37
|
+
ecmaFeatures: {
|
|
38
|
+
jsx: true
|
|
39
|
+
},
|
|
40
|
+
extraFileExtensions: [".vue"]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
settings: {
|
|
44
|
+
jsdoc: {
|
|
45
|
+
mode: "typescript",
|
|
46
|
+
tagNamePreference: {
|
|
47
|
+
callback: "watch",
|
|
48
|
+
desc: "use"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
})));
|
|
53
|
+
exports.default = index;
|
|
54
|
+
//# sourceMappingURL=index-BhIppjjk.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BhIppjjk.cjs","sources":["../src/rules/vue2-typescript.ts","../src/configs/vue2-typescript/index.ts"],"sourcesContent":["import type { Linter } from 'eslint';\n\nexport const vue2Typescript = {\n rules: {\n '@typescript-eslint/no-duplicate-type-constituents': 'off',\n '@typescript-eslint/no-unsafe-call': 'off',\n '@typescript-eslint/no-unsafe-argument': 'off',\n '@typescript-eslint/no-unsafe-return': 'off',\n '@typescript-eslint/no-unsafe-assignment': 'off',\n '@typescript-eslint/no-unsafe-member-access': 'off',\n },\n} as Linter.Config;\n","import type { Linter } from 'eslint';\nimport js from '@eslint/js';\nimport stylistic from '@stylistic/eslint-plugin';\nimport airbnb from 'eslint-config-airbnb-extended';\nimport { importX } from 'eslint-plugin-import-x';\nimport jsdocPlugin from 'eslint-plugin-jsdoc';\nimport eslintPluginVue from 'eslint-plugin-vue';\nimport eslintPluginVueScopedCSS from 'eslint-plugin-vue-scoped-css';\nimport globals from 'globals';\nimport ts from 'typescript-eslint';\nimport { postConfig, preConfig } from '../../base';\nimport core from '../../rules/core';\nimport cspell from '../../rules/cspell';\nimport importRules from '../../rules/importRules';\nimport stylisticRules from '../../rules/stylistic';\nimport typescript from '../../rules/typescript';\nimport { vue2Composition } from '../../rules/vue2';\nimport { merge } from '../../utils/merge';\nimport { mergeAll } from '../../utils/mergeAllConfig';\nimport { vue2Typescript } from 'src/rules/vue2-typescript';\n\nexport default mergeAll((ts.config(\n js.configs.recommended,\n importX.flatConfigs.recommended as Linter.Config,\n airbnb.configs.base.all,\n ...ts.configs.recommended,\n ...ts.configs.recommendedTypeChecked.filter(scope => !scope.plugins),\n ...eslintPluginVue.configs['flat/vue2-recommended'].map(config => {\n delete config.files;\n\n return config;\n }),\n ...eslintPluginVueScopedCSS.configs['flat/vue2-recommended'],\n jsdocPlugin.configs['flat/recommended-typescript-error'],\n merge(\n preConfig(),\n core,\n importRules,\n cspell,\n { plugins: { '@stylistic': stylistic } } as Linter.Config,\n stylisticRules,\n vue2Composition,\n typescript,\n vue2Typescript,\n postConfig(),\n {\n languageOptions: {\n globals: {\n ...globals.browser,\n },\n parserOptions: {\n parser: ts.parser,\n sourceType: 'module',\n ecmaFeatures: {\n jsx: true,\n },\n extraFileExtensions: ['.vue'],\n },\n },\n settings: {\n jsdoc: {\n mode: 'typescript',\n tagNamePreference: {\n callback: 'watch',\n desc: 'use',\n },\n },\n },\n } as Linter.Config\n )\n)) as Linter.Config[]);\n"],"names":["mergeAll","importX","eslintPluginVue","merge","preConfig","core","importRules","cspell","stylistic","stylisticRules","vue2Composition","typescript","postConfig"],"mappings":";;;;;;;;;;;;;;;AAEO,MAAM,iBAAiB;AAAA,EAC1B,OAAO;AAAA,IACH,qDAAqD;AAAA,IACrD,qCAAqC;AAAA,IACrC,yCAAyC;AAAA,IACzC,uCAAuC;AAAA,IACvC,2CAA2C;AAAA,IAC3C,8CAA8C;AAAA,EAAA;;ACYtD,MAAA,QAAeA,KAAU,SAAA,GAAG,OACxB,GAAG,QAAQ,aACXC,oBAAA,QAAQ,YAAY,aACpB,OAAO,QAAQ,KAAK,KACpB,GAAG,GAAG,QAAQ,aACd,GAAG,GAAG,QAAQ,uBAAuB,OAAO,WAAS,CAAC,MAAM,OAAO,GACnE,GAAGC,UAAgB,QAAQ,uBAAuB,EAAE,IAAI,CAAS,WAAA;AAC7D,SAAO,OAAO;AAEP,SAAA;AACX,CAAC,GACD,GAAG,yBAAyB,QAAQ,uBAAuB,GAC3D,YAAY,QAAQ,mCAAmC,GACvDC,WACIC,UAAAA,UACA,GAAAC,UAAA,MACAC,uBACAC,UAAAA,QACA,EAAE,SAAS,EAAE,cAAcC,YAAW,EAAA,GACtCC,UAAA,gBACAC,sBACAC,WAAAA,YACA,gBACAC,UAAA,WAAA,GACA;AAAA,EACI,iBAAiB;AAAA,IACb,SAAS;AAAA,MACL,GAAG,QAAQ;AAAA,IACd;AAAA,IACD,eAAe;AAAA,MACX,QAAQ,GAAG;AAAA,MACX,YAAY;AAAA,MACZ,cAAc;AAAA,QACV,KAAK;AAAA,MACR;AAAA,MACD,qBAAqB,CAAC,MAAM;AAAA,IAAA;AAAA,EAEnC;AAAA,EACD,UAAU;AAAA,IACN,OAAO;AAAA,MACH,MAAM;AAAA,MACN,mBAAmB;AAAA,QACf,UAAU;AAAA,QACV,MAAM;AAAA,MAAA;AAAA,IACT;AAAA,EACJ;CAES,CACrB,CACgB;;"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import js from "@eslint/js";
|
|
2
|
+
import stylistic from "@stylistic/eslint-plugin";
|
|
3
|
+
import airbnb from "eslint-config-airbnb-extended";
|
|
4
|
+
import { importX } from "eslint-plugin-import-x";
|
|
5
|
+
import jsdocPlugin from "eslint-plugin-jsdoc";
|
|
6
|
+
import pluginVue from "eslint-plugin-vue";
|
|
7
|
+
import eslintPluginVueScopedCSS from "eslint-plugin-vue-scoped-css";
|
|
8
|
+
import globals from "globals";
|
|
9
|
+
import ts from "typescript-eslint";
|
|
10
|
+
import { b as postConfig, s as stylisticRules, a as cspell, i as importRules, c as core, p as preConfig } from "./stylistic-BzZCZ0ri.js";
|
|
11
|
+
import { t as typescript } from "./typescript-Bh2dj5yT.js";
|
|
12
|
+
import { a as vue2Composition } from "./vue2-PRuaQ_vg.js";
|
|
13
|
+
import { mergeAll, merge } from "./main.js";
|
|
14
|
+
const vue2Typescript = {
|
|
15
|
+
rules: {
|
|
16
|
+
"@typescript-eslint/no-duplicate-type-constituents": "off",
|
|
17
|
+
"@typescript-eslint/no-unsafe-call": "off",
|
|
18
|
+
"@typescript-eslint/no-unsafe-argument": "off",
|
|
19
|
+
"@typescript-eslint/no-unsafe-return": "off",
|
|
20
|
+
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
21
|
+
"@typescript-eslint/no-unsafe-member-access": "off"
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const index = mergeAll(ts.config(js.configs.recommended, importX.flatConfigs.recommended, airbnb.configs.base.all, ...ts.configs.recommended, ...ts.configs.recommendedTypeChecked.filter((scope) => !scope.plugins), ...pluginVue.configs["flat/vue2-recommended"].map((config) => {
|
|
25
|
+
delete config.files;
|
|
26
|
+
return config;
|
|
27
|
+
}), ...eslintPluginVueScopedCSS.configs["flat/vue2-recommended"], jsdocPlugin.configs["flat/recommended-typescript-error"], merge(preConfig(), core, importRules, cspell, { plugins: { "@stylistic": stylistic } }, stylisticRules, vue2Composition, typescript, vue2Typescript, postConfig(), {
|
|
28
|
+
languageOptions: {
|
|
29
|
+
globals: {
|
|
30
|
+
...globals.browser
|
|
31
|
+
},
|
|
32
|
+
parserOptions: {
|
|
33
|
+
parser: ts.parser,
|
|
34
|
+
sourceType: "module",
|
|
35
|
+
ecmaFeatures: {
|
|
36
|
+
jsx: true
|
|
37
|
+
},
|
|
38
|
+
extraFileExtensions: [".vue"]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
settings: {
|
|
42
|
+
jsdoc: {
|
|
43
|
+
mode: "typescript",
|
|
44
|
+
tagNamePreference: {
|
|
45
|
+
callback: "watch",
|
|
46
|
+
desc: "use"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
})));
|
|
51
|
+
export {
|
|
52
|
+
index as default
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=index-Bkn0-edz.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-Bkn0-edz.js","sources":["../src/rules/vue2-typescript.ts","../src/configs/vue2-typescript/index.ts"],"sourcesContent":["import type { Linter } from 'eslint';\n\nexport const vue2Typescript = {\n rules: {\n '@typescript-eslint/no-duplicate-type-constituents': 'off',\n '@typescript-eslint/no-unsafe-call': 'off',\n '@typescript-eslint/no-unsafe-argument': 'off',\n '@typescript-eslint/no-unsafe-return': 'off',\n '@typescript-eslint/no-unsafe-assignment': 'off',\n '@typescript-eslint/no-unsafe-member-access': 'off',\n },\n} as Linter.Config;\n","import type { Linter } from 'eslint';\nimport js from '@eslint/js';\nimport stylistic from '@stylistic/eslint-plugin';\nimport airbnb from 'eslint-config-airbnb-extended';\nimport { importX } from 'eslint-plugin-import-x';\nimport jsdocPlugin from 'eslint-plugin-jsdoc';\nimport eslintPluginVue from 'eslint-plugin-vue';\nimport eslintPluginVueScopedCSS from 'eslint-plugin-vue-scoped-css';\nimport globals from 'globals';\nimport ts from 'typescript-eslint';\nimport { postConfig, preConfig } from '../../base';\nimport core from '../../rules/core';\nimport cspell from '../../rules/cspell';\nimport importRules from '../../rules/importRules';\nimport stylisticRules from '../../rules/stylistic';\nimport typescript from '../../rules/typescript';\nimport { vue2Composition } from '../../rules/vue2';\nimport { merge } from '../../utils/merge';\nimport { mergeAll } from '../../utils/mergeAllConfig';\nimport { vue2Typescript } from 'src/rules/vue2-typescript';\n\nexport default mergeAll((ts.config(\n js.configs.recommended,\n importX.flatConfigs.recommended as Linter.Config,\n airbnb.configs.base.all,\n ...ts.configs.recommended,\n ...ts.configs.recommendedTypeChecked.filter(scope => !scope.plugins),\n ...eslintPluginVue.configs['flat/vue2-recommended'].map(config => {\n delete config.files;\n\n return config;\n }),\n ...eslintPluginVueScopedCSS.configs['flat/vue2-recommended'],\n jsdocPlugin.configs['flat/recommended-typescript-error'],\n merge(\n preConfig(),\n core,\n importRules,\n cspell,\n { plugins: { '@stylistic': stylistic } } as Linter.Config,\n stylisticRules,\n vue2Composition,\n typescript,\n vue2Typescript,\n postConfig(),\n {\n languageOptions: {\n globals: {\n ...globals.browser,\n },\n parserOptions: {\n parser: ts.parser,\n sourceType: 'module',\n ecmaFeatures: {\n jsx: true,\n },\n extraFileExtensions: ['.vue'],\n },\n },\n settings: {\n jsdoc: {\n mode: 'typescript',\n tagNamePreference: {\n callback: 'watch',\n desc: 'use',\n },\n },\n },\n } as Linter.Config\n )\n)) as Linter.Config[]);\n"],"names":["eslintPluginVue"],"mappings":";;;;;;;;;;;;;AAEO,MAAM,iBAAiB;AAAA,EAC1B,OAAO;AAAA,IACH,qDAAqD;AAAA,IACrD,qCAAqC;AAAA,IACrC,yCAAyC;AAAA,IACzC,uCAAuC;AAAA,IACvC,2CAA2C;AAAA,IAC3C,8CAA8C;AAAA,EAAA;;ACYtD,MAAA,QAAe,SAAU,GAAG,OACxB,GAAG,QAAQ,aACX,QAAQ,YAAY,aACpB,OAAO,QAAQ,KAAK,KACpB,GAAG,GAAG,QAAQ,aACd,GAAG,GAAG,QAAQ,uBAAuB,OAAO,WAAS,CAAC,MAAM,OAAO,GACnE,GAAGA,UAAgB,QAAQ,uBAAuB,EAAE,IAAI,CAAS,WAAA;AAC7D,SAAO,OAAO;AAEP,SAAA;AACX,CAAC,GACD,GAAG,yBAAyB,QAAQ,uBAAuB,GAC3D,YAAY,QAAQ,mCAAmC,GACvD,MACI,UACA,GAAA,MACA,aACA,QACA,EAAE,SAAS,EAAE,cAAc,UAAW,EAAA,GACtC,gBACA,iBACA,YACA,gBACA,WAAA,GACA;AAAA,EACI,iBAAiB;AAAA,IACb,SAAS;AAAA,MACL,GAAG,QAAQ;AAAA,IACd;AAAA,IACD,eAAe;AAAA,MACX,QAAQ,GAAG;AAAA,MACX,YAAY;AAAA,MACZ,cAAc;AAAA,QACV,KAAK;AAAA,MACR;AAAA,MACD,qBAAqB,CAAC,MAAM;AAAA,IAAA;AAAA,EAEnC;AAAA,EACD,UAAU;AAAA,IACN,OAAO;AAAA,MACH,MAAM;AAAA,MACN,mBAAmB;AAAA,QACf,UAAU;AAAA,QACV,MAAM;AAAA,MAAA;AAAA,IACT;AAAA,EACJ;CAES,CACrB,CACgB;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const stylistic$1 = require("@stylistic/eslint-plugin");
|
|
4
|
+
const airbnb = require("eslint-config-airbnb-extended");
|
|
5
|
+
const eslintPluginImportX = require("eslint-plugin-import-x");
|
|
6
|
+
const jsdocPlugin = require("eslint-plugin-jsdoc");
|
|
7
|
+
const pluginVue = require("eslint-plugin-vue");
|
|
8
|
+
const eslintPluginVueScopedCSS = require("eslint-plugin-vue-scoped-css");
|
|
9
|
+
const globals = require("globals");
|
|
10
|
+
const stylistic = require("./stylistic-CFIZ-V78.cjs");
|
|
11
|
+
const vue2 = require("./vue2-R3Acomcd.cjs");
|
|
12
|
+
const main = require("./main.cjs");
|
|
13
|
+
const index = main.merge(main.mergeAll(pluginVue.configs["flat/vue2-recommended"], eslintPluginVueScopedCSS.configs["flat/vue2-recommended"]), eslintPluginImportX.importX.flatConfigs.recommended, main.mergeAll(airbnb.configs.base.recommended), jsdocPlugin.configs["flat/recommended"], stylistic.preConfig(), stylistic.core, stylistic.importRules, stylistic.cspell, { plugins: { "@stylistic": stylistic$1 } }, stylistic.stylisticRules, vue2.vue2Options, stylistic.postConfig(), {
|
|
14
|
+
languageOptions: {
|
|
15
|
+
parserOptions: {
|
|
16
|
+
sourceType: "module",
|
|
17
|
+
ecmaFeatures: {
|
|
18
|
+
jsx: true
|
|
19
|
+
},
|
|
20
|
+
extraFileExtensions: [".vue"]
|
|
21
|
+
},
|
|
22
|
+
globals: {
|
|
23
|
+
...globals.browser
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
exports.default = index;
|
|
28
|
+
//# sourceMappingURL=index-ByJGX90X.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-ByJGX90X.cjs","sources":["../src/configs/vue2/index.ts"],"sourcesContent":["import type { Linter } from 'eslint';\nimport stylistic from '@stylistic/eslint-plugin';\nimport airbnb from 'eslint-config-airbnb-extended';\nimport { importX } from 'eslint-plugin-import-x';\nimport jsdocPlugin from 'eslint-plugin-jsdoc';\nimport pluginVue from 'eslint-plugin-vue';\nimport eslintPluginVueScopedCSS from 'eslint-plugin-vue-scoped-css';\nimport globals from 'globals';\nimport { postConfig, preConfig } from '../../base';\nimport core from '../../rules/core';\nimport cspell from '../../rules/cspell';\nimport importRules from '../../rules/importRules';\nimport stylisticRules from '../../rules/stylistic';\nimport { vue2Options } from '../../rules/vue2';\nimport { merge } from '../../utils/merge';\nimport { mergeAll } from '../../utils/mergeAllConfig';\n\nexport default merge(\n mergeAll(\n pluginVue.configs['flat/vue2-recommended'],\n eslintPluginVueScopedCSS.configs['flat/vue2-recommended'] as Linter.Config[]\n ),\n importX.flatConfigs.recommended as Linter.Config,\n mergeAll(airbnb.configs.base.recommended),\n jsdocPlugin.configs['flat/recommended'],\n preConfig(),\n core,\n importRules,\n cspell,\n { plugins: { '@stylistic': stylistic } } as Linter.Config,\n stylisticRules,\n vue2Options,\n postConfig(),\n {\n languageOptions: {\n parserOptions: {\n sourceType: 'module',\n ecmaFeatures: {\n jsx: true,\n },\n extraFileExtensions: ['.vue'],\n },\n globals: {\n ...globals.browser,\n },\n },\n } as Linter.Config\n);\n"],"names":["merge","mergeAll","importX","preConfig","core","importRules","cspell","stylistic","stylisticRules","vue2Options","postConfig"],"mappings":";;;;;;;;;;;;AAiBA,MAAA,QAAeA,WACXC,KACI,SAAA,UAAU,QAAQ,uBAAuB,GACzC,yBAAyB,QAAQ,uBAAuB,CAAoB,GAEhFC,oBAAAA,QAAQ,YAAY,aACpBD,KAAS,SAAA,OAAO,QAAQ,KAAK,WAAW,GACxC,YAAY,QAAQ,kBAAkB,GACtCE,uBACAC,UAAAA,MACAC,UAAAA,aACAC,UACA,QAAA,EAAE,SAAS,EAAE,cAAcC,YAAW,EAAA,GACtCC,UAAAA,gBACAC,KAAAA,aACAC,UAAAA,cACA;AAAA,EACI,iBAAiB;AAAA,IACb,eAAe;AAAA,MACX,YAAY;AAAA,MACZ,cAAc;AAAA,QACV,KAAK;AAAA,MACR;AAAA,MACD,qBAAqB,CAAC,MAAM;AAAA,IAC/B;AAAA,IACD,SAAS;AAAA,MACL,GAAG,QAAQ;AAAA,IAAA;AAAA,EACd;AAES,CAAA;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import stylistic from "@stylistic/eslint-plugin";
|
|
2
|
+
import airbnb from "eslint-config-airbnb-extended";
|
|
3
|
+
import { importX } from "eslint-plugin-import-x";
|
|
4
|
+
import jsdocPlugin from "eslint-plugin-jsdoc";
|
|
5
|
+
import pluginVue from "eslint-plugin-vue";
|
|
6
|
+
import eslintPluginVueScopedCSS from "eslint-plugin-vue-scoped-css";
|
|
7
|
+
import globals from "globals";
|
|
8
|
+
import { b as postConfig, s as stylisticRules, a as cspell, i as importRules, c as core, p as preConfig } from "./stylistic-BzZCZ0ri.js";
|
|
9
|
+
import { v as vue } from "./vue-DtDckVDl.js";
|
|
10
|
+
import { merge, mergeAll } from "./main.js";
|
|
11
|
+
const index = merge(mergeAll(pluginVue.configs["flat/recommended"], eslintPluginVueScopedCSS.configs["flat/recommended"]), importX.flatConfigs.recommended, mergeAll(airbnb.configs.base.recommended), jsdocPlugin.configs["flat/recommended"], preConfig(), core, importRules, cspell, { plugins: { "@stylistic": stylistic } }, stylisticRules, vue, postConfig(), {
|
|
12
|
+
languageOptions: {
|
|
13
|
+
parserOptions: {
|
|
14
|
+
sourceType: "module",
|
|
15
|
+
ecmaFeatures: {
|
|
16
|
+
jsx: true
|
|
17
|
+
},
|
|
18
|
+
extraFileExtensions: [".vue"]
|
|
19
|
+
},
|
|
20
|
+
globals: {
|
|
21
|
+
...globals.browser
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
index as default
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=index-CDyyy483.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CDyyy483.js","sources":["../src/configs/vue3/index.ts"],"sourcesContent":["import type { Linter } from 'eslint';\nimport stylistic from '@stylistic/eslint-plugin';\nimport airbnb from 'eslint-config-airbnb-extended';\nimport { importX } from 'eslint-plugin-import-x';\nimport jsdocPlugin from 'eslint-plugin-jsdoc';\nimport pluginVue from 'eslint-plugin-vue';\nimport eslintPluginVueScopedCSS from 'eslint-plugin-vue-scoped-css';\nimport globals from 'globals';\nimport { postConfig, preConfig } from '../../base';\nimport core from '../../rules/core';\nimport cspell from '../../rules/cspell';\nimport importRules from '../../rules/importRules';\nimport stylisticRules from '../../rules/stylistic';\nimport vue from '../../rules/vue';\nimport { merge } from '../../utils/merge';\nimport { mergeAll } from '../../utils/mergeAllConfig';\n\nexport default merge(\n mergeAll(\n pluginVue.configs['flat/recommended'],\n eslintPluginVueScopedCSS.configs['flat/recommended'] as Linter.Config[]\n ),\n importX.flatConfigs.recommended as Linter.Config,\n mergeAll(airbnb.configs.base.recommended),\n jsdocPlugin.configs['flat/recommended'],\n preConfig(),\n core,\n importRules,\n cspell,\n { plugins: { '@stylistic': stylistic } } as Linter.Config,\n stylisticRules,\n vue,\n postConfig(),\n {\n languageOptions: {\n parserOptions: {\n sourceType: 'module',\n ecmaFeatures: {\n jsx: true,\n },\n extraFileExtensions: ['.vue'],\n },\n globals: {\n ...globals.browser,\n },\n },\n } as Linter.Config\n);\n"],"names":[],"mappings":";;;;;;;;;;AAiBA,MAAA,QAAe,MACX,SACI,UAAU,QAAQ,kBAAkB,GACpC,yBAAyB,QAAQ,kBAAkB,CAAoB,GAE3E,QAAQ,YAAY,aACpB,SAAS,OAAO,QAAQ,KAAK,WAAW,GACxC,YAAY,QAAQ,kBAAkB,GACtC,aACA,MACA,aACA,QACA,EAAE,SAAS,EAAE,cAAc,UAAW,EAAA,GACtC,gBACA,KACA,cACA;AAAA,EACI,iBAAiB;AAAA,IACb,eAAe;AAAA,MACX,YAAY;AAAA,MACZ,cAAc;AAAA,QACV,KAAK;AAAA,MACR;AAAA,MACD,qBAAqB,CAAC,MAAM;AAAA,IAC/B;AAAA,IACD,SAAS;AAAA,MACL,GAAG,QAAQ;AAAA,IAAA;AAAA,EACd;AAES,CAAA;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import globals from "globals";
|
|
2
|
+
import { merge } from "./main.js";
|
|
3
|
+
import javascript from "./index-hIqcylZ1.js";
|
|
4
|
+
const index = merge(javascript, {
|
|
5
|
+
languageOptions: {
|
|
6
|
+
globals: {
|
|
7
|
+
...globals.browser
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
index as default
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index-CR8V-t6x.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CR8V-t6x.js","sources":["../src/configs/javascript-dom/index.ts"],"sourcesContent":["import type { Linter } from 'eslint';\nimport globals from 'globals';\nimport { merge } from '../../utils/merge';\nimport javascript from '../javascript';\n\nexport default merge(\n javascript,\n {\n languageOptions: {\n globals: {\n ...globals.browser,\n },\n },\n }\n) as Linter.Config;\n"],"names":[],"mappings":";;;AAKA,MAAe,QAAA,MACX,YACA;AAAA,EACI,iBAAiB;AAAA,IACb,SAAS;AAAA,MACL,GAAG,QAAQ;AAAA,IAAA;AAAA,EACd;AAER,CAAA;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const globals = require("globals");
|
|
4
|
+
const main = require("./main.cjs");
|
|
5
|
+
const index = require("./index-DGiWIDAp.cjs");
|
|
6
|
+
const scope = main.merge(index.default, {
|
|
7
|
+
languageOptions: {
|
|
8
|
+
globals: {
|
|
9
|
+
...globals.node
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
exports.default = scope;
|
|
14
|
+
//# sourceMappingURL=index-CjgvrUgK.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CjgvrUgK.cjs","sources":["../src/configs/typescript-node/index.ts"],"sourcesContent":["import type { Linter } from 'eslint';\nimport globals from 'globals';\nimport { merge } from '../../utils/merge';\nimport typescript from '../typescript';\n\nconst scope = merge(\n typescript,\n {\n languageOptions: {\n globals: {\n ...globals.node,\n },\n },\n }\n) as Linter.Config;\n\nexport default scope;\n"],"names":["merge","typescript"],"mappings":";;;;;AAKM,MAAA,QAAQA,WACVC,eACA;AAAA,EACI,iBAAiB;AAAA,IACb,SAAS;AAAA,MACL,GAAG,QAAQ;AAAA,IAAA;AAAA,EACd;AAER,CAAA;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const globals = require("globals");
|
|
4
|
+
const main = require("./main.cjs");
|
|
5
|
+
const index$1 = require("./index-xJXN5s4U.cjs");
|
|
6
|
+
const index = main.merge(index$1.default, {
|
|
7
|
+
languageOptions: {
|
|
8
|
+
globals: {
|
|
9
|
+
...globals.browser
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
exports.default = index;
|
|
14
|
+
//# sourceMappingURL=index-Cw0lWOha.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-Cw0lWOha.cjs","sources":["../src/configs/javascript-dom/index.ts"],"sourcesContent":["import type { Linter } from 'eslint';\nimport globals from 'globals';\nimport { merge } from '../../utils/merge';\nimport javascript from '../javascript';\n\nexport default merge(\n javascript,\n {\n languageOptions: {\n globals: {\n ...globals.browser,\n },\n },\n }\n) as Linter.Config;\n"],"names":["merge","javascript"],"mappings":";;;;;AAKA,MAAeA,QAAAA,KAAAA,MACXC,QAAAA,SACA;AAAA,EACI,iBAAiB;AAAA,IACb,SAAS;AAAA,MACL,GAAG,QAAQ;AAAA,IAAA;AAAA,EACd;AAER,CAAA;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const stylistic$1 = require("@stylistic/eslint-plugin");
|
|
4
|
+
const airbnb = require("eslint-config-airbnb-extended");
|
|
5
|
+
const eslintPluginImportX = require("eslint-plugin-import-x");
|
|
6
|
+
const jsdocPlugin = require("eslint-plugin-jsdoc");
|
|
7
|
+
const pluginVue = require("eslint-plugin-vue");
|
|
8
|
+
const eslintPluginVueScopedCSS = require("eslint-plugin-vue-scoped-css");
|
|
9
|
+
const globals = require("globals");
|
|
10
|
+
const stylistic = require("./stylistic-CFIZ-V78.cjs");
|
|
11
|
+
const vue = require("./vue-B6Bqb251.cjs");
|
|
12
|
+
const main = require("./main.cjs");
|
|
13
|
+
const index = main.merge(main.mergeAll(pluginVue.configs["flat/recommended"], eslintPluginVueScopedCSS.configs["flat/recommended"]), eslintPluginImportX.importX.flatConfigs.recommended, main.mergeAll(airbnb.configs.base.recommended), jsdocPlugin.configs["flat/recommended"], stylistic.preConfig(), stylistic.core, stylistic.importRules, stylistic.cspell, { plugins: { "@stylistic": stylistic$1 } }, stylistic.stylisticRules, vue.vue, stylistic.postConfig(), {
|
|
14
|
+
languageOptions: {
|
|
15
|
+
parserOptions: {
|
|
16
|
+
sourceType: "module",
|
|
17
|
+
ecmaFeatures: {
|
|
18
|
+
jsx: true
|
|
19
|
+
},
|
|
20
|
+
extraFileExtensions: [".vue"]
|
|
21
|
+
},
|
|
22
|
+
globals: {
|
|
23
|
+
...globals.browser
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
exports.default = index;
|
|
28
|
+
//# sourceMappingURL=index-D-rYWfeI.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-D-rYWfeI.cjs","sources":["../src/configs/vue3/index.ts"],"sourcesContent":["import type { Linter } from 'eslint';\nimport stylistic from '@stylistic/eslint-plugin';\nimport airbnb from 'eslint-config-airbnb-extended';\nimport { importX } from 'eslint-plugin-import-x';\nimport jsdocPlugin from 'eslint-plugin-jsdoc';\nimport pluginVue from 'eslint-plugin-vue';\nimport eslintPluginVueScopedCSS from 'eslint-plugin-vue-scoped-css';\nimport globals from 'globals';\nimport { postConfig, preConfig } from '../../base';\nimport core from '../../rules/core';\nimport cspell from '../../rules/cspell';\nimport importRules from '../../rules/importRules';\nimport stylisticRules from '../../rules/stylistic';\nimport vue from '../../rules/vue';\nimport { merge } from '../../utils/merge';\nimport { mergeAll } from '../../utils/mergeAllConfig';\n\nexport default merge(\n mergeAll(\n pluginVue.configs['flat/recommended'],\n eslintPluginVueScopedCSS.configs['flat/recommended'] as Linter.Config[]\n ),\n importX.flatConfigs.recommended as Linter.Config,\n mergeAll(airbnb.configs.base.recommended),\n jsdocPlugin.configs['flat/recommended'],\n preConfig(),\n core,\n importRules,\n cspell,\n { plugins: { '@stylistic': stylistic } } as Linter.Config,\n stylisticRules,\n vue,\n postConfig(),\n {\n languageOptions: {\n parserOptions: {\n sourceType: 'module',\n ecmaFeatures: {\n jsx: true,\n },\n extraFileExtensions: ['.vue'],\n },\n globals: {\n ...globals.browser,\n },\n },\n } as Linter.Config\n);\n"],"names":["merge","mergeAll","importX","preConfig","core","importRules","cspell","stylistic","stylisticRules","vue","postConfig"],"mappings":";;;;;;;;;;;;AAiBA,MAAA,QAAeA,WACXC,KACI,SAAA,UAAU,QAAQ,kBAAkB,GACpC,yBAAyB,QAAQ,kBAAkB,CAAoB,GAE3EC,oBAAAA,QAAQ,YAAY,aACpBD,KAAS,SAAA,OAAO,QAAQ,KAAK,WAAW,GACxC,YAAY,QAAQ,kBAAkB,GACtCE,uBACAC,UAAAA,MACAC,UAAAA,aACAC,UACA,QAAA,EAAE,SAAS,EAAE,cAAcC,YAAW,EAAA,GACtCC,UAAAA,gBACAC,IAAAA,KACAC,UAAAA,cACA;AAAA,EACI,iBAAiB;AAAA,IACb,eAAe;AAAA,MACX,YAAY;AAAA,MACZ,cAAc;AAAA,QACV,KAAK;AAAA,MACR;AAAA,MACD,qBAAqB,CAAC,MAAM;AAAA,IAC/B;AAAA,IACD,SAAS;AAAA,MACL,GAAG,QAAQ;AAAA,IAAA;AAAA,EACd;AAES,CAAA;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-D4MPQx8Q.cjs","sources":["../src/configs/jsdoc-based-ts/index.ts"],"sourcesContent":["import type { Linter } from 'eslint';\n\nexport default {\n rules: {\n 'jsdoc/no-types': 'off',\n },\n} as Linter.Config;\n"],"names":[],"mappings":";;AAEA,MAAe,QAAA;AAAA,EACX,OAAO;AAAA,IACH,kBAAkB;AAAA,EAAA;;;"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import js from "@eslint/js";
|
|
2
|
+
import stylistic from "@stylistic/eslint-plugin";
|
|
3
|
+
import airbnb from "eslint-config-airbnb-extended";
|
|
4
|
+
import { importX } from "eslint-plugin-import-x";
|
|
5
|
+
import jsdocPlugin from "eslint-plugin-jsdoc";
|
|
6
|
+
import pluginVue from "eslint-plugin-vue";
|
|
7
|
+
import eslintPluginVueScopedCSS from "eslint-plugin-vue-scoped-css";
|
|
8
|
+
import globals from "globals";
|
|
9
|
+
import ts from "typescript-eslint";
|
|
10
|
+
import { b as postConfig, s as stylisticRules, a as cspell, i as importRules, c as core, p as preConfig } from "./stylistic-BzZCZ0ri.js";
|
|
11
|
+
import { t as typescript } from "./typescript-Bh2dj5yT.js";
|
|
12
|
+
import { v as vue } from "./vue-DtDckVDl.js";
|
|
13
|
+
import { mergeAll, merge } from "./main.js";
|
|
14
|
+
const index = mergeAll(ts.config(js.configs.recommended, importX.flatConfigs.recommended, airbnb.configs.base.all, ...ts.configs.recommended, ...ts.configs.recommendedTypeChecked.filter((scope) => !scope.plugins), ...pluginVue.configs["flat/recommended"].map((config) => {
|
|
15
|
+
delete config.files;
|
|
16
|
+
return config;
|
|
17
|
+
}), ...eslintPluginVueScopedCSS.configs["flat/recommended"], jsdocPlugin.configs["flat/recommended-typescript-error"], merge(preConfig(), core, importRules, cspell, { plugins: { "@stylistic": stylistic } }, stylisticRules, vue, typescript, postConfig(), {
|
|
18
|
+
languageOptions: {
|
|
19
|
+
globals: {
|
|
20
|
+
...globals.browser
|
|
21
|
+
},
|
|
22
|
+
parserOptions: {
|
|
23
|
+
parser: ts.parser,
|
|
24
|
+
sourceType: "module",
|
|
25
|
+
ecmaFeatures: {
|
|
26
|
+
jsx: true
|
|
27
|
+
},
|
|
28
|
+
extraFileExtensions: [".vue"]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
settings: {
|
|
32
|
+
jsdoc: {
|
|
33
|
+
mode: "typescript",
|
|
34
|
+
tagNamePreference: {
|
|
35
|
+
callback: "watch",
|
|
36
|
+
desc: "use"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
})));
|
|
41
|
+
export {
|
|
42
|
+
index as default
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=index-D84g26dl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-D84g26dl.js","sources":["../src/configs/vue3-typescript/index.ts"],"sourcesContent":["import type { Linter } from 'eslint';\nimport js from '@eslint/js';\nimport stylistic from '@stylistic/eslint-plugin';\nimport airbnb from 'eslint-config-airbnb-extended';\nimport { importX } from 'eslint-plugin-import-x';\nimport jsdocPlugin from 'eslint-plugin-jsdoc';\nimport eslintPluginVue from 'eslint-plugin-vue';\nimport eslintPluginVueScopedCSS from 'eslint-plugin-vue-scoped-css';\nimport globals from 'globals';\nimport ts from 'typescript-eslint';\nimport { postConfig, preConfig } from '../../base';\nimport core from '../../rules/core';\nimport cspell from '../../rules/cspell';\nimport importRules from '../../rules/importRules';\nimport stylisticRules from '../../rules/stylistic';\nimport typescript from '../../rules/typescript';\nimport vue from '../../rules/vue';\nimport { merge } from '../../utils/merge';\nimport { mergeAll } from '../../utils/mergeAllConfig';\n\nexport default mergeAll((ts.config(\n js.configs.recommended,\n importX.flatConfigs.recommended as Linter.Config,\n airbnb.configs.base.all,\n ...ts.configs.recommended,\n ...ts.configs.recommendedTypeChecked.filter(scope => !scope.plugins),\n ...eslintPluginVue.configs['flat/recommended'].map(config => {\n delete config.files;\n\n return config;\n }),\n ...eslintPluginVueScopedCSS.configs['flat/recommended'],\n jsdocPlugin.configs['flat/recommended-typescript-error'],\n merge(\n preConfig(),\n core,\n importRules,\n cspell,\n { plugins: { '@stylistic': stylistic } } as Linter.Config,\n stylisticRules,\n vue,\n typescript,\n postConfig(),\n {\n languageOptions: {\n globals: {\n ...globals.browser,\n },\n parserOptions: {\n parser: ts.parser,\n sourceType: 'module',\n ecmaFeatures: {\n jsx: true,\n },\n extraFileExtensions: ['.vue'],\n },\n },\n settings: {\n jsdoc: {\n mode: 'typescript',\n tagNamePreference: {\n callback: 'watch',\n desc: 'use',\n },\n },\n },\n } as Linter.Config\n )\n)) as Linter.Config[]);\n"],"names":["eslintPluginVue"],"mappings":";;;;;;;;;;;;;AAoBA,MAAA,QAAe,SAAU,GAAG,OACxB,GAAG,QAAQ,aACX,QAAQ,YAAY,aACpB,OAAO,QAAQ,KAAK,KACpB,GAAG,GAAG,QAAQ,aACd,GAAG,GAAG,QAAQ,uBAAuB,OAAO,WAAS,CAAC,MAAM,OAAO,GACnE,GAAGA,UAAgB,QAAQ,kBAAkB,EAAE,IAAI,CAAS,WAAA;AACxD,SAAO,OAAO;AAEP,SAAA;AACX,CAAC,GACD,GAAG,yBAAyB,QAAQ,kBAAkB,GACtD,YAAY,QAAQ,mCAAmC,GACvD,MACI,UAAS,GACT,MACA,aACA,QACA,EAAE,SAAS,EAAE,cAAc,YAA8B,GACzD,gBACA,KACA,YACA,WAAA,GACA;AAAA,EACI,iBAAiB;AAAA,IACb,SAAS;AAAA,MACL,GAAG,QAAQ;AAAA,IACd;AAAA,IACD,eAAe;AAAA,MACX,QAAQ,GAAG;AAAA,MACX,YAAY;AAAA,MACZ,cAAc;AAAA,QACV,KAAK;AAAA,MACR;AAAA,MACD,qBAAqB,CAAC,MAAM;AAAA,IAAA;AAAA,EAEnC;AAAA,EACD,UAAU;AAAA,IACN,OAAO;AAAA,MACH,MAAM;AAAA,MACN,mBAAmB;AAAA,QACf,UAAU;AAAA,QACV,MAAM;AAAA,MAAA;AAAA,IACT;AAAA,EACJ;CAES,CACrB,CACgB;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const globals = require("globals");
|
|
4
|
+
const main = require("./main.cjs");
|
|
5
|
+
const index$1 = require("./index-DGiWIDAp.cjs");
|
|
6
|
+
const index = main.merge(index$1.default, {
|
|
7
|
+
languageOptions: {
|
|
8
|
+
parserOptions: {
|
|
9
|
+
extraFileExtensions: [".vue"]
|
|
10
|
+
},
|
|
11
|
+
globals: {
|
|
12
|
+
...globals.browser
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
exports.default = index;
|
|
17
|
+
//# sourceMappingURL=index-DCq2un1b.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DCq2un1b.cjs","sources":["../src/configs/typescript-dom/index.ts"],"sourcesContent":["import type { Linter } from 'eslint';\nimport globals from 'globals';\nimport { merge } from '../../utils/merge';\nimport typescript from '../typescript';\n\nexport default merge(\n typescript,\n {\n languageOptions: {\n parserOptions: {\n extraFileExtensions: ['.vue'],\n },\n globals: {\n ...globals.browser,\n },\n },\n } as Linter.Config\n);\n"],"names":["merge","typescript"],"mappings":";;;;;AAKA,MAAeA,QAAAA,KAAAA,MACXC,QAAAA,SACA;AAAA,EACI,iBAAiB;AAAA,IACb,eAAe;AAAA,MACX,qBAAqB,CAAC,MAAM;AAAA,IAC/B;AAAA,IACD,SAAS;AAAA,MACL,GAAG,QAAQ;AAAA,IAAA;AAAA,EACd;AAES,CAAA;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const js = require("@eslint/js");
|
|
4
|
+
const stylistic$1 = require("@stylistic/eslint-plugin");
|
|
5
|
+
const airbnb = require("eslint-config-airbnb-extended");
|
|
6
|
+
const eslintPluginImportX = require("eslint-plugin-import-x");
|
|
7
|
+
const jsdocPlugin = require("eslint-plugin-jsdoc");
|
|
8
|
+
const ts = require("typescript-eslint");
|
|
9
|
+
const stylistic = require("./stylistic-CFIZ-V78.cjs");
|
|
10
|
+
const typescript$1 = require("./typescript-JqNY1gXc.cjs");
|
|
11
|
+
const main = require("./main.cjs");
|
|
12
|
+
const typescript = main.mergeAll(ts.config(js.configs.recommended, eslintPluginImportX.importX.flatConfigs.recommended, airbnb.configs.base.all, ...ts.configs.recommended, ...ts.configs.recommendedTypeChecked.filter((scope) => !scope.plugins), jsdocPlugin.configs["flat/recommended-typescript-error"], main.merge(stylistic.preConfig(), stylistic.core, stylistic.importRules, stylistic.cspell, { plugins: { "@stylistic": stylistic$1 } }, stylistic.stylisticRules, typescript$1.typescript, stylistic.postConfig(), {
|
|
13
|
+
settings: {
|
|
14
|
+
jsdoc: {
|
|
15
|
+
mode: "typescript",
|
|
16
|
+
tagNamePreference: {
|
|
17
|
+
callback: "watch",
|
|
18
|
+
desc: "use"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"import/resolver": {
|
|
22
|
+
typescript: true,
|
|
23
|
+
node: true
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
})));
|
|
27
|
+
exports.default = typescript;
|
|
28
|
+
//# sourceMappingURL=index-DGiWIDAp.cjs.map
|