@useinsider/eslint-config 1.9.1 → 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 +19 -3
- 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;
|