@useinsider/eslint-config 1.9.2 → 1.10.0-beta.1
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/base-B-PS5UHr.cjs +1 -0
- package/dist/base-BA0DI93B.js +33 -0
- 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/vue3/index.d.ts +1 -1
- package/dist/configs/vue3-typescript/index.d.ts +1 -1
- package/dist/index-BBpi_Vtq.cjs +1 -0
- package/dist/index-BGJZVkll.cjs +1 -0
- package/dist/index-BQhhxQGU.cjs +1 -0
- package/dist/{index-UyB1dQmr.cjs → index-BjqFNarr.cjs} +1 -1
- package/dist/index-BmBugWe4.cjs +1 -0
- package/dist/{index-BsEDEtyS.js → index-BnTzUbum.js} +1 -1
- package/dist/index-C05_dgDY.cjs +1 -0
- package/dist/index-C2p6z9H4.js +9 -0
- package/dist/index-CG4b8J5I.js +48 -0
- package/dist/index-CQ1RJV11.js +28 -0
- package/dist/index-D-NRhaYV.cjs +1 -0
- package/dist/{index-E3Dvq2rq.js → index-D1KdUFk4.js} +1 -1
- package/dist/index-D9bTg7j3.cjs +1 -0
- package/dist/index-DbBU_JDe.js +41 -0
- package/dist/{index-CCc7nS-L.cjs → index-DgHV2stm.cjs} +1 -1
- package/dist/{index-DWdvFLYP.js → index-DvOKf9k2.js} +3 -3
- package/dist/{index-Dz51pbFA.js → index-IJ5JatZj.js} +1 -1
- package/dist/{index-Cjyj5Al1.cjs → index-fI1e4MqV.cjs} +1 -1
- package/dist/index-nLGFKikH.js +48 -0
- package/dist/index-o9oM4y-o.js +65 -0
- package/dist/main.cjs +1 -1
- package/dist/main.d.ts +2 -2
- package/dist/main.js +11 -11
- package/dist/rules/core.cjs +1 -1
- package/dist/rules/core.d.ts +1 -1
- package/dist/rules/core.js +1 -1
- package/dist/rules/cspell.d.ts +1 -1
- package/dist/rules/importRules.cjs +1 -1
- package/dist/rules/importRules.d.ts +1 -1
- package/dist/rules/importRules.js +5 -5
- 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.cjs +1 -1
- package/dist/rules/vue.d.ts +1 -1
- package/dist/rules/vue.js +2 -2
- package/dist/rules/vue2.d.ts +1 -1
- package/dist/utils/compat.d.ts +4 -4
- package/dist/utils/mergeAllConfig.d.ts +1 -1
- package/package.json +35 -34
- 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-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-C743UfJX.cjs +0 -1
- package/dist/index-CAuGyIr4.cjs +0 -1
- package/dist/index-CcvN-eiV.cjs +0 -1
- package/dist/index-CixUmpPQ.js +0 -9
- package/dist/index-CydLRA6p.js +0 -34
- package/dist/index-DIhDmtxO.js +0 -17
- package/dist/index-D_iZLt4b.js +0 -34
- package/dist/index-Dgx6nuN5.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("node:path"),t=require("node:url"),c=require("@cspell/eslint-plugin/recommended"),i=require("@eslint/eslintrc"),s=require("@eslint/js"),r=require("./main.cjs");var e=typeof document<"u"?document.currentScript:null;const u=new i.FlatCompat({baseDirectory:o.dirname(t.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:e&&e.tagName.toUpperCase()==="SCRIPT"&&e.src||new URL("base-B-PS5UHr.cjs",document.baseURI).href))});function a(n=[]){return r.merge(s.configs.recommended,c,n&&r.mergeAll(u.plugins(...n)))}function f(){return r.merge({languageOptions:{ecmaVersion:2022,parserOptions:{ecmaVersion:2022}},rules:{"jsdoc/require-param":"off","jsdoc/require-jsdoc":"off","jsdoc/require-returns":"off","jsdoc/require-param-type":"off","jsdoc/check-param-names":"off"}})}exports.postConfig=f;exports.preConfig=a;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { dirname as e } from "node:path";
|
|
2
|
+
import { fileURLToPath as m } from "node:url";
|
|
3
|
+
import i from "@cspell/eslint-plugin/recommended";
|
|
4
|
+
import { FlatCompat as t } from "@eslint/eslintrc";
|
|
5
|
+
import n from "@eslint/js";
|
|
6
|
+
import { merge as o, mergeAll as a } from "./main.js";
|
|
7
|
+
const f = new t({
|
|
8
|
+
baseDirectory: e(m(import.meta.url))
|
|
9
|
+
});
|
|
10
|
+
function g(r = []) {
|
|
11
|
+
return o(n.configs.recommended, i, r && a(f.plugins(...r)));
|
|
12
|
+
}
|
|
13
|
+
function j() {
|
|
14
|
+
return o({
|
|
15
|
+
languageOptions: {
|
|
16
|
+
ecmaVersion: 2022,
|
|
17
|
+
parserOptions: {
|
|
18
|
+
ecmaVersion: 2022
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
rules: {
|
|
22
|
+
"jsdoc/require-param": "off",
|
|
23
|
+
"jsdoc/require-jsdoc": "off",
|
|
24
|
+
"jsdoc/require-returns": "off",
|
|
25
|
+
"jsdoc/require-param-type": "off",
|
|
26
|
+
"jsdoc/check-param-names": "off"
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
j as a,
|
|
32
|
+
g as p
|
|
33
|
+
};
|
package/dist/base.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
export declare function preConfig(plugins?: string[]): Linter.
|
|
3
|
-
export declare function postConfig(): Linter.
|
|
2
|
+
export declare function preConfig(plugins?: string[]): 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 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@stylistic/eslint-plugin"),i=require("eslint-config-airbnb-extended"),t=require("eslint-plugin-import-x"),o=require("eslint-plugin-jsdoc"),e=require("./base-B-PS5UHr.cjs"),n=require("./rules/core.cjs"),c=require("./rules/cspell.cjs"),u=require("./rules/importRules.cjs"),l=require("./rules/jsdoc.cjs"),m=require("./rules/stylistic.cjs"),r=require("./main.cjs"),g=r.merge(t.importX.flatConfigs.recommended,r.mergeAll(i.configs.base.recommended),o.configs["flat/recommended"],e.preConfig(),n,u,c,{plugins:{"@stylistic":s}},m,l,e.postConfig());exports.default=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@stylistic/eslint-plugin"),o=require("eslint-config-airbnb-extended"),i=require("eslint-plugin-import-x"),n=require("eslint-plugin-jsdoc"),t=require("eslint-plugin-vue"),u=require("eslint-plugin-vue-scoped-css"),l=require("globals"),r=require("./base-B-PS5UHr.cjs"),c=require("./rules/core.cjs"),g=require("./rules/cspell.cjs"),m=require("./rules/importRules.cjs"),a=require("./rules/jsdoc.cjs"),d=require("./rules/stylistic.cjs"),q=require("./rules/vue2.cjs"),e=require("./main.cjs"),p=e.merge(e.mergeAll(t.configs["flat/vue2-recommended"],u.configs["flat/vue2-recommended"]),i.importX.flatConfigs.recommended,e.mergeAll(o.configs.base.recommended),n.configs["flat/recommended"],r.preConfig(),c,m,g,{plugins:{"@stylistic":s}},d,a,q,r.postConfig(),{languageOptions:{parserOptions:{sourceType:"module",ecmaFeatures:{jsx:!0},extraFileExtensions:[".vue"]},globals:{...l.browser}}});exports.default=p;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@stylistic/eslint-plugin"),o=require("eslint-config-airbnb-extended"),i=require("eslint-plugin-import-x"),n=require("eslint-plugin-jsdoc"),t=require("eslint-plugin-vue"),u=require("eslint-plugin-vue-scoped-css"),l=require("globals"),r=require("./base-B-PS5UHr.cjs"),c=require("./rules/core.cjs"),g=require("./rules/cspell.cjs"),m=require("./rules/importRules.cjs"),a=require("./rules/jsdoc.cjs"),d=require("./rules/stylistic.cjs"),q=require("./rules/vue.cjs"),e=require("./main.cjs"),p=e.merge(e.mergeAll(t.configs["flat/recommended"],u.configs["flat/recommended"]),i.importX.flatConfigs.recommended,e.mergeAll(o.configs.base.recommended),n.configs["flat/recommended"],r.preConfig(),c,m,g,{plugins:{"@stylistic":s}},d,a,q,r.postConfig(),{languageOptions:{parserOptions:{sourceType:"module",ecmaFeatures:{jsx:!0},extraFileExtensions:[".vue"]},globals:{...l.browser}}});exports.default=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("globals"),r=require("./main.cjs"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("globals"),r=require("./main.cjs"),t=require("./index-BBpi_Vtq.cjs"),o=r.merge(t.default,{languageOptions:{globals:{...e.browser}}});exports.default=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={rules:{"import-x/no-extraneous-dependencies":"off","import-x/prefer-default-export":"off"}};exports.default=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@eslint/js"),c=require("@stylistic/eslint-plugin"),l=require("eslint-config-airbnb-extended"),u=require("eslint-plugin-import-x"),a=require("eslint-plugin-jsdoc"),d=require("eslint-plugin-vue"),m=require("eslint-plugin-vue-scoped-css"),p=require("globals"),n=require("typescript-eslint"),o=require("./base-B-PS5UHr.cjs"),g=require("./rules/core.cjs"),f=require("./rules/cspell.cjs"),q=require("./rules/importRules.cjs"),y=require("./rules/jsdoc.cjs"),b=require("./rules/stylistic.cjs"),_=require("./rules/typescript.cjs"),C=require("./rules/vue.cjs"),x=require("node:path"),S=require("node:url"),j=require("@eslint/eslintrc"),r=require("./main.cjs");var s=typeof document<"u"?document.currentScript:null;const t=new j.FlatCompat({baseDirectory:x.dirname(S.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:s&&s.tagName.toUpperCase()==="SCRIPT"&&s.src||new URL("index-C05_dgDY.cjs",document.baseURI).href))}),P={extends:(...e)=>r.mergeAll(t.extends(...e)),config:e=>r.mergeAll(t.config(e)),plugins:(...e)=>r.mergeAll(t.plugins(...e)),env:e=>r.mergeAll(t.env(e))},h=r.mergeAll(n.config(i.configs.recommended,u.importX.flatConfigs.recommended,l.configs.base.all,...n.configs.recommended,...d.configs["flat/recommended"].map(e=>(delete e.files,e)),...m.configs["flat/recommended"],a.configs["flat/recommended-typescript-error"],r.merge(P.extends("plugin:@cspell/recommended"),o.preConfig(),g,q,f,{plugins:{"@stylistic":c}},b,y,C,_,o.postConfig(),{languageOptions:{globals:{...p.browser},parserOptions:{parser:"@typescript-eslint/parser",sourceType:"module",ecmaFeatures:{jsx:!0},extraFileExtensions:[".vue"]}},settings:{jsdoc:{mode:"typescript",tagNamePreference:{callback:"watch",desc:"use"}}}})));exports.default=h;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import r from "@stylistic/eslint-plugin";
|
|
2
|
+
import e from "eslint-config-airbnb-extended";
|
|
3
|
+
import { importX as m } from "eslint-plugin-import-x";
|
|
4
|
+
import i from "eslint-plugin-jsdoc";
|
|
5
|
+
import t from "eslint-plugin-vue";
|
|
6
|
+
import s from "eslint-plugin-vue-scoped-css";
|
|
7
|
+
import p from "globals";
|
|
8
|
+
import { a as f, p as l } from "./base-BA0DI93B.js";
|
|
9
|
+
import n from "./rules/core.js";
|
|
10
|
+
import c from "./rules/cspell.js";
|
|
11
|
+
import a from "./rules/importRules.js";
|
|
12
|
+
import g from "./rules/jsdoc.js";
|
|
13
|
+
import d from "./rules/stylistic.js";
|
|
14
|
+
import u from "./rules/vue.js";
|
|
15
|
+
import { merge as b, mergeAll as o } from "./main.js";
|
|
16
|
+
const X = b(
|
|
17
|
+
o(t.configs["flat/recommended"], s.configs["flat/recommended"]),
|
|
18
|
+
m.flatConfigs.recommended,
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
20
|
+
o(e.configs.base.recommended),
|
|
21
|
+
i.configs["flat/recommended"],
|
|
22
|
+
l(),
|
|
23
|
+
n,
|
|
24
|
+
a,
|
|
25
|
+
c,
|
|
26
|
+
{ plugins: { "@stylistic": r } },
|
|
27
|
+
d,
|
|
28
|
+
g,
|
|
29
|
+
u,
|
|
30
|
+
f(),
|
|
31
|
+
{
|
|
32
|
+
languageOptions: {
|
|
33
|
+
parserOptions: {
|
|
34
|
+
sourceType: "module",
|
|
35
|
+
ecmaFeatures: {
|
|
36
|
+
jsx: !0
|
|
37
|
+
},
|
|
38
|
+
extraFileExtensions: [".vue"]
|
|
39
|
+
},
|
|
40
|
+
globals: {
|
|
41
|
+
...p.browser
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
export {
|
|
47
|
+
X as default
|
|
48
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import o from "@stylistic/eslint-plugin";
|
|
2
|
+
import r from "eslint-config-airbnb-extended";
|
|
3
|
+
import { importX as m } from "eslint-plugin-import-x";
|
|
4
|
+
import i from "eslint-plugin-jsdoc";
|
|
5
|
+
import { p as t, a as s } from "./base-BA0DI93B.js";
|
|
6
|
+
import e from "./rules/core.js";
|
|
7
|
+
import p from "./rules/cspell.js";
|
|
8
|
+
import f from "./rules/importRules.js";
|
|
9
|
+
import c from "./rules/jsdoc.js";
|
|
10
|
+
import l from "./rules/stylistic.js";
|
|
11
|
+
import { merge as n, mergeAll as a } from "./main.js";
|
|
12
|
+
const P = n(
|
|
13
|
+
m.flatConfigs.recommended,
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
15
|
+
a(r.configs.base.recommended),
|
|
16
|
+
i.configs["flat/recommended"],
|
|
17
|
+
t(),
|
|
18
|
+
e,
|
|
19
|
+
f,
|
|
20
|
+
p,
|
|
21
|
+
{ plugins: { "@stylistic": o } },
|
|
22
|
+
l,
|
|
23
|
+
c,
|
|
24
|
+
s()
|
|
25
|
+
);
|
|
26
|
+
export {
|
|
27
|
+
P as default
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@eslint/js"),c=require("@stylistic/eslint-plugin"),o=require("eslint-config-airbnb-extended"),n=require("eslint-plugin-import-x"),u=require("eslint-plugin-jsdoc"),e=require("typescript-eslint"),r=require("./base-B-PS5UHr.cjs"),l=require("./rules/core.cjs"),p=require("./rules/cspell.cjs"),d=require("./rules/importRules.cjs"),m=require("./rules/jsdoc.cjs"),g=require("./rules/stylistic.cjs"),a=require("./rules/typescript.cjs"),s=require("./main.cjs"),f=s.mergeAll(e.config(i.configs.recommended,n.importX.flatConfigs.recommended,o.configs.base.all,...e.configs.recommended,...e.configs.recommendedTypeChecked.filter(t=>!t.plugins),u.configs["flat/recommended-typescript-error"],s.merge(r.preConfig(),l,d,p,{plugins:{"@stylistic":c}},g,m,a,r.postConfig(),{settings:{jsdoc:{mode:"typescript",tagNamePreference:{callback:"watch",desc:"use"}},"import/resolver":{typescript:!0,node:!0}}})));exports.default=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("globals"),o=require("./main.cjs"),t=require("./index-D-NRhaYV.cjs"),n=o.merge(t.default,{languageOptions:{globals:{...e.node}}});exports.default=n;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import e from "@eslint/js";
|
|
2
|
+
import t from "@stylistic/eslint-plugin";
|
|
3
|
+
import m from "eslint-config-airbnb-extended";
|
|
4
|
+
import { importX as i } from "eslint-plugin-import-x";
|
|
5
|
+
import s from "eslint-plugin-jsdoc";
|
|
6
|
+
import r from "typescript-eslint";
|
|
7
|
+
import { p, a as c } from "./base-BA0DI93B.js";
|
|
8
|
+
import f from "./rules/core.js";
|
|
9
|
+
import n from "./rules/cspell.js";
|
|
10
|
+
import l from "./rules/importRules.js";
|
|
11
|
+
import d from "./rules/jsdoc.js";
|
|
12
|
+
import g from "./rules/stylistic.js";
|
|
13
|
+
import a from "./rules/typescript.js";
|
|
14
|
+
import { mergeAll as u, merge as y } from "./main.js";
|
|
15
|
+
const $ = u(r.config(
|
|
16
|
+
e.configs.recommended,
|
|
17
|
+
i.flatConfigs.recommended,
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
19
|
+
m.configs.base.all,
|
|
20
|
+
...r.configs.recommended,
|
|
21
|
+
...r.configs.recommendedTypeChecked.filter((o) => !o.plugins),
|
|
22
|
+
s.configs["flat/recommended-typescript-error"],
|
|
23
|
+
y(p(), f, l, n, { plugins: { "@stylistic": t } }, g, d, a, c(), {
|
|
24
|
+
settings: {
|
|
25
|
+
jsdoc: {
|
|
26
|
+
mode: "typescript",
|
|
27
|
+
tagNamePreference: {
|
|
28
|
+
callback: "watch",
|
|
29
|
+
desc: "use"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"import/resolver": {
|
|
33
|
+
typescript: !0,
|
|
34
|
+
node: !0
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
));
|
|
39
|
+
export {
|
|
40
|
+
$ as default
|
|
41
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("globals"),t=require("./main.cjs"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("globals"),t=require("./main.cjs"),n=require("./index-BBpi_Vtq.cjs"),o=t.merge(n.default,{languageOptions:{globals:{...e.node}}});exports.default=o;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "globals";
|
|
2
2
|
import { merge as r } from "./main.js";
|
|
3
|
-
import t from "./index-
|
|
4
|
-
const
|
|
3
|
+
import t from "./index-DbBU_JDe.js";
|
|
4
|
+
const s = r(t, {
|
|
5
5
|
languageOptions: {
|
|
6
6
|
globals: {
|
|
7
7
|
...o.node
|
|
@@ -9,5 +9,5 @@ const a = r(t, {
|
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
s as default
|
|
13
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("globals"),r=require("./main.cjs"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("globals"),r=require("./main.cjs"),t=require("./index-D-NRhaYV.cjs"),o=r.merge(t.default,{languageOptions:{globals:{...e.browser}}});exports.default=o;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import r from "@stylistic/eslint-plugin";
|
|
2
|
+
import e from "eslint-config-airbnb-extended";
|
|
3
|
+
import { importX as m } from "eslint-plugin-import-x";
|
|
4
|
+
import i from "eslint-plugin-jsdoc";
|
|
5
|
+
import t from "eslint-plugin-vue";
|
|
6
|
+
import s from "eslint-plugin-vue-scoped-css";
|
|
7
|
+
import p from "globals";
|
|
8
|
+
import { a as f, p as l } from "./base-BA0DI93B.js";
|
|
9
|
+
import n from "./rules/core.js";
|
|
10
|
+
import c from "./rules/cspell.js";
|
|
11
|
+
import a from "./rules/importRules.js";
|
|
12
|
+
import u from "./rules/jsdoc.js";
|
|
13
|
+
import g from "./rules/stylistic.js";
|
|
14
|
+
import d from "./rules/vue2.js";
|
|
15
|
+
import { merge as b, mergeAll as o } from "./main.js";
|
|
16
|
+
const X = b(
|
|
17
|
+
o(t.configs["flat/vue2-recommended"], s.configs["flat/vue2-recommended"]),
|
|
18
|
+
m.flatConfigs.recommended,
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
20
|
+
o(e.configs.base.recommended),
|
|
21
|
+
i.configs["flat/recommended"],
|
|
22
|
+
l(),
|
|
23
|
+
n,
|
|
24
|
+
a,
|
|
25
|
+
c,
|
|
26
|
+
{ plugins: { "@stylistic": r } },
|
|
27
|
+
g,
|
|
28
|
+
u,
|
|
29
|
+
d,
|
|
30
|
+
f(),
|
|
31
|
+
{
|
|
32
|
+
languageOptions: {
|
|
33
|
+
parserOptions: {
|
|
34
|
+
sourceType: "module",
|
|
35
|
+
ecmaFeatures: {
|
|
36
|
+
jsx: !0
|
|
37
|
+
},
|
|
38
|
+
extraFileExtensions: [".vue"]
|
|
39
|
+
},
|
|
40
|
+
globals: {
|
|
41
|
+
...p.browser
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
export {
|
|
47
|
+
X as default
|
|
48
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import m from "@eslint/js";
|
|
2
|
+
import i from "@stylistic/eslint-plugin";
|
|
3
|
+
import s from "eslint-config-airbnb-extended";
|
|
4
|
+
import { importX as p } from "eslint-plugin-import-x";
|
|
5
|
+
import n from "eslint-plugin-jsdoc";
|
|
6
|
+
import l from "eslint-plugin-vue";
|
|
7
|
+
import c from "eslint-plugin-vue-scoped-css";
|
|
8
|
+
import f from "globals";
|
|
9
|
+
import t from "typescript-eslint";
|
|
10
|
+
import { a, p as d } from "./base-BA0DI93B.js";
|
|
11
|
+
import g from "./rules/core.js";
|
|
12
|
+
import u from "./rules/cspell.js";
|
|
13
|
+
import y from "./rules/importRules.js";
|
|
14
|
+
import b from "./rules/jsdoc.js";
|
|
15
|
+
import x from "./rules/stylistic.js";
|
|
16
|
+
import C from "./rules/typescript.js";
|
|
17
|
+
import j from "./rules/vue.js";
|
|
18
|
+
import { dirname as v } from "node:path";
|
|
19
|
+
import { fileURLToPath as P } from "node:url";
|
|
20
|
+
import { FlatCompat as w } from "@eslint/eslintrc";
|
|
21
|
+
import { mergeAll as o, merge as F } from "./main.js";
|
|
22
|
+
const r = new w({
|
|
23
|
+
baseDirectory: v(P(import.meta.url))
|
|
24
|
+
}), R = {
|
|
25
|
+
extends: (...e) => o(r.extends(...e)),
|
|
26
|
+
config: (e) => o(r.config(e)),
|
|
27
|
+
plugins: (...e) => o(r.plugins(...e)),
|
|
28
|
+
env: (e) => o(r.env(e))
|
|
29
|
+
}, M = o(t.config(
|
|
30
|
+
m.configs.recommended,
|
|
31
|
+
p.flatConfigs.recommended,
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
33
|
+
s.configs.base.all,
|
|
34
|
+
...t.configs.recommended,
|
|
35
|
+
...l.configs["flat/recommended"].map((e) => (delete e.files, e)),
|
|
36
|
+
...c.configs["flat/recommended"],
|
|
37
|
+
n.configs["flat/recommended-typescript-error"],
|
|
38
|
+
F(R.extends("plugin:@cspell/recommended"), d(), g, y, u, { plugins: { "@stylistic": i } }, x, b, j, C, a(), {
|
|
39
|
+
languageOptions: {
|
|
40
|
+
globals: {
|
|
41
|
+
...f.browser
|
|
42
|
+
},
|
|
43
|
+
parserOptions: {
|
|
44
|
+
parser: "@typescript-eslint/parser",
|
|
45
|
+
sourceType: "module",
|
|
46
|
+
ecmaFeatures: {
|
|
47
|
+
jsx: !0
|
|
48
|
+
},
|
|
49
|
+
extraFileExtensions: [".vue"]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
settings: {
|
|
53
|
+
jsdoc: {
|
|
54
|
+
mode: "typescript",
|
|
55
|
+
tagNamePreference: {
|
|
56
|
+
callback: "watch",
|
|
57
|
+
desc: "use"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
})
|
|
62
|
+
));
|
|
63
|
+
export {
|
|
64
|
+
M as default
|
|
65
|
+
};
|
package/dist/main.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("node:fs"),m=require("node:path"),y=require("node:url"),w=require("@antfu/install-pkg"),h=require("ts-deepmerge"),b=require("node:console");var o=typeof document<"u"?document.currentScript:null;let u=!1;const d=new Set,v=["@cspell/eslint-plugin","@eslint/eslintrc","@eslint/js","@stylistic/eslint-plugin","@stylistic/eslint-plugin-migrate","@types/eslint","@types/eslint__eslintrc","@types/eslint__js","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","eslint","eslint-config-airbnb-base","eslint-config-airbnb-typescript","eslint-import-resolver-typescript","eslint-plugin-import","eslint-plugin-jsdoc","globals","typescript","typescript-eslint"];function p(e){const n=m.resolve(e,"package.json"),r=g.readFileSync(n,"utf8");if(!r)throw new Error(`Unable to locate package.json: ${n}`);return JSON.parse(r)}function R(){const e=p(process.cwd());return{...e.dependencies,...e.devDependencies}}function S(){return p(y.fileURLToPath(new URL("../",typeof document>"u"?require("url").pathToFileURL(__filename).href:o&&o.tagName.toUpperCase()==="SCRIPT"&&o.src||new URL("main.cjs",document.baseURI).href))).dependencies}async function q(){if(u)return;const e=R(),r=Object.entries(S()).filter(([s,i])=>v.includes(s)&&!d.has(s)&&(!e[s]||e[s]!==i));if(!r.length)return;const t=r.map(([s,i])=>`${s}@${i.replace(/^\W+/,"")}`);console.info("Missing dependencies detected:"),console.info(t.map(s=>` - ${s}`).join(`
|
|
2
2
|
`)),console.info(`
|
|
3
|
-
Installing dependencies:`),await w.installPackage(t,{dev:!0,additionalArgs:["-E"]}),process.exit(1)}function P(e){if(typeof e=="boolean"){u
|
|
3
|
+
Installing dependencies:`),await w.installPackage(t,{dev:!0,additionalArgs:["-E"]}),process.exit(1)}function P(e){if(typeof e=="boolean"){u=e;return}e.forEach(n=>d.add(String(n)))}function l(...e){return h.merge.withOptions({mergeArrays:!1},...e)}const f=new Set;function k(e){e.forEach(n=>{f.add(n)})}function x(e){if(!Array.isArray(e))return"warn";const[,...n]=e;return["warn",...n]}function c(e,n){let r=n||f;return Array.isArray(r)&&(r=new Set(r)),!e||!r.size?e:(n&&r.forEach(t=>{e[t]||b.warn(`Unknown rule "${t}". Please remove it from the silenced rules list.`)}),Object.entries(e).reduce((t,[s,i])=>(i&&(t[s]=r.has(s)?x(i):i),t),{}))}function j(...e){return e.flat().reduce((n,r)=>l(n,r),{})}const a={async config(){return Promise.resolve().then(()=>require("./index-BmBugWe4.cjs"))},async javascript(){return Promise.resolve().then(()=>require("./index-BBpi_Vtq.cjs"))},async"javascript-node"(){return Promise.resolve().then(()=>require("./index-DgHV2stm.cjs"))},async"javascript-dom"(){return Promise.resolve().then(()=>require("./index-BjqFNarr.cjs"))},async typescript(){return Promise.resolve().then(()=>require("./index-D-NRhaYV.cjs"))},async"typescript-node"(){return Promise.resolve().then(()=>require("./index-D9bTg7j3.cjs"))},async"typescript-dom"(){return Promise.resolve().then(()=>require("./index-fI1e4MqV.cjs"))},async vue3(){return Promise.resolve().then(()=>require("./index-BQhhxQGU.cjs"))},async"vue3-typescript"(){return Promise.resolve().then(()=>require("./index-C05_dgDY.cjs"))},async vue2(){return Promise.resolve().then(()=>require("./index-BGJZVkll.cjs"))},async jest(){return Promise.resolve().then(()=>require("./index-jfME37P0.cjs"))},async"jsdoc-based-ts"(){return Promise.resolve().then(()=>require("./index-B7Hdni5X.cjs"))}};async function D(e){await q();const n=e.preset.map(async s=>typeof a[s]=="function"&&(await a[s]()).default).filter(Boolean),r=await Promise.all(n),t=l(r.reduce((s,i)=>l(s,i),{}),e.config);return t?(e.silenceRules?t.rules=c(t.rules,e.silenceRules):t.rules=c(t.rules),t):Promise.reject(new Error("No config found"))}exports.merge=l;exports.mergeAll=j;exports.silenceDependencyWarning=P;exports.silenceRules=k;exports.useInsider=D;
|
package/dist/main.d.ts
CHANGED
|
@@ -16,10 +16,10 @@ declare const configMap: {
|
|
|
16
16
|
interface Config {
|
|
17
17
|
/** Precedence order will affect how rules applied */
|
|
18
18
|
preset: (keyof typeof configMap)[];
|
|
19
|
-
config: Linter.
|
|
19
|
+
config: Linter.Config;
|
|
20
20
|
silenceRules?: string[];
|
|
21
21
|
}
|
|
22
|
-
export declare function useInsider(config: Config): Promise<Linter.
|
|
22
|
+
export declare function useInsider(config: Config): Promise<Linter.Config>;
|
|
23
23
|
export { merge } from './utils/merge';
|
|
24
24
|
export { mergeAll } from './utils/mergeAllConfig';
|
|
25
25
|
export { silenceDependencyWarning } from './utils/ensureDependencies';
|
package/dist/main.js
CHANGED
|
@@ -59,7 +59,7 @@ Installing dependencies:`), await h(n, { dev: !0, additionalArgs: ["-E"] }), pro
|
|
|
59
59
|
}
|
|
60
60
|
function $(e) {
|
|
61
61
|
if (typeof e == "boolean") {
|
|
62
|
-
d =
|
|
62
|
+
d = e;
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
e.forEach((t) => f.add(String(t)));
|
|
@@ -163,34 +163,34 @@ function U(...e) {
|
|
|
163
163
|
}
|
|
164
164
|
const p = {
|
|
165
165
|
async config() {
|
|
166
|
-
return import("./index-
|
|
166
|
+
return import("./index-C2p6z9H4.js");
|
|
167
167
|
},
|
|
168
168
|
async javascript() {
|
|
169
|
-
return import("./index-
|
|
169
|
+
return import("./index-CQ1RJV11.js");
|
|
170
170
|
},
|
|
171
171
|
async "javascript-node"() {
|
|
172
|
-
return import("./index-
|
|
172
|
+
return import("./index-BnTzUbum.js");
|
|
173
173
|
},
|
|
174
174
|
async "javascript-dom"() {
|
|
175
|
-
return import("./index-
|
|
175
|
+
return import("./index-IJ5JatZj.js");
|
|
176
176
|
},
|
|
177
177
|
async typescript() {
|
|
178
|
-
return import("./index-
|
|
178
|
+
return import("./index-DbBU_JDe.js");
|
|
179
179
|
},
|
|
180
180
|
async "typescript-node"() {
|
|
181
|
-
return import("./index-
|
|
181
|
+
return import("./index-DvOKf9k2.js");
|
|
182
182
|
},
|
|
183
183
|
async "typescript-dom"() {
|
|
184
|
-
return import("./index-
|
|
184
|
+
return import("./index-D1KdUFk4.js");
|
|
185
185
|
},
|
|
186
186
|
async vue3() {
|
|
187
|
-
return import("./index-
|
|
187
|
+
return import("./index-CG4b8J5I.js");
|
|
188
188
|
},
|
|
189
189
|
async "vue3-typescript"() {
|
|
190
|
-
return import("./index-
|
|
190
|
+
return import("./index-o9oM4y-o.js");
|
|
191
191
|
},
|
|
192
192
|
async vue2() {
|
|
193
|
-
return import("./index-
|
|
193
|
+
return import("./index-nLGFKikH.js");
|
|
194
194
|
},
|
|
195
195
|
async jest() {
|
|
196
196
|
return import("./index-CG7O0RJO.js");
|
package/dist/rules/core.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r={"no-spaced-func":"off"},e={rules:{...r,"arrow-parens":"off",camelcase:["error",{allow:["^\\$_"]}],"class-methods-use-this":"off","comma-dangle":"off","consistent-return":["error"],curly:["error","all"],"dot-notation":["error"],"function-paren-newline":"off","guard-for-in":"error","handle-callback-err":["error"],indent:"off","max-len":"off","new-cap":["error"],"no-alert":["error"],"no-bitwise":["error",{allow:["~"]}],"no-caller":["error"],"no-case-declarations":["error"],"no-confusing-arrow":["error",{allowParens:!0}],"no-console":["error"],"no-debugger":["error"],"no-div-regex":["error"],"no-dupe-args":["error"],"no-dupe-keys":["error"],"no-duplicate-case":["error"],"no-else-return":["error"],"no-empty":["error"],"no-extra-bind":["error"],"no-extra-boolean-cast":"error","no-fallthrough":["error"],"no-implicit-coercion":["error",{boolean:!0,number:!0,string:!0}],"implicit-arrow-linebreak":"off","no-invalid-regexp":["error"],"no-iterator":["error"],"no-mixed-operators":"off","no-multi-spaces":"off","no-multi-str":["error"],"no-multiple-empty-lines":"off","no-native-reassign":"error","no-nested-ternary":["error"],"no-new":"off","no-new-object":["error"],"no-new-require":["error"],"no-param-reassign":["error",{props:!1}],"no-plusplus":"off","no-process-exit":["error"],"no-promise-executor-return":["error",{allowVoid:!0}],"no-return-assign":["error","except-parens"],"no-self-compare":["error"],"no-sequences":["error"],"no-shadow":["error",{allow:["state"]}],"no-undef":["error"],"no-underscore-dangle":"off","no-unexpected-multiline":["error"],"no-unreachable":["error"],"no-unused-vars":["error"],"no-use-before-define":"error","no-useless-call":["error"],"no-void":"off","no-with":["error"],"object-curly-newline":"off","object-shorthand":["error","always"],"padded-blocks":"off","prefer-const":["error",{destructuring:"all"}],"prefer-destructuring":["error"],radix:["error","as-needed"],semi:"off","space-before-function-paren":"off","space-in-parens":"off",strict:["error"],"use-isnan":["error"],"valid-typeof":["error"],"no-trailing-spaces":"off"}};module.exports=e;
|
|
1
|
+
"use strict";const r={"no-spaced-func":"off"},e={rules:{...r,"arrow-parens":"off",camelcase:["error",{allow:["^\\$_"]}],"class-methods-use-this":"off","comma-dangle":"off","consistent-return":["error"],curly:["error","all"],"dot-notation":["error"],"function-paren-newline":"off","guard-for-in":"error","handle-callback-err":["error"],indent:"off","max-len":"off","new-cap":["error"],"no-alert":["error"],"no-bitwise":["error",{allow:["~"]}],"no-caller":["error"],"no-case-declarations":["error"],"no-confusing-arrow":["error",{allowParens:!0}],"no-console":["error"],"no-debugger":["error"],"no-div-regex":["error"],"no-dupe-args":["error"],"no-dupe-keys":["error"],"no-duplicate-case":["error"],"no-else-return":["error"],"no-empty":["error"],"no-extra-bind":["error"],"no-extra-boolean-cast":"error","no-fallthrough":["error"],"no-implicit-coercion":["error",{boolean:!0,number:!0,string:!0}],"implicit-arrow-linebreak":"off","no-invalid-regexp":["error"],"no-iterator":["error"],"no-mixed-operators":"off","no-multi-spaces":"off","no-multi-str":["error"],"no-multiple-empty-lines":"off","no-native-reassign":"error","no-nested-ternary":["error"],"no-new":"off","no-new-object":["error"],"no-new-require":["error"],"no-param-reassign":["error",{props:!1}],"no-plusplus":"off","no-process-exit":["error"],"no-promise-executor-return":["error",{allowVoid:!0}],"no-return-assign":["error","except-parens"],"no-self-compare":["error"],"no-sequences":["error"],"no-shadow":["error",{allow:["state"]}],"no-undef":["error"],"no-underscore-dangle":"off","no-unexpected-multiline":["error"],"no-unreachable":["error"],"no-unused-vars":["error"],"no-use-before-define":"error","no-useless-call":["error"],"no-void":"off","no-with":["error"],"object-curly-newline":"off","object-shorthand":["error","always"],"padded-blocks":"off","prefer-const":["error",{destructuring:"all"}],"prefer-destructuring":["error"],radix:["error","as-needed"],semi:"off","space-before-function-paren":"off","space-in-parens":"off",strict:["error","never"],"use-isnan":["error"],"valid-typeof":["error"],"no-trailing-spaces":"off"}};module.exports=e;
|
package/dist/rules/core.d.ts
CHANGED
package/dist/rules/core.js
CHANGED
package/dist/rules/cspell.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e={rules:{"import/extensions":["error",{css:"always",js:"never",json:"always",jsx:"never",sass:"always",scss:"always",svg:"always",ts:"never",tsx:"never",vue:"always"}],"import/no-cycle":"off","import/no-unresolved":"off","import/order":["error",{alphabetize:{caseInsensitive:!0,order:"asc"},groups:["index","builtin","object","type","external","parent","internal","sibling"],pathGroups:[{group:"internal",pattern:"@/**"}]}],"import/prefer-default-export":"off"}};module.exports=e;
|
|
1
|
+
"use strict";const e={rules:{"import-x/extensions":["error",{css:"always",js:"never",json:"always",jsx:"never",sass:"always",scss:"always",svg:"always",ts:"never",tsx:"never",vue:"always"}],"import-x/no-cycle":"off","import-x/no-unresolved":"off","import-x/order":["error",{alphabetize:{caseInsensitive:!0,order:"asc"},groups:["index","builtin","object","type","external","parent","internal","sibling"],pathGroups:[{group:"internal",pattern:"@/**"}]}],"import-x/prefer-default-export":"off"}};module.exports=e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const e = {
|
|
2
2
|
rules: {
|
|
3
|
-
"import/extensions": ["error", {
|
|
3
|
+
"import-x/extensions": ["error", {
|
|
4
4
|
css: "always",
|
|
5
5
|
js: "never",
|
|
6
6
|
json: "always",
|
|
@@ -12,9 +12,9 @@ const e = {
|
|
|
12
12
|
tsx: "never",
|
|
13
13
|
vue: "always"
|
|
14
14
|
}],
|
|
15
|
-
"import/no-cycle": "off",
|
|
16
|
-
"import/no-unresolved": "off",
|
|
17
|
-
"import/order": ["error", {
|
|
15
|
+
"import-x/no-cycle": "off",
|
|
16
|
+
"import-x/no-unresolved": "off",
|
|
17
|
+
"import-x/order": ["error", {
|
|
18
18
|
alphabetize: {
|
|
19
19
|
caseInsensitive: !0,
|
|
20
20
|
order: "asc"
|
|
@@ -25,7 +25,7 @@ const e = {
|
|
|
25
25
|
pattern: "@/**"
|
|
26
26
|
}]
|
|
27
27
|
}],
|
|
28
|
-
"import/prefer-default-export": "off"
|
|
28
|
+
"import-x/prefer-default-export": "off"
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
export {
|
package/dist/rules/jsdoc.d.ts
CHANGED
package/dist/rules/vue.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e={rules:{"vue/array-bracket-newline":["error"],"vue/array-bracket-spacing":["error","never"],"vue/array-element-newline":["error","consistent"],"vue/arrow-spacing":["error"],"vue/attribute-hyphenation":["error","always"],"vue/attributes-order":["error",{alphabetical:!0,order:["LIST_RENDERING","CONDITIONALS","DEFINITION","RENDER_MODIFIERS","GLOBAL","UNIQUE","SLOT","ATTR_SHORTHAND_BOOL","ATTR_STATIC","ATTR_DYNAMIC","TWO_WAY_BINDING","OTHER_DIRECTIVES","CONTENT","EVENTS"]}],"vue/brace-style":["error","1tbs"],"vue/camelcase":["error",{allow:["^\\$_"]}],"vue/comma-dangle":["error",{arrays:"always-multiline",exports:"always-multiline",functions:"never",imports:"always-multiline",objects:"always-multiline"}],"vue/comma-spacing":["error"],"vue/comma-style":["error","last"],"vue/component-definition-name-casing":["error","PascalCase"],"vue/component-name-in-template-casing":["error","PascalCase",{registeredComponentsOnly:!1,ignores:["component","transition"]}],"vue/
|
|
1
|
+
"use strict";const e={rules:{"vue/array-bracket-newline":["error"],"vue/array-bracket-spacing":["error","never"],"vue/array-element-newline":["error","consistent"],"vue/arrow-spacing":["error"],"vue/attribute-hyphenation":["error","always"],"vue/attributes-order":["error",{alphabetical:!0,order:["LIST_RENDERING","CONDITIONALS","DEFINITION","RENDER_MODIFIERS","GLOBAL","UNIQUE","SLOT","ATTR_SHORTHAND_BOOL","ATTR_STATIC","ATTR_DYNAMIC","TWO_WAY_BINDING","OTHER_DIRECTIVES","CONTENT","EVENTS"]}],"vue/brace-style":["error","1tbs"],"vue/camelcase":["error",{allow:["^\\$_"]}],"vue/comma-dangle":["error",{arrays:"always-multiline",exports:"always-multiline",functions:"never",imports:"always-multiline",objects:"always-multiline"}],"vue/comma-spacing":["error"],"vue/comma-style":["error","last"],"vue/component-definition-name-casing":["error","PascalCase"],"vue/component-name-in-template-casing":["error","PascalCase",{registeredComponentsOnly:!1,ignores:["component","transition"]}],"vue/block-order":["error",{order:["script[setup]","template","script:not([setup])","style"]}],"vue/dot-location":["error"],"vue/dot-notation":["error"],"vue/eqeqeq":["error"],"vue/func-call-spacing":["error"],"vue/html-closing-bracket-newline":["error",{singleline:"never",multiline:"always",selfClosingTag:{singleline:"never",multiline:"always"}}],"vue/html-end-tags":["error"],"vue/html-indent":["error",4],"vue/html-quotes":["error","double"],"vue/html-self-closing":["error"],"vue/html-closing-bracket-spacing":["error"],"vue/key-spacing":["error"],"vue/keyword-spacing":["error"],"vue/max-attributes-per-line":["error",{multiline:{max:1},singleline:1}],"vue/max-len":["error",120,{ignoreComments:!0,ignoreRegExpLiterals:!0,ignoreTemplateLiterals:!0,ignoreTrailingComments:!0,ignoreUrls:!0}],"vue/multi-word-component-names":"off","vue/multiline-ternary":["error","always-multiline"],"vue/mustache-interpolation-spacing":["error","always"],"vue/no-bare-strings-in-template":["error",{attributes:{"/.+/":["title","aria-label","aria-placeholder","aria-roledescription","aria-valuetext","description","placeholder","text","label","alt"]},directives:["v-text"]}],"vue/no-console":["error"],"vue/no-constant-condition":["error"],"vue/no-empty-component-block":["error"],"vue/no-empty-pattern":["error"],"vue/no-extra-parens":["error","all",{allowParensAfterCommentPattern:"@type",enforceForArrowConditionals:!1,nestedBinaryExpressions:!1,returnAssign:!1}],"vue/no-irregular-whitespace":["error"],"vue/no-multi-spaces":["error"],"vue/no-multiple-objects-in-class":["error"],"vue/no-potential-component-option-typo":["error"],"vue/no-reserved-component-names":["error"],"vue/no-restricted-syntax":["error"],"vue/no-spaces-around-equal-signs-in-attribute":["error"],"vue/no-sparse-arrays":["error"],"vue/no-undef-components":["error"],"vue/no-unsupported-features":["error"],"vue/no-unused-properties":["error"],"vue/no-unused-refs":["error"],"vue/no-use-computed-property-like-method":["error"],"vue/no-use-v-if-with-v-for":"error","vue/no-useless-concat":["error"],"vue/no-useless-mustaches":["error"],"vue/no-useless-v-bind":["error"],"vue/no-v-text":["error"],"vue/object-curly-newline":["error",{consistent:!0}],"vue/object-curly-spacing":["error","always"],"vue/object-property-newline":["error",{allowAllPropertiesOnSameLine:!0}],"vue/object-shorthand":["error","always"],"vue/order-in-components":["error",{order:["el","name","parent","functional",["delimiters","comments"],["components","directives","filters"],"extends","mixins","inheritAttrs","model",["props","propsData"],"data","computed","watch","LIFECYCLE_HOOKS","methods",["template","render"],"renderError"]}],"vue/padding-line-between-blocks":["error"],"vue/prefer-separate-static-class":["error"],"vue/prefer-template":["error"],"vue/prefer-true-attribute-shorthand":["error"],"vue/prop-name-casing":["error","camelCase"],"vue/quote-props":["error","as-needed"],"vue/require-default-prop":["error"],"vue/require-prop-type-constructor":"error","vue/require-prop-types":["error"],"@stylistic/indent":"off","vue/script-indent":["error",4,{switchCase:1}],"vue/space-in-parens":["error","never"],"vue/space-infix-ops":["error"],"vue/space-unary-ops":["error"],"vue/template-curly-spacing":["error"],"vue/this-in-template":["error","never"],"vue/v-bind-style":["error","shorthand"],"vue/v-on-function-call":"off","vue/v-on-style":["error","shorthand"],"vue/v-on-event-hyphenation":"off","vue/no-setup-props-destructure":"off","vue/block-tag-newline":["error",{singleline:"always",multiline:"always"}],"vue/require-explicit-emits":["error"],"vue/no-required-prop-with-default":["error"],"vue/no-ref-object-reactivity-loss":["error"],"vue/no-template-target-blank":["error"],"vue/define-emits-declaration":["error","type-based"],"vue/define-props-declaration":["error","type-based"],"vue-scoped-css/enforce-style-type":["error",{allows:["scoped","module"]}]}};module.exports=e;
|
package/dist/rules/vue.d.ts
CHANGED
package/dist/rules/vue.js
CHANGED
|
@@ -45,7 +45,7 @@ const e = {
|
|
|
45
45
|
"transition"
|
|
46
46
|
]
|
|
47
47
|
}],
|
|
48
|
-
"vue/
|
|
48
|
+
"vue/block-order": ["error", {
|
|
49
49
|
order: [
|
|
50
50
|
"script[setup]",
|
|
51
51
|
"template",
|
|
@@ -195,7 +195,7 @@ const e = {
|
|
|
195
195
|
}],
|
|
196
196
|
"vue/require-explicit-emits": ["error"],
|
|
197
197
|
"vue/no-required-prop-with-default": ["error"],
|
|
198
|
-
"vue/no-ref-object-
|
|
198
|
+
"vue/no-ref-object-reactivity-loss": ["error"],
|
|
199
199
|
"vue/no-template-target-blank": ["error"],
|
|
200
200
|
"vue/define-emits-declaration": ["error", "type-based"],
|
|
201
201
|
"vue/define-props-declaration": ["error", "type-based"],
|
package/dist/rules/vue2.d.ts
CHANGED
package/dist/utils/compat.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FlatCompat } from '@eslint/eslintrc';
|
|
2
2
|
export declare const compat: {
|
|
3
|
-
extends: (...configsToExtend: Parameters<FlatCompat["extends"]>) => import("eslint").Linter.
|
|
4
|
-
config: (eslintrcConfig: Parameters<FlatCompat["config"]>[0]) => import("eslint").Linter.
|
|
5
|
-
plugins: (...plugins: Parameters<FlatCompat["plugins"]>) => import("eslint").Linter.
|
|
6
|
-
env: (envConfig: Parameters<FlatCompat["env"]>[0]) => import("eslint").Linter.
|
|
3
|
+
extends: (...configsToExtend: Parameters<FlatCompat["extends"]>) => import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
|
|
4
|
+
config: (eslintrcConfig: Parameters<FlatCompat["config"]>[0]) => import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
|
|
5
|
+
plugins: (...plugins: Parameters<FlatCompat["plugins"]>) => import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
|
|
6
|
+
env: (envConfig: Parameters<FlatCompat["env"]>[0]) => import("eslint").Linter.Config<import("eslint").Linter.RulesRecord>;
|
|
7
7
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
export declare function mergeAll(...configs: Linter.
|
|
2
|
+
export declare function mergeAll(...configs: Linter.Config[][]): Linter.Config<Linter.RulesRecord>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.10.0-beta.1",
|
|
5
5
|
"description": "A collection of ESLint configurations provided by @useinsider, offering support for various environments including Vanilla JS, TypeScript, and framework-specific setups such as Vue 3.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"useinsider",
|
|
@@ -64,57 +64,58 @@
|
|
|
64
64
|
"pnpm": ">=9"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@antfu/install-pkg": "1.
|
|
68
|
-
"@cspell/eslint-plugin": "
|
|
69
|
-
"@eslint/
|
|
70
|
-
"@eslint/
|
|
67
|
+
"@antfu/install-pkg": "1.1.0",
|
|
68
|
+
"@cspell/eslint-plugin": "9.1.1",
|
|
69
|
+
"@eslint/compat": "1.3.0",
|
|
70
|
+
"@eslint/eslintrc": "3.3.1",
|
|
71
|
+
"@eslint/js": "9.29.0",
|
|
71
72
|
"@stylistic/eslint-plugin": "3.1.0",
|
|
72
|
-
"@stylistic/eslint-plugin-migrate": "
|
|
73
|
-
"@types/eslint": "
|
|
74
|
-
"@types/eslint__eslintrc": "
|
|
75
|
-
"@types/eslint__js": "
|
|
76
|
-
"@typescript-eslint/eslint-plugin": "
|
|
77
|
-
"@typescript-eslint/parser": "
|
|
78
|
-
"eslint": "
|
|
79
|
-
"eslint-config-airbnb-
|
|
80
|
-
"eslint-
|
|
81
|
-
"eslint-import-resolver-typescript": "3.8.3",
|
|
73
|
+
"@stylistic/eslint-plugin-migrate": "4.4.1",
|
|
74
|
+
"@types/eslint": "9.6.1",
|
|
75
|
+
"@types/eslint__eslintrc": "3.3.0",
|
|
76
|
+
"@types/eslint__js": "9.14.0",
|
|
77
|
+
"@typescript-eslint/eslint-plugin": "8.34.1",
|
|
78
|
+
"@typescript-eslint/parser": "8.34.1",
|
|
79
|
+
"eslint": "9.29.0",
|
|
80
|
+
"eslint-config-airbnb-extended": "2.1.0",
|
|
81
|
+
"eslint-import-resolver-typescript": "4.4.3",
|
|
82
82
|
"eslint-plugin-import": "2.31.0",
|
|
83
|
-
"eslint-plugin-
|
|
84
|
-
"
|
|
83
|
+
"eslint-plugin-import-x": "4.15.2",
|
|
84
|
+
"eslint-plugin-jsdoc": "51.0.3",
|
|
85
|
+
"globals": "16.2.0",
|
|
85
86
|
"ts-deepmerge": "7.0.2",
|
|
86
|
-
"typescript": "5.
|
|
87
|
-
"typescript-eslint": "8.
|
|
87
|
+
"typescript": "5.8.3",
|
|
88
|
+
"typescript-eslint": "8.34.1"
|
|
88
89
|
},
|
|
89
90
|
"devDependencies": {
|
|
90
|
-
"@rollup/plugin-typescript": "12.1.
|
|
91
|
+
"@rollup/plugin-typescript": "12.1.3",
|
|
91
92
|
"@semantic-release/changelog": "6.0.3",
|
|
92
93
|
"@semantic-release/git": "10.0.1",
|
|
93
94
|
"@types/fs-extra": "11.0.4",
|
|
94
|
-
"@types/node": "
|
|
95
|
+
"@types/node": "24.0.3",
|
|
95
96
|
"@useinsider/release-config": "workspace:*",
|
|
96
|
-
"@vitest/coverage-v8": "3.
|
|
97
|
-
"@vue/eslint-config-typescript": "
|
|
98
|
-
"eslint-plugin-jest": "
|
|
99
|
-
"eslint-plugin-vue": "
|
|
100
|
-
"eslint-plugin-vue-scoped-css": "2.
|
|
97
|
+
"@vitest/coverage-v8": "3.2.4",
|
|
98
|
+
"@vue/eslint-config-typescript": "14.5.1",
|
|
99
|
+
"eslint-plugin-jest": "29.0.1",
|
|
100
|
+
"eslint-plugin-vue": "10.2.0",
|
|
101
|
+
"eslint-plugin-vue-scoped-css": "2.10.0",
|
|
101
102
|
"fs-extra": "11.3.0",
|
|
102
103
|
"rollup-plugin-typescript-paths": "1.5.0",
|
|
103
|
-
"rollup-plugin-visualizer": "
|
|
104
|
+
"rollup-plugin-visualizer": "6.0.3",
|
|
104
105
|
"semantic-release": "24.2.3",
|
|
105
106
|
"semantic-release-monorepo": "8.0.2",
|
|
106
107
|
"tslib": "2.8.1",
|
|
107
108
|
"vite": "6.3.5",
|
|
108
109
|
"vite-tsconfig-paths": "5.1.4",
|
|
109
|
-
"vitest": "3.
|
|
110
|
-
"vue": "3.5.
|
|
111
|
-
"vue-eslint-parser": "10.1.
|
|
110
|
+
"vitest": "3.2.4",
|
|
111
|
+
"vue": "3.5.17",
|
|
112
|
+
"vue-eslint-parser": "10.1.3"
|
|
112
113
|
},
|
|
113
114
|
"optionalDependencies": {
|
|
114
115
|
"@rushstack/eslint-patch": ">=1.10.5",
|
|
115
|
-
"@vue/eslint-config-typescript": "
|
|
116
|
-
"eslint-plugin-vue": "
|
|
117
|
-
"eslint-plugin-vue-scoped-css": "2.
|
|
118
|
-
"vue-eslint-parser": "10.1.
|
|
116
|
+
"@vue/eslint-config-typescript": "14.5.1",
|
|
117
|
+
"eslint-plugin-vue": "10.2.0",
|
|
118
|
+
"eslint-plugin-vue-scoped-css": "2.10.0",
|
|
119
|
+
"vue-eslint-parser": "10.1.3"
|
|
119
120
|
}
|
|
120
121
|
}
|
package/dist/base-C2fq_o3u.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("node:path"),n=require("node:url"),i=require("@eslint/eslintrc"),c=require("@eslint/js"),r=require("./main.cjs");var e=typeof document<"u"?document.currentScript:null;const s=new i.FlatCompat({baseDirectory:t.dirname(n.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:e&&e.tagName.toUpperCase()==="SCRIPT"&&e.src||new URL("base-C2fq_o3u.cjs",document.baseURI).href))});function u(o=[]){return r.merge(c.configs.recommended,r.mergeAll(s.plugins("import","@stylistic","@stylistic/migrate","@cspell",...o)))}function a(){return r.merge({languageOptions:{ecmaVersion:2022},rules:{"jsdoc/require-param":"off","jsdoc/require-jsdoc":"off","jsdoc/require-returns":"off","jsdoc/require-param-type":"off","jsdoc/check-param-names":"off"}})}exports.postConfig=a;exports.preConfig=u;
|
package/dist/base-DhxoXy40.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { dirname as e } from "node:path";
|
|
2
|
-
import { fileURLToPath as t } from "node:url";
|
|
3
|
-
import { FlatCompat as i } from "@eslint/eslintrc";
|
|
4
|
-
import m from "@eslint/js";
|
|
5
|
-
import { merge as r, mergeAll as s } from "./main.js";
|
|
6
|
-
const a = new i({
|
|
7
|
-
baseDirectory: e(t(import.meta.url))
|
|
8
|
-
});
|
|
9
|
-
function l(o = []) {
|
|
10
|
-
return r(m.configs.recommended, s(a.plugins("import", "@stylistic", "@stylistic/migrate", "@cspell", ...o)));
|
|
11
|
-
}
|
|
12
|
-
function d() {
|
|
13
|
-
return r({
|
|
14
|
-
languageOptions: {
|
|
15
|
-
ecmaVersion: 2022
|
|
16
|
-
},
|
|
17
|
-
rules: {
|
|
18
|
-
"jsdoc/require-param": "off",
|
|
19
|
-
"jsdoc/require-jsdoc": "off",
|
|
20
|
-
"jsdoc/require-returns": "off",
|
|
21
|
-
"jsdoc/require-param-type": "off",
|
|
22
|
-
"jsdoc/check-param-names": "off"
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
d as a,
|
|
28
|
-
l as p
|
|
29
|
-
};
|
package/dist/compat-DfBTP0AK.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { dirname as m } from "node:path";
|
|
2
|
-
import { fileURLToPath as r } from "node:url";
|
|
3
|
-
import { FlatCompat as i } from "@eslint/eslintrc";
|
|
4
|
-
import { mergeAll as t } from "./main.js";
|
|
5
|
-
const e = new i({
|
|
6
|
-
baseDirectory: m(r(import.meta.url))
|
|
7
|
-
}), l = {
|
|
8
|
-
extends: (...o) => t(e.extends(...o)),
|
|
9
|
-
config: (o) => t(e.config(o)),
|
|
10
|
-
plugins: (...o) => t(e.plugins(...o)),
|
|
11
|
-
env: (o) => t(e.env(o))
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
l as c
|
|
15
|
-
};
|
package/dist/compat-S2mgbwTA.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("node:path"),c=require("node:url"),i=require("@eslint/eslintrc"),t=require("./main.cjs");var r=typeof document<"u"?document.currentScript:null;const n=new i.FlatCompat({baseDirectory:o.dirname(c.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:r&&r.tagName.toUpperCase()==="SCRIPT"&&r.src||new URL("compat-S2mgbwTA.cjs",document.baseURI).href))}),a={extends:(...e)=>t.mergeAll(n.extends(...e)),config:e=>t.mergeAll(n.config(e)),plugins:(...e)=>t.mergeAll(n.plugins(...e)),env:e=>t.mergeAll(n.env(e))};exports.compat=a;
|
package/dist/index-BSFKHRiy.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import i from "@eslint/js";
|
|
2
|
-
import c from "eslint-plugin-jsdoc";
|
|
3
|
-
import e from "typescript-eslint";
|
|
4
|
-
import { p as n, a } from "./base-DhxoXy40.js";
|
|
5
|
-
import f from "./rules/core.js";
|
|
6
|
-
import d from "./rules/cspell.js";
|
|
7
|
-
import l from "./rules/importRules.js";
|
|
8
|
-
import g from "./rules/jsdoc.js";
|
|
9
|
-
import b from "./rules/stylistic.js";
|
|
10
|
-
import u from "./rules/typescript.js";
|
|
11
|
-
import { c as m } from "./compat-DfBTP0AK.js";
|
|
12
|
-
import { mergeAll as y, merge as s } from "./main.js";
|
|
13
|
-
const p = s(m.extends("airbnb-base", "airbnb-typescript/base"));
|
|
14
|
-
var r, o, t;
|
|
15
|
-
(t = (o = (r = p.languageOptions) == null ? void 0 : r.parserOptions) == null ? void 0 : o.ecmaFeatures) == null || delete t.globalReturn;
|
|
16
|
-
const N = y(e.config(i.configs.recommended, p, ...e.configs.recommended, ...e.configs.recommendedTypeChecked, c.configs["flat/recommended-typescript-error"], s(m.extends("plugin:@cspell/recommended"), n(), f, l, d, b, g, u, a(), {
|
|
17
|
-
settings: {
|
|
18
|
-
jsdoc: {
|
|
19
|
-
mode: "typescript",
|
|
20
|
-
tagNamePreference: {
|
|
21
|
-
callback: "watch",
|
|
22
|
-
desc: "use"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"import/resolver": {
|
|
26
|
-
typescript: !0,
|
|
27
|
-
node: !0
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
})));
|
|
31
|
-
export {
|
|
32
|
-
N as default
|
|
33
|
-
};
|
package/dist/index-BUOro8yS.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import n from "@eslint/js";
|
|
2
|
-
import a from "eslint-plugin-jsdoc";
|
|
3
|
-
import c from "eslint-plugin-vue";
|
|
4
|
-
import l from "eslint-plugin-vue-scoped-css";
|
|
5
|
-
import f from "globals";
|
|
6
|
-
import r from "typescript-eslint";
|
|
7
|
-
import { a as d, p as g } from "./base-DhxoXy40.js";
|
|
8
|
-
import u from "./rules/core.js";
|
|
9
|
-
import b from "./rules/cspell.js";
|
|
10
|
-
import x from "./rules/importRules.js";
|
|
11
|
-
import y from "./rules/jsdoc.js";
|
|
12
|
-
import j from "./rules/stylistic.js";
|
|
13
|
-
import O from "./rules/typescript.js";
|
|
14
|
-
import P from "./rules/vue.js";
|
|
15
|
-
import { c as m } from "./compat-DfBTP0AK.js";
|
|
16
|
-
import { mergeAll as C, merge as i } from "./main.js";
|
|
17
|
-
const p = i(m.extends("airbnb-base", "airbnb-typescript/base"));
|
|
18
|
-
var o, t, s;
|
|
19
|
-
(s = (t = (o = p.languageOptions) == null ? void 0 : o.parserOptions) == null ? void 0 : t.ecmaFeatures) == null || delete s.globalReturn;
|
|
20
|
-
const G = C(r.config(
|
|
21
|
-
n.configs.recommended,
|
|
22
|
-
p,
|
|
23
|
-
...r.configs.recommended,
|
|
24
|
-
...c.configs["flat/recommended"].map((e) => (delete e.files, e)),
|
|
25
|
-
...l.configs["flat/recommended"],
|
|
26
|
-
a.configs["flat/recommended-typescript-error"],
|
|
27
|
-
i(m.extends("plugin:@cspell/recommended"), g(), u, x, b, j, y, P, O, d(), {
|
|
28
|
-
languageOptions: {
|
|
29
|
-
globals: {
|
|
30
|
-
...f.browser
|
|
31
|
-
},
|
|
32
|
-
parserOptions: {
|
|
33
|
-
parser: "@typescript-eslint/parser",
|
|
34
|
-
sourceType: "module",
|
|
35
|
-
ecmaFeatures: {
|
|
36
|
-
jsx: !0
|
|
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
|
-
));
|
|
52
|
-
export {
|
|
53
|
-
G as default
|
|
54
|
-
};
|
package/dist/index-BX0PuY7X.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("node:path"),o=require("node:url"),u=require("@eslint/eslintrc"),c=require("eslint-plugin-jsdoc"),i=require("globals"),n=require("./base-C2fq_o3u.cjs"),l=require("./rules/core.cjs"),a=require("./rules/cspell.cjs"),d=require("./rules/importRules.cjs"),m=require("./rules/jsdoc.cjs"),p=require("./rules/stylistic.cjs"),g=require("./rules/vue.cjs"),e=require("./main.cjs");var r=typeof document<"u"?document.currentScript:null;const s=new u.FlatCompat({baseDirectory:t.dirname(o.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:r&&r.tagName.toUpperCase()==="SCRIPT"&&r.src||new URL("index-BX0PuY7X.cjs",document.baseURI).href))}),f=e.merge(e.mergeAll(s.extends("airbnb-base","plugin:vue/vue3-recommended","plugin:vue-scoped-css/vue3-recommended")),c.configs["flat/recommended"],e.mergeAll(s.extends("plugin:@cspell/recommended")),n.preConfig(["vue","vue-scoped-css"]),l,d,a,p,m,g,n.postConfig(),e.mergeAll(s.config({parser:"vue-eslint-parser"})),{languageOptions:{parserOptions:{sourceType:"module",ecmaFeatures:{jsx:!0},extraFileExtensions:[".vue"]},globals:{...i.browser}}});exports.default=f;
|
package/dist/index-BYXlsowx.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("node:path"),o=require("node:url"),u=require("@eslint/eslintrc"),c=require("eslint-plugin-jsdoc"),i=require("globals"),n=require("./base-C2fq_o3u.cjs"),l=require("./rules/core.cjs"),a=require("./rules/cspell.cjs"),d=require("./rules/importRules.cjs"),m=require("./rules/jsdoc.cjs"),p=require("./rules/stylistic.cjs"),g=require("./rules/vue2.cjs"),e=require("./main.cjs");var r=typeof document<"u"?document.currentScript:null;const s=new u.FlatCompat({baseDirectory:t.dirname(o.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:r&&r.tagName.toUpperCase()==="SCRIPT"&&r.src||new URL("index-BYXlsowx.cjs",document.baseURI).href))}),f=e.merge(e.mergeAll(s.extends("airbnb-base","plugin:vue/recommended","plugin:vue-scoped-css/recommended")),c.configs["flat/recommended"],e.mergeAll(s.extends("plugin:@cspell/recommended")),n.preConfig(["vue","vue-scoped-css"]),l,d,a,p,m,g,n.postConfig(),e.mergeAll(s.config({parser:"vue-eslint-parser"})),{languageOptions:{parserOptions:{sourceType:"module",ecmaFeatures:{jsx:!0},extraFileExtensions:[".vue"]},globals:{...i.browser}}});exports.default=f;
|
package/dist/index-BcjSGMc4.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("node:path"),s=require("node:url"),c=require("@eslint/eslintrc"),i=require("eslint-plugin-jsdoc"),t=require("./base-C2fq_o3u.cjs"),u=require("./rules/core.cjs"),l=require("./rules/cspell.cjs"),a=require("./rules/importRules.cjs"),d=require("./rules/jsdoc.cjs"),m=require("./rules/stylistic.cjs"),e=require("./main.cjs");var r=typeof document<"u"?document.currentScript:null;const n=new c.FlatCompat({baseDirectory:o.dirname(s.fileURLToPath(typeof document>"u"?require("url").pathToFileURL(__filename).href:r&&r.tagName.toUpperCase()==="SCRIPT"&&r.src||new URL("index-BcjSGMc4.cjs",document.baseURI).href))}),p=e.merge(e.mergeAll(n.extends("eslint-config-airbnb-base")),i.configs["flat/recommended"],e.mergeAll(n.extends("plugin:@cspell/recommended")),t.preConfig(),u,a,l,m,d,t.postConfig());exports.default=p;
|
package/dist/index-C743UfJX.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@eslint/js"),a=require("eslint-plugin-jsdoc"),p=require("eslint-plugin-vue"),d=require("eslint-plugin-vue-scoped-css"),m=require("globals"),s=require("typescript-eslint"),t=require("./base-C2fq_o3u.cjs"),g=require("./rules/core.cjs"),b=require("./rules/cspell.cjs"),q=require("./rules/importRules.cjs"),f=require("./rules/jsdoc.cjs"),y=require("./rules/stylistic.cjs"),_=require("./rules/typescript.cjs"),j=require("./rules/vue.cjs"),i=require("./compat-S2mgbwTA.cjs"),e=require("./main.cjs"),u=e.merge(i.compat.extends("airbnb-base","airbnb-typescript/base"));var n,o,c;(c=(o=(n=u.languageOptions)==null?void 0:n.parserOptions)==null?void 0:o.ecmaFeatures)==null||delete c.globalReturn;const x=e.mergeAll(s.config(l.configs.recommended,u,...s.configs.recommended,...p.configs["flat/recommended"].map(r=>(delete r.files,r)),...d.configs["flat/recommended"],a.configs["flat/recommended-typescript-error"],e.merge(i.compat.extends("plugin:@cspell/recommended"),t.preConfig(),g,q,b,y,f,j,_,t.postConfig(),{languageOptions:{globals:{...m.browser},parserOptions:{parser:"@typescript-eslint/parser",sourceType:"module",ecmaFeatures:{jsx:!0},extraFileExtensions:[".vue"]}},settings:{jsdoc:{mode:"typescript",tagNamePreference:{callback:"watch",desc:"use"}}}})));exports.default=x;
|
package/dist/index-CAuGyIr4.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={rules:{"import/no-extraneous-dependencies":"off","import/prefer-default-export":"off"}};exports.default=e;
|
package/dist/index-CcvN-eiV.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@eslint/js"),l=require("eslint-plugin-jsdoc"),e=require("typescript-eslint"),s=require("./base-C2fq_o3u.cjs"),p=require("./rules/core.cjs"),a=require("./rules/cspell.cjs"),d=require("./rules/importRules.cjs"),m=require("./rules/jsdoc.cjs"),g=require("./rules/stylistic.cjs"),b=require("./rules/typescript.cjs"),n=require("./compat-S2mgbwTA.cjs"),r=require("./main.cjs"),i=r.merge(n.compat.extends("airbnb-base","airbnb-typescript/base"));var t,c,o;(o=(c=(t=i.languageOptions)==null?void 0:t.parserOptions)==null?void 0:c.ecmaFeatures)==null||delete o.globalReturn;const q=r.mergeAll(e.config(u.configs.recommended,i,...e.configs.recommended,...e.configs.recommendedTypeChecked,l.configs["flat/recommended-typescript-error"],r.merge(n.compat.extends("plugin:@cspell/recommended"),s.preConfig(),p,d,a,g,m,b,s.postConfig(),{settings:{jsdoc:{mode:"typescript",tagNamePreference:{callback:"watch",desc:"use"}},"import/resolver":{typescript:!0,node:!0}}})));exports.default=q;
|
package/dist/index-CixUmpPQ.js
DELETED
package/dist/index-CydLRA6p.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { dirname as r } from "node:path";
|
|
2
|
-
import { fileURLToPath as m } from "node:url";
|
|
3
|
-
import { FlatCompat as s } from "@eslint/eslintrc";
|
|
4
|
-
import t from "eslint-plugin-jsdoc";
|
|
5
|
-
import i from "globals";
|
|
6
|
-
import { a as p, p as n } from "./base-DhxoXy40.js";
|
|
7
|
-
import a from "./rules/core.js";
|
|
8
|
-
import l from "./rules/cspell.js";
|
|
9
|
-
import c from "./rules/importRules.js";
|
|
10
|
-
import f from "./rules/jsdoc.js";
|
|
11
|
-
import u from "./rules/stylistic.js";
|
|
12
|
-
import d from "./rules/vue2.js";
|
|
13
|
-
import { merge as g, mergeAll as e } from "./main.js";
|
|
14
|
-
const o = new s({
|
|
15
|
-
baseDirectory: r(m(import.meta.url))
|
|
16
|
-
}), A = g(e(o.extends("airbnb-base", "plugin:vue/recommended", "plugin:vue-scoped-css/recommended")), t.configs["flat/recommended"], e(o.extends("plugin:@cspell/recommended")), n(["vue", "vue-scoped-css"]), a, c, l, u, f, d, p(), e(o.config({
|
|
17
|
-
parser: "vue-eslint-parser"
|
|
18
|
-
})), {
|
|
19
|
-
languageOptions: {
|
|
20
|
-
parserOptions: {
|
|
21
|
-
sourceType: "module",
|
|
22
|
-
ecmaFeatures: {
|
|
23
|
-
jsx: !0
|
|
24
|
-
},
|
|
25
|
-
extraFileExtensions: [".vue"]
|
|
26
|
-
},
|
|
27
|
-
globals: {
|
|
28
|
-
...i.browser
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
export {
|
|
33
|
-
A as default
|
|
34
|
-
};
|
package/dist/index-DIhDmtxO.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { dirname as m } from "node:path";
|
|
2
|
-
import { fileURLToPath as t } from "node:url";
|
|
3
|
-
import { FlatCompat as e } from "@eslint/eslintrc";
|
|
4
|
-
import i from "eslint-plugin-jsdoc";
|
|
5
|
-
import { p, a as s } from "./base-DhxoXy40.js";
|
|
6
|
-
import f from "./rules/core.js";
|
|
7
|
-
import a from "./rules/cspell.js";
|
|
8
|
-
import l from "./rules/importRules.js";
|
|
9
|
-
import n from "./rules/jsdoc.js";
|
|
10
|
-
import c from "./rules/stylistic.js";
|
|
11
|
-
import { merge as d, mergeAll as o } from "./main.js";
|
|
12
|
-
const r = new e({
|
|
13
|
-
baseDirectory: m(t(import.meta.url))
|
|
14
|
-
}), w = d(o(r.extends("eslint-config-airbnb-base")), i.configs["flat/recommended"], o(r.extends("plugin:@cspell/recommended")), p(), f, l, a, c, n, s());
|
|
15
|
-
export {
|
|
16
|
-
w as default
|
|
17
|
-
};
|
package/dist/index-D_iZLt4b.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { dirname as r } from "node:path";
|
|
2
|
-
import { fileURLToPath as m } from "node:url";
|
|
3
|
-
import { FlatCompat as s } from "@eslint/eslintrc";
|
|
4
|
-
import t from "eslint-plugin-jsdoc";
|
|
5
|
-
import i from "globals";
|
|
6
|
-
import { a as p, p as n } from "./base-DhxoXy40.js";
|
|
7
|
-
import a from "./rules/core.js";
|
|
8
|
-
import l from "./rules/cspell.js";
|
|
9
|
-
import c from "./rules/importRules.js";
|
|
10
|
-
import u from "./rules/jsdoc.js";
|
|
11
|
-
import f from "./rules/stylistic.js";
|
|
12
|
-
import d from "./rules/vue.js";
|
|
13
|
-
import { merge as g, mergeAll as e } from "./main.js";
|
|
14
|
-
const o = new s({
|
|
15
|
-
baseDirectory: r(m(import.meta.url))
|
|
16
|
-
}), A = g(e(o.extends("airbnb-base", "plugin:vue/vue3-recommended", "plugin:vue-scoped-css/vue3-recommended")), t.configs["flat/recommended"], e(o.extends("plugin:@cspell/recommended")), n(["vue", "vue-scoped-css"]), a, c, l, f, u, d, p(), e(o.config({
|
|
17
|
-
parser: "vue-eslint-parser"
|
|
18
|
-
})), {
|
|
19
|
-
languageOptions: {
|
|
20
|
-
parserOptions: {
|
|
21
|
-
sourceType: "module",
|
|
22
|
-
ecmaFeatures: {
|
|
23
|
-
jsx: !0
|
|
24
|
-
},
|
|
25
|
-
extraFileExtensions: [".vue"]
|
|
26
|
-
},
|
|
27
|
-
globals: {
|
|
28
|
-
...i.browser
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
export {
|
|
33
|
-
A as default
|
|
34
|
-
};
|
package/dist/index-Dgx6nuN5.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("globals"),t=require("./main.cjs"),n=require("./index-BcjSGMc4.cjs"),o=t.merge(n.default,{languageOptions:{globals:{...e.node}}});exports.default=o;
|