@eslinted/defaults 20.0.1 → 20.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/files/index.d.ts +0 -1
- package/dist/files/index.d.ts.map +1 -1
- package/dist/files/index.js +0 -1
- package/dist/files/index.js.map +1 -1
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/rules/index.d.ts +0 -7
- package/dist/rules/index.d.ts.map +1 -1
- package/dist/rules/index.js +0 -2
- package/dist/rules/index.js.map +1 -1
- package/package.json +10 -14
- package/src/files/index.ts +0 -1
- package/src/rules/index.ts +0 -2
- package/dist/rules/mocha/index.d.ts +0 -10
- package/dist/rules/mocha/index.d.ts.map +0 -1
- package/dist/rules/mocha/index.js +0 -10
- package/dist/rules/mocha/index.js.map +0 -1
- package/src/rules/mocha/index.ts +0 -11
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":";;;;;;;;;;AAGA,wBAuCE"}
|
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,OAAO,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,MAAM,QAAQ,CAAC;AAExB,eAAe;IACb,EAAE;IACF,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC;IACjB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/files/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,MAAM,QAAQ,CAAC;AAExB,eAAe;IACb,EAAE;IACF,EAAE,EAAE,OAAO,CAAC,IAAI,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC;IACzB,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;IACrB,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC;IACnB,IAAI,EAAE,OAAO,CACX;QACE,MAAM;QACN,iBAAiB;KAClB,CACF;IACD,KAAK,EAAE,OAAO,CACZ;QACE,OAAO;QACP,eAAe;QACf,gBAAgB;KACjB,EACD;QACE,KAAK,EAAE;YACL,eAAe;YACf,iBAAiB;SAClB;QACD,OAAO,EAAE,CAAC,SAAS,CAAC;QACpB,KAAK,EAAE,CAAC,mBAAmB,CAAC;KAC7B,CACF;IACD,GAAG,EAAE,OAAO,CACV;QACE,KAAK;QACL,MAAM;QACN,aAAa;QACb,cAAc;QACd,iBAAiB;KAClB,EACD;QACE,OAAO,EAAE,CAAC,SAAS,CAAC;KACrB,CACF;CACF,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ declare const _default: {
|
|
|
2
2
|
files: {
|
|
3
3
|
js: string[];
|
|
4
4
|
ts: string[];
|
|
5
|
-
mocha: string[];
|
|
6
5
|
svelte: string[];
|
|
7
6
|
html: string[];
|
|
8
7
|
css: string[];
|
|
@@ -807,13 +806,6 @@ declare const _default: {
|
|
|
807
806
|
readonly "ts/require-await": import("./rules/state.js").State.ON;
|
|
808
807
|
};
|
|
809
808
|
})[];
|
|
810
|
-
mocha: {
|
|
811
|
-
rules: {
|
|
812
|
-
readonly "no-unused-expressions": import("./rules/state.js").State.OFF;
|
|
813
|
-
readonly "ts/no-unsafe-call": import("./rules/state.js").State.OFF;
|
|
814
|
-
readonly "ts/strict-void-return": import("./rules/state.js").State.OFF;
|
|
815
|
-
};
|
|
816
|
-
}[];
|
|
817
809
|
svelte: ({
|
|
818
810
|
rules: {
|
|
819
811
|
readonly "no-inner-declarations": import("./rules/state.js").State.OFF;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,wBAIE"}
|
package/dist/rules/index.d.ts
CHANGED
|
@@ -791,13 +791,6 @@ declare const _default: {
|
|
|
791
791
|
readonly "ts/require-await": import("./state.js").State.ON;
|
|
792
792
|
};
|
|
793
793
|
})[];
|
|
794
|
-
mocha: {
|
|
795
|
-
rules: {
|
|
796
|
-
readonly "no-unused-expressions": import("./state.js").State.OFF;
|
|
797
|
-
readonly "ts/no-unsafe-call": import("./state.js").State.OFF;
|
|
798
|
-
readonly "ts/strict-void-return": import("./state.js").State.OFF;
|
|
799
|
-
};
|
|
800
|
-
}[];
|
|
801
794
|
svelte: ({
|
|
802
795
|
rules: {
|
|
803
796
|
readonly "no-inner-declarations": import("./state.js").State.OFF;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,wBAUE"}
|
package/dist/rules/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import global from "./global.js";
|
|
2
2
|
import js from "./js.js";
|
|
3
3
|
import ts from "./ts/index.js";
|
|
4
|
-
import mocha from "./mocha/index.js";
|
|
5
4
|
import svelte from "./svelte/index.js";
|
|
6
5
|
import html from "./html/index.js";
|
|
7
6
|
import css from "./css/index.js";
|
|
@@ -12,7 +11,6 @@ export default {
|
|
|
12
11
|
"*": global,
|
|
13
12
|
js,
|
|
14
13
|
ts,
|
|
15
|
-
mocha,
|
|
16
14
|
svelte,
|
|
17
15
|
html,
|
|
18
16
|
css,
|
package/dist/rules/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,GAAG,MAAM,OAAO,CAAC;AAExB,eAAe;IACb,GAAG,EAAE,MAAM;IACX,EAAE;IACF,EAAE;IACF,MAAM;IACN,IAAI;IACJ,GAAG;IACH,IAAI;IACJ,KAAK;IACL,GAAG;CACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$pkg": "
|
|
2
|
+
"$pkg": "2413.0.0",
|
|
3
3
|
"$schema": "https://json.schemastore.org/package",
|
|
4
4
|
"$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
|
|
5
5
|
"name": "@eslinted/defaults",
|
|
6
|
-
"version": "20.0
|
|
6
|
+
"version": "20.1.0",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted-defaults",
|
|
8
8
|
"description": "Default scopes for `linted`",
|
|
9
9
|
"keywords": [],
|
|
@@ -28,23 +28,19 @@
|
|
|
28
28
|
"typescript": "^5.9.3"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
|
-
"clean": "cmd
|
|
32
|
-
"build": "
|
|
33
|
-
"build:ts": "tsc -b src",
|
|
31
|
+
"clean": "cmd /q /c \"for %G in (types dist build packed .svelte-kit) do (if exist %G rmdir /s /q %G) & for %G in (.eslintcache) do (if exist %G del /f /q %G)\" || rm -rf types dist build packed .svelte-kit .eslintcache",
|
|
32
|
+
"build": "tsc -b src && ts-add-js-extension --showprogress=false --dir=dist",
|
|
34
33
|
"build:svelte": "svelte-kit sync && svelte-check && vite build",
|
|
35
|
-
"postbuild:ts": "npm run --if-present stage && ts-add-js-extension --showprogress=false --dir=dist",
|
|
36
|
-
"postbuild": "npm run lint || exit 0",
|
|
37
|
-
"lint": "eslint --cache --fix",
|
|
38
|
-
"pretest": "npm run build",
|
|
39
|
-
"test": "npm run --if-present test:suite",
|
|
40
34
|
"prestart": "npm run build",
|
|
41
|
-
"start": "
|
|
42
|
-
"start:ts": "node .",
|
|
35
|
+
"start": "node .",
|
|
43
36
|
"start:svelte": "vite preview --open",
|
|
37
|
+
"lint": "eslint --cache --fix",
|
|
38
|
+
"pretest": "npm run build",
|
|
39
|
+
"test": "",
|
|
40
|
+
"posttest": "npm run lint || exit 0",
|
|
44
41
|
"prepublishOnly": "npm run clean && npm test",
|
|
45
|
-
"publish:release": "cmd
|
|
42
|
+
"publish:release": "cmd /q /c \"for /f \"delims=-\" %a in (\"%npm_package_version%\") do if \"%a\" == \"%npm_package_version%\" (npm publish) else (npm publish --tag=next)\" || bash -c 'if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm publish; else npm publish --tag=next; fi'",
|
|
46
43
|
"predeploy": "npm run clean && npm test",
|
|
47
|
-
"stage": "",
|
|
48
44
|
"deploy": ""
|
|
49
45
|
},
|
|
50
46
|
"author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
|
package/src/files/index.ts
CHANGED
package/src/rules/index.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import global from "./global";
|
|
2
2
|
import js from "./js";
|
|
3
3
|
import ts from "./ts";
|
|
4
|
-
import mocha from "./mocha";
|
|
5
4
|
import svelte from "./svelte";
|
|
6
5
|
import html from "./html";
|
|
7
6
|
import css from "./css";
|
|
@@ -13,7 +12,6 @@ export default {
|
|
|
13
12
|
"*": global,
|
|
14
13
|
js,
|
|
15
14
|
ts,
|
|
16
|
-
mocha,
|
|
17
15
|
svelte,
|
|
18
16
|
html,
|
|
19
17
|
css,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { State } from "../state.js";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
rules: {
|
|
4
|
-
readonly "no-unused-expressions": State.OFF;
|
|
5
|
-
readonly "ts/no-unsafe-call": State.OFF;
|
|
6
|
-
readonly "ts/strict-void-return": State.OFF;
|
|
7
|
-
};
|
|
8
|
-
}[];
|
|
9
|
-
export default _default;
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/mocha/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;;;;;;;;AAEjC,wBAQE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/mocha/index.ts"],"names":[],"mappings":"AAEA,eAAe;IACb;QACE,KAAK,EAAE;YACL,uBAAuB,GAAW;YAClC,mBAAmB,GAAW;YAC9B,uBAAuB,GAAW;SAC1B;KACX;CACF,CAAC"}
|
package/src/rules/mocha/index.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { State } from "../state";
|
|
2
|
-
|
|
3
|
-
export default [
|
|
4
|
-
{
|
|
5
|
-
rules: {
|
|
6
|
-
"no-unused-expressions": State.OFF /* fails to detect valueful assertions in mocha */,
|
|
7
|
-
"ts/no-unsafe-call": State.OFF /* fails to detect valueful assertions in mocha */,
|
|
8
|
-
"ts/strict-void-return": State.OFF /* false positive in mocha test-case async function context */,
|
|
9
|
-
} as const,
|
|
10
|
-
},
|
|
11
|
-
];
|