linted 22.0.0-rc.0 → 22.0.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/files/index.d.ts +1 -0
- package/dist/files/index.d.ts.map +1 -1
- package/dist/files/index.js +1 -0
- package/dist/files/index.js.map +1 -1
- package/dist/files/scopes/html.d.ts.map +1 -1
- package/dist/files/scopes/html.js +1 -1
- package/dist/files/scopes/html.js.map +1 -1
- package/dist/files/scopes/js.js +2 -2
- package/dist/files/scopes/js.js.map +1 -1
- package/dist/files/scopes/ts.d.ts.map +1 -1
- package/dist/files/scopes/ts.js +1 -1
- package/dist/files/scopes/ts.js.map +1 -1
- package/dist/ignores/index.d.ts +1 -0
- package/dist/ignores/index.d.ts.map +1 -1
- package/dist/ignores/index.js +10 -0
- package/dist/ignores/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -20
- package/dist/index.js.map +1 -1
- package/dist/rules/html/enable.d.ts +1 -1
- package/dist/rules/html/enable.d.ts.map +1 -1
- package/dist/rules/html/enable.js.map +1 -1
- package/dist/rules/html/index.d.ts +1 -1
- package/dist/rules/index.d.ts +1 -1
- package/dist/settings/index.d.ts +3 -4
- package/dist/settings/index.d.ts.map +1 -1
- package/dist/settings/index.js +3 -3
- package/dist/settings/index.js.map +1 -1
- package/package.json +2 -2
- package/src/files/index.ts +1 -0
- package/src/files/scopes/html.ts +1 -1
- package/src/files/scopes/js.ts +2 -2
- package/src/files/scopes/ts.ts +1 -1
- package/src/ignores/index.ts +12 -0
- package/src/index.ts +6 -24
- package/src/rules/html/enable.ts +2 -1
- package/src/settings/index.ts +3 -3
- package/dist/ignores/global.d.ts +0 -3
- package/dist/ignores/global.d.ts.map +0 -1
- package/dist/ignores/global.js +0 -2
- package/dist/ignores/global.js.map +0 -1
- package/src/ignores/global.ts +0 -1
package/dist/files/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":";;;;;;;;;;;AASA,wBAUE"}
|
package/dist/files/index.js
CHANGED
package/dist/files/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,eAAe;IACb,EAAE;IACF,EAAE;IACF,MAAM;IACN,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;CACJ,CAAC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,eAAe;IACb,GAAG,EAAE,EAAE;IACP,EAAE;IACF,EAAE;IACF,MAAM;IACN,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;CACJ,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/files/scopes/html.ts"],"names":[],"mappings":";AAAA,
|
1
|
+
{"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../src/files/scopes/html.ts"],"names":[],"mappings":";AAAA,wBAAuD"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export default ["{src,tests,static}/**/*.html"];
|
1
|
+
export default ["{src,tests,static,public}/**/*.html"];
|
2
2
|
//# sourceMappingURL=html.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"html.js","sourceRoot":"","sources":["../../../src/files/scopes/html.ts"],"names":[],"mappings":"AAAA,eAAe,CAAC,
|
1
|
+
{"version":3,"file":"html.js","sourceRoot":"","sources":["../../../src/files/scopes/html.ts"],"names":[],"mappings":"AAAA,eAAe,CAAC,qCAAqC,CAAC,CAAC"}
|
package/dist/files/scopes/js.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"js.js","sourceRoot":"","sources":["../../../src/files/scopes/js.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,
|
1
|
+
{"version":3,"file":"js.js","sourceRoot":"","sources":["../../../src/files/scopes/js.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,gBAAgB;IAChB,8CAA8C;CAC/C,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/files/scopes/ts.ts"],"names":[],"mappings":";AAAA,
|
1
|
+
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/files/scopes/ts.ts"],"names":[],"mappings":";AAAA,wBAAqC"}
|
package/dist/files/scopes/ts.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export default ["**/*.{c,m,}ts"];
|
1
|
+
export default ["**/*.{c,m,}ts{,x}"];
|
2
2
|
//# sourceMappingURL=ts.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/files/scopes/ts.ts"],"names":[],"mappings":"AAAA,eAAe,CAAC,
|
1
|
+
{"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/files/scopes/ts.ts"],"names":[],"mappings":"AAAA,eAAe,CAAC,mBAAmB,CAAC,CAAC"}
|
package/dist/ignores/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ignores/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ignores/index.ts"],"names":[],"mappings":";;;;;;;;;;;AASA,wBAqBE"}
|
package/dist/ignores/index.js
CHANGED
@@ -7,6 +7,16 @@ import json from "./scopes/json.js";
|
|
7
7
|
import jsonc from "./scopes/jsonc.js";
|
8
8
|
import yml from "./scopes/yml.js";
|
9
9
|
export default {
|
10
|
+
"*": [
|
11
|
+
"{,**/.git/}",
|
12
|
+
"**/*package-lock.json",
|
13
|
+
"**/dist/",
|
14
|
+
"**/buil{d,t}/",
|
15
|
+
"**/bundle{,d}/",
|
16
|
+
"**/pack{,ed}/",
|
17
|
+
"{,**/.svelte-kit/}",
|
18
|
+
"{,**/.Trash/}",
|
19
|
+
],
|
10
20
|
js,
|
11
21
|
ts,
|
12
22
|
svelte,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ignores/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,eAAe;IACb,EAAE;IACF,EAAE;IACF,MAAM;IACN,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;CACJ,CAAC"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ignores/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,eAAe;IACb,GAAG,EAAE;QAGH,aAAa;QACb,uBAAuB;QACvB,UAAU;QACV,eAAe;QACf,gBAAgB;QAChB,eAAe;QACf,oBAAoB;QACpB,eAAe;KAChB;IACD,EAAE;IACF,EAAE;IACF,MAAM;IACN,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,GAAG;CACJ,CAAC"}
|
package/dist/index.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
import type { Input } from "@eslinted/core";
|
2
|
-
export default function (
|
2
|
+
export default function (extensions: Input["extensions"]): import("@eslinted/core").Output;
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAQ5C,MAAM,CAAC,OAAO,WAAW,UAAU,EAAE,KAAK,CAAC,YAAY,CAAC,mCAgBvD"}
|
package/dist/index.js
CHANGED
@@ -1,34 +1,20 @@
|
|
1
1
|
import core from "@eslinted/core";
|
2
|
+
import { settings } from "./settings/index.js";
|
2
3
|
import imports from "./imports/index.js";
|
3
|
-
import settings from "./settings/index.js";
|
4
4
|
import files from "./files/index.js";
|
5
5
|
import ignores from "./ignores/index.js";
|
6
|
-
import globalIgnores from "./ignores/global.js";
|
7
6
|
import rules from "./rules/index.js";
|
8
|
-
export default function (
|
7
|
+
export default function (extensions) {
|
9
8
|
try {
|
10
9
|
return core({
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
globals: {
|
15
|
-
ignores: {
|
16
|
-
ignores: globalIgnores,
|
17
|
-
},
|
18
|
-
extend: {},
|
19
|
-
},
|
20
|
-
files: {
|
10
|
+
imports,
|
11
|
+
defaults: {
|
12
|
+
settings,
|
21
13
|
files,
|
22
|
-
includes,
|
23
|
-
},
|
24
|
-
ignores: {
|
25
14
|
ignores,
|
26
|
-
extend: {},
|
27
|
-
},
|
28
|
-
rules: {
|
29
15
|
rules,
|
30
|
-
overrides,
|
31
16
|
},
|
17
|
+
extensions,
|
32
18
|
});
|
33
19
|
}
|
34
20
|
catch (e) {
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,MAAM,CAAC,OAAO,WAAW,UAA+B;IACtD,IAAI,CAAC;QACH,OAAO,IAAI,CACT;YACE,OAAO;YACP,QAAQ,EAAE;gBACR,QAAQ;gBACR,KAAK;gBACL,OAAO;gBACP,KAAK;aACN;YACD,UAAU;SACX,CACF,CAAC;IACJ,CAAC;IACD,OAAO,CAAC,EAAE,CAAC;QAAC,MAAM,IAAI,KAAK,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;AAC5D,CAAC"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
declare const _default: readonly ["enable", Partial<Record<"@html-eslint/require-lang" | "@html-eslint/require-img-alt" | "@html-eslint/require-doctype" | "@html-eslint/require-title" | "@html-eslint/no-duplicate-id" | "@html-eslint/no-inline-styles" | "@html-eslint/no-multiple-h1" | "@html-eslint/no-extra-spacing-attrs" | "@html-eslint/no-extra-spacing-text" | "@html-eslint/attrs-newline" | "@html-eslint/element-newline" | "@html-eslint/no-skip-heading-levels" | "@html-eslint/require-li-container" | "@html-eslint/indent" | "@html-eslint/quotes" | "@html-eslint/id-naming-convention" | "@html-eslint/no-obsolete-tags" | "@html-eslint/require-attrs" | "@html-eslint/require-closing-tags" | "@html-eslint/require-meta-description" | "@html-eslint/require-frame-title" | "@html-eslint/no-non-scalable-viewport" | "@html-eslint/no-positive-tabindex" | "@html-eslint/require-meta-viewport" | "@html-eslint/require-meta-charset" | "@html-eslint/no-target-blank" | "@html-eslint/no-duplicate-attrs" | "@html-eslint/no-abstract-roles" | "@html-eslint/require-button-type" | "@html-eslint/no-aria-hidden-body" | "@html-eslint/no-multiple-empty-lines" | "@html-eslint/no-accesskey-attrs" | "@html-eslint/no-restricted-attrs" | "@html-eslint/no-trailing-spaces" | "@html-eslint/no-restricted-attr-values" | "@html-eslint/no-script-style-type" | "@html-eslint/lowercase" | "@html-eslint/require-open-graph-protocol" | "@html-eslint/sort-attrs", unknown>>];
|
1
|
+
declare const _default: readonly ["enable", Partial<Record<"@html-eslint/require-lang" | "@html-eslint/require-img-alt" | "@html-eslint/require-doctype" | "@html-eslint/require-title" | "@html-eslint/no-duplicate-id" | "@html-eslint/no-inline-styles" | "@html-eslint/no-multiple-h1" | "@html-eslint/no-extra-spacing-attrs" | "@html-eslint/no-extra-spacing-text" | "@html-eslint/attrs-newline" | "@html-eslint/element-newline" | "@html-eslint/no-skip-heading-levels" | "@html-eslint/require-li-container" | "@html-eslint/indent" | "@html-eslint/quotes" | "@html-eslint/id-naming-convention" | "@html-eslint/no-obsolete-tags" | "@html-eslint/require-attrs" | "@html-eslint/require-closing-tags" | "@html-eslint/require-meta-description" | "@html-eslint/require-frame-title" | "@html-eslint/no-non-scalable-viewport" | "@html-eslint/no-positive-tabindex" | "@html-eslint/require-meta-viewport" | "@html-eslint/require-meta-charset" | "@html-eslint/no-target-blank" | "@html-eslint/no-duplicate-attrs" | "@html-eslint/no-abstract-roles" | "@html-eslint/require-button-type" | "@html-eslint/no-aria-hidden-body" | "@html-eslint/no-multiple-empty-lines" | "@html-eslint/no-accesskey-attrs" | "@html-eslint/no-restricted-attrs" | "@html-eslint/no-trailing-spaces" | "@html-eslint/no-restricted-attr-values" | "@html-eslint/no-script-style-type" | "@html-eslint/lowercase" | "@html-eslint/require-open-graph-protocol" | "@html-eslint/sort-attrs", import("@eslinted/core").RuleState | readonly [import("@eslinted/core").RuleState, ...unknown[]]>>];
|
2
2
|
export default _default;
|
3
3
|
//# sourceMappingURL=enable.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../src/rules/html/enable.ts"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"enable.d.ts","sourceRoot":"","sources":["../../../src/rules/html/enable.ts"],"names":[],"mappings":";AAqHA,wBAGW"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/html/enable.ts"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,EACN,KAAK,EACL,GAAG,EACH,KAAK,GACN,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"enable.js","sourceRoot":"","sources":["../../../src/rules/html/enable.ts"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,EACN,KAAK,EACL,GAAG,EACH,KAAK,GACN,MAAM,gBAAgB,CAAC;AAGxB,MAAM,KAAK,GAA6E;IAGtF,iCAAiC,EAAE,KAAK;IACxC,8BAA8B,EAAE,KAAK;IACrC,oCAAoC,EAAE;QACpC,KAAK;QACL;YACE,IAAI,EAAE,EAAE;SACT;KACF;IACD,+BAA+B,EAAE,GAAG;IACpC,+BAA+B,EAAE,KAAK;IACtC,wCAAwC,EAAE,GAAG;IAC7C,kCAAkC,EAAE,GAAG;IACvC,mCAAmC,EAAE,GAAG;IACxC,8BAA8B,EAAE,KAAK;IACrC,4BAA4B,EAAE,GAAG;IACjC,kCAAkC,EAAE,KAAK;IACzC,mCAAmC,EAAE;QACnC,KAAK;QACL;YACE,WAAW,EAAE,KAAK;YAClB,yBAAyB,EAAE,CAAC,EAAE,CAAC;SAChC;KACF;IACD,8BAA8B,EAAE,KAAK;IACrC,mCAAmC,EAAE,KAAK;IAC1C,mCAAmC,EAAE,KAAK;IAM1C,6BAA6B,EAAE,KAAK;IACpC,2BAA2B,EAAE,KAAK;IAClC,uCAAuC,EAAE,GAAG;IAC5C,0CAA0C,EAAE,GAAG;IAC/C,4BAA4B,EAAE,GAAG;IAMjC,gCAAgC,EAAE,KAAK;IACvC,iCAAiC,EAAE,KAAK;IACxC,kCAAkC,EAAE,KAAK;IACzC,uCAAuC,EAAE,KAAK;IAC9C,mCAAmC,EAAE,KAAK;IAC1C,qCAAqC,EAAE,KAAK;IAC5C,kCAAkC,EAAE,KAAK;IACzC,8BAA8B,EAAE;QAC9B,KAAK;QACL;YACE,UAAU,EAAE,EAAE;SACf;KACF;IACD,oCAAoC,EAAE,KAAK;IAQ3C,4BAA4B,EAAE;QAC5B,KAAK;QACL;YACE,eAAe,EAAE,CAAC;YAClB,UAAU,EAAE,UAAU;SACvB;KACF;IACD,8BAA8B,EAAE;QAC9B,KAAK;QACL;YACE,IAAI,EAAE,CAAC,MAAM,CAAC;YACd,MAAM,EAAE,CAAC,SAAS,CAAC;SACpB;KACF;IACD,mCAAmC,EAAE,GAAG;IACxC,qBAAqB,EAAE;QACrB,KAAK;QACL,CAAC;KACF;IACD,wBAAwB,EAAE,KAAK;IAC/B,qCAAqC,EAAE;QACrC,KAAK;QACL;YACE,sBAAsB,EAAE,IAAI;YAC5B,eAAe,EAAE,IAAI;YACrB,YAAY,EAAE,IAAI;YAClB,oBAAoB,EAAE,IAAI;SAC3B;KACF;IACD,sCAAsC,EAAE;QACtC,KAAK;QACL;YACE,GAAG,EAAE,CAAC;SACP;KACF;IACD,iCAAiC,EAAE,KAAK;IACxC,qBAAqB,EAAE;QACrB,KAAK;QACL,QAAQ;KACT;IACD,yBAAyB,EAAE,GAAG;CACtB,CAAC;AAEX,eAAe;IACb,MAAM;IACN,KAAK;CACG,CAAC"}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
declare const _default: (readonly ["enable", Partial<Record<"@html-eslint/require-lang" | "@html-eslint/require-img-alt" | "@html-eslint/require-doctype" | "@html-eslint/require-title" | "@html-eslint/no-duplicate-id" | "@html-eslint/no-inline-styles" | "@html-eslint/no-multiple-h1" | "@html-eslint/no-extra-spacing-attrs" | "@html-eslint/no-extra-spacing-text" | "@html-eslint/attrs-newline" | "@html-eslint/element-newline" | "@html-eslint/no-skip-heading-levels" | "@html-eslint/require-li-container" | "@html-eslint/indent" | "@html-eslint/quotes" | "@html-eslint/id-naming-convention" | "@html-eslint/no-obsolete-tags" | "@html-eslint/require-attrs" | "@html-eslint/require-closing-tags" | "@html-eslint/require-meta-description" | "@html-eslint/require-frame-title" | "@html-eslint/no-non-scalable-viewport" | "@html-eslint/no-positive-tabindex" | "@html-eslint/require-meta-viewport" | "@html-eslint/require-meta-charset" | "@html-eslint/no-target-blank" | "@html-eslint/no-duplicate-attrs" | "@html-eslint/no-abstract-roles" | "@html-eslint/require-button-type" | "@html-eslint/no-aria-hidden-body" | "@html-eslint/no-multiple-empty-lines" | "@html-eslint/no-accesskey-attrs" | "@html-eslint/no-restricted-attrs" | "@html-eslint/no-trailing-spaces" | "@html-eslint/no-restricted-attr-values" | "@html-eslint/no-script-style-type" | "@html-eslint/lowercase" | "@html-eslint/require-open-graph-protocol" | "@html-eslint/sort-attrs", unknown>>])[];
|
1
|
+
declare const _default: (readonly ["enable", Partial<Record<"@html-eslint/require-lang" | "@html-eslint/require-img-alt" | "@html-eslint/require-doctype" | "@html-eslint/require-title" | "@html-eslint/no-duplicate-id" | "@html-eslint/no-inline-styles" | "@html-eslint/no-multiple-h1" | "@html-eslint/no-extra-spacing-attrs" | "@html-eslint/no-extra-spacing-text" | "@html-eslint/attrs-newline" | "@html-eslint/element-newline" | "@html-eslint/no-skip-heading-levels" | "@html-eslint/require-li-container" | "@html-eslint/indent" | "@html-eslint/quotes" | "@html-eslint/id-naming-convention" | "@html-eslint/no-obsolete-tags" | "@html-eslint/require-attrs" | "@html-eslint/require-closing-tags" | "@html-eslint/require-meta-description" | "@html-eslint/require-frame-title" | "@html-eslint/no-non-scalable-viewport" | "@html-eslint/no-positive-tabindex" | "@html-eslint/require-meta-viewport" | "@html-eslint/require-meta-charset" | "@html-eslint/no-target-blank" | "@html-eslint/no-duplicate-attrs" | "@html-eslint/no-abstract-roles" | "@html-eslint/require-button-type" | "@html-eslint/no-aria-hidden-body" | "@html-eslint/no-multiple-empty-lines" | "@html-eslint/no-accesskey-attrs" | "@html-eslint/no-restricted-attrs" | "@html-eslint/no-trailing-spaces" | "@html-eslint/no-restricted-attr-values" | "@html-eslint/no-script-style-type" | "@html-eslint/lowercase" | "@html-eslint/require-open-graph-protocol" | "@html-eslint/sort-attrs", import("@eslinted/core").RuleState | readonly [import("@eslinted/core").RuleState, ...unknown[]]>>])[];
|
2
2
|
export default _default;
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/rules/index.d.ts
CHANGED
@@ -4339,7 +4339,7 @@ declare const _default: {
|
|
4339
4339
|
readonly "mocha/valid-suite-description": "off";
|
4340
4340
|
readonly "mocha/valid-test-description": "off";
|
4341
4341
|
}])[];
|
4342
|
-
html: (readonly ["enable", Partial<Record<"@html-eslint/require-lang" | "@html-eslint/require-img-alt" | "@html-eslint/require-doctype" | "@html-eslint/require-title" | "@html-eslint/no-duplicate-id" | "@html-eslint/no-inline-styles" | "@html-eslint/no-multiple-h1" | "@html-eslint/no-extra-spacing-attrs" | "@html-eslint/no-extra-spacing-text" | "@html-eslint/attrs-newline" | "@html-eslint/element-newline" | "@html-eslint/no-skip-heading-levels" | "@html-eslint/require-li-container" | "@html-eslint/indent" | "@html-eslint/quotes" | "@html-eslint/id-naming-convention" | "@html-eslint/no-obsolete-tags" | "@html-eslint/require-attrs" | "@html-eslint/require-closing-tags" | "@html-eslint/require-meta-description" | "@html-eslint/require-frame-title" | "@html-eslint/no-non-scalable-viewport" | "@html-eslint/no-positive-tabindex" | "@html-eslint/require-meta-viewport" | "@html-eslint/require-meta-charset" | "@html-eslint/no-target-blank" | "@html-eslint/no-duplicate-attrs" | "@html-eslint/no-abstract-roles" | "@html-eslint/require-button-type" | "@html-eslint/no-aria-hidden-body" | "@html-eslint/no-multiple-empty-lines" | "@html-eslint/no-accesskey-attrs" | "@html-eslint/no-restricted-attrs" | "@html-eslint/no-trailing-spaces" | "@html-eslint/no-restricted-attr-values" | "@html-eslint/no-script-style-type" | "@html-eslint/lowercase" | "@html-eslint/require-open-graph-protocol" | "@html-eslint/sort-attrs", unknown>>])[];
|
4342
|
+
html: (readonly ["enable", Partial<Record<"@html-eslint/require-lang" | "@html-eslint/require-img-alt" | "@html-eslint/require-doctype" | "@html-eslint/require-title" | "@html-eslint/no-duplicate-id" | "@html-eslint/no-inline-styles" | "@html-eslint/no-multiple-h1" | "@html-eslint/no-extra-spacing-attrs" | "@html-eslint/no-extra-spacing-text" | "@html-eslint/attrs-newline" | "@html-eslint/element-newline" | "@html-eslint/no-skip-heading-levels" | "@html-eslint/require-li-container" | "@html-eslint/indent" | "@html-eslint/quotes" | "@html-eslint/id-naming-convention" | "@html-eslint/no-obsolete-tags" | "@html-eslint/require-attrs" | "@html-eslint/require-closing-tags" | "@html-eslint/require-meta-description" | "@html-eslint/require-frame-title" | "@html-eslint/no-non-scalable-viewport" | "@html-eslint/no-positive-tabindex" | "@html-eslint/require-meta-viewport" | "@html-eslint/require-meta-charset" | "@html-eslint/no-target-blank" | "@html-eslint/no-duplicate-attrs" | "@html-eslint/no-abstract-roles" | "@html-eslint/require-button-type" | "@html-eslint/no-aria-hidden-body" | "@html-eslint/no-multiple-empty-lines" | "@html-eslint/no-accesskey-attrs" | "@html-eslint/no-restricted-attrs" | "@html-eslint/no-trailing-spaces" | "@html-eslint/no-restricted-attr-values" | "@html-eslint/no-script-style-type" | "@html-eslint/lowercase" | "@html-eslint/require-open-graph-protocol" | "@html-eslint/sort-attrs", import("@eslinted/core").RuleState | readonly [import("@eslinted/core").RuleState, ...unknown[]]>>])[];
|
4343
4343
|
json: (readonly ["enable-extend", {
|
4344
4344
|
readonly "jsonc/array-bracket-newline": "off";
|
4345
4345
|
readonly "jsonc/array-bracket-spacing": readonly ["error", "never", {
|
package/dist/settings/index.d.ts
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
declare const
|
1
|
+
export declare const settings: {
|
2
|
+
readonly ecmaVersion: 2023;
|
3
|
+
readonly sourceType: "module";
|
2
4
|
readonly noInlineConfig: true;
|
3
5
|
readonly reportUnusedDisableDirectives: "error";
|
4
|
-
readonly sourceType: "module";
|
5
|
-
readonly ecmaVersion: 2023;
|
6
6
|
};
|
7
|
-
export default _default;
|
8
7
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/settings/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/settings/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;CAKX,CAAC"}
|
package/dist/settings/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/settings/index.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/settings/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,WAAW,EAAE,IAAI;IACjB,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,IAAI;IACpB,6BAA6B,EAAE,OAAO;CAC9B,CAAC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"_schemaVersion": "22.11.0",
|
3
3
|
"name": "linted",
|
4
|
-
"version": "22.0.0-rc.
|
4
|
+
"version": "22.0.0-rc.1",
|
5
5
|
"description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
|
6
6
|
"keywords": [
|
7
7
|
"eslint",
|
@@ -62,7 +62,7 @@
|
|
62
62
|
}
|
63
63
|
},
|
64
64
|
"dependencies": {
|
65
|
-
"@eslinted/core": "
|
65
|
+
"@eslinted/core": "13.0.0-rc.1",
|
66
66
|
"@html-eslint/eslint-plugin": "0.27.0",
|
67
67
|
"@html-eslint/parser": "0.27.0",
|
68
68
|
"@stylistic/eslint-plugin": "2.10.1",
|
package/src/files/index.ts
CHANGED
package/src/files/scopes/html.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export default ["{src,tests,static}/**/*.html"];
|
1
|
+
export default ["{src,tests,static,public}/**/*.html"];
|
package/src/files/scopes/js.ts
CHANGED
package/src/files/scopes/ts.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export default ["**/*.{c,m,}ts"];
|
1
|
+
export default ["**/*.{c,m,}ts{,x}"];
|
package/src/ignores/index.ts
CHANGED
@@ -8,6 +8,18 @@ import jsonc from "./scopes/jsonc";
|
|
8
8
|
import yml from "./scopes/yml";
|
9
9
|
|
10
10
|
export default {
|
11
|
+
"*": [
|
12
|
+
// "**/node_modules/", /* ESLint @default */,
|
13
|
+
// ".git/", /* ESLint @default */,
|
14
|
+
"{,**/.git/}",
|
15
|
+
"**/*package-lock.json",
|
16
|
+
"**/dist/",
|
17
|
+
"**/buil{d,t}/",
|
18
|
+
"**/bundle{,d}/",
|
19
|
+
"**/pack{,ed}/",
|
20
|
+
"{,**/.svelte-kit/}",
|
21
|
+
"{,**/.Trash/}",
|
22
|
+
],
|
11
23
|
js,
|
12
24
|
ts,
|
13
25
|
svelte,
|
package/src/index.ts
CHANGED
@@ -1,41 +1,23 @@
|
|
1
1
|
import type { Input } from "@eslinted/core";
|
2
2
|
import core from "@eslinted/core";
|
3
|
+
import { settings } from "./settings";
|
3
4
|
import imports from "./imports";
|
4
|
-
import settings from "./settings";
|
5
5
|
import files from "./files";
|
6
6
|
import ignores from "./ignores";
|
7
|
-
import globalIgnores from "./ignores/global";
|
8
7
|
import rules from "./rules";
|
9
8
|
|
10
|
-
export default function (
|
11
|
-
includes: Input["files"]["includes"] = {},
|
12
|
-
overrides: Input["rules"]["overrides"] = {},
|
13
|
-
) {
|
9
|
+
export default function (extensions: Input["extensions"]) {
|
14
10
|
try {
|
15
11
|
return core(
|
16
12
|
{
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
globals: {
|
21
|
-
ignores: {
|
22
|
-
ignores: globalIgnores,
|
23
|
-
},
|
24
|
-
extend: {},
|
25
|
-
|
26
|
-
},
|
27
|
-
files: {
|
13
|
+
imports,
|
14
|
+
defaults: {
|
15
|
+
settings,
|
28
16
|
files,
|
29
|
-
includes,
|
30
|
-
},
|
31
|
-
ignores: {
|
32
17
|
ignores,
|
33
|
-
extend: {},
|
34
|
-
},
|
35
|
-
rules: {
|
36
18
|
rules,
|
37
|
-
overrides,
|
38
19
|
},
|
20
|
+
extensions,
|
39
21
|
},
|
40
22
|
);
|
41
23
|
}
|
package/src/rules/html/enable.ts
CHANGED
@@ -5,8 +5,9 @@ import {
|
|
5
5
|
OFF,
|
6
6
|
Never,
|
7
7
|
} from "../../_strings";
|
8
|
+
import type { RuleRecord } from "@eslinted/core";
|
8
9
|
|
9
|
-
const rules: Partial<Record<`@html-eslint/${keyof typeof Rule}`,
|
10
|
+
const rules: Partial<Record<`@html-eslint/${keyof typeof Rule}`, RuleRecord[string]>> = {
|
10
11
|
// #region BEST PRACTICE
|
11
12
|
// https://html-eslint.org/docs/rules#best-practice
|
12
13
|
"@html-eslint/no-duplicate-attrs": ERROR,
|
package/src/settings/index.ts
CHANGED
package/dist/ignores/global.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/ignores/global.ts"],"names":[],"mappings":";AAAA,wBAAyC"}
|
package/dist/ignores/global.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/ignores/global.ts"],"names":[],"mappings":"AAAA,eAAe,CAAC,uBAAuB,CAAC,CAAC"}
|
package/src/ignores/global.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export default ["**/*package-lock.json"];
|