linted 31.2.11 → 31.3.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.
@@ -11,7 +11,98 @@ export declare const plugins: {
11
11
  "@typescript-eslint": {
12
12
  configs: unknown;
13
13
  };
14
- mocha: import("eslint").ESLint.Plugin;
14
+ mocha: {
15
+ rules: {
16
+ "handle-done-callback": Readonly<import("eslint").Rule.RuleModule>;
17
+ "max-top-level-suites": Readonly<import("eslint").Rule.RuleModule>;
18
+ "no-async-suite": Readonly<import("eslint").Rule.RuleModule>;
19
+ "no-exclusive-tests": Readonly<import("eslint").Rule.RuleModule>;
20
+ "no-exports": Readonly<import("eslint").Rule.RuleModule>;
21
+ "no-global-tests": Readonly<import("eslint").Rule.RuleModule>;
22
+ "no-hooks": Readonly<import("eslint").Rule.RuleModule>;
23
+ "no-hooks-for-single-case": Readonly<import("eslint").Rule.RuleModule>;
24
+ "no-identical-title": Readonly<import("eslint").Rule.RuleModule>;
25
+ "no-mocha-arrows": Readonly<import("eslint").Rule.RuleModule>;
26
+ "no-nested-tests": Readonly<import("eslint").Rule.RuleModule>;
27
+ "no-pending-tests": import("eslint").Rule.RuleModule;
28
+ "no-return-and-callback": Readonly<import("eslint").Rule.RuleModule>;
29
+ "no-return-from-async": Readonly<import("eslint").Rule.RuleModule>;
30
+ "no-setup-in-describe": Readonly<import("eslint").Rule.RuleModule>;
31
+ "no-sibling-hooks": Readonly<import("eslint").Rule.RuleModule>;
32
+ "no-synchronous-tests": Readonly<import("eslint").Rule.RuleModule>;
33
+ "no-top-level-hooks": Readonly<import("eslint").Rule.RuleModule>;
34
+ "prefer-arrow-callback": Readonly<import("eslint").Rule.RuleModule>;
35
+ "consistent-spacing-between-blocks": Readonly<import("eslint").Rule.RuleModule>;
36
+ "consistent-interface": Readonly<import("eslint").Rule.RuleModule>;
37
+ "valid-suite-title": Readonly<import("eslint").Rule.RuleModule>;
38
+ "valid-test-title": Readonly<import("eslint").Rule.RuleModule>;
39
+ "no-empty-title": Readonly<import("eslint").Rule.RuleModule>;
40
+ };
41
+ configs: {
42
+ all: {
43
+ name: string;
44
+ plugins: {
45
+ mocha: {};
46
+ };
47
+ languageOptions: {
48
+ globals: {
49
+ readonly after: false;
50
+ readonly afterEach: false;
51
+ readonly before: false;
52
+ readonly beforeEach: false;
53
+ readonly context: false;
54
+ readonly describe: false;
55
+ readonly it: false;
56
+ readonly mocha: false;
57
+ readonly run: false;
58
+ readonly setup: false;
59
+ readonly specify: false;
60
+ readonly suite: false;
61
+ readonly suiteSetup: false;
62
+ readonly suiteTeardown: false;
63
+ readonly teardown: false;
64
+ readonly test: false;
65
+ readonly xcontext: false;
66
+ readonly xdescribe: false;
67
+ readonly xit: false;
68
+ readonly xspecify: false;
69
+ };
70
+ };
71
+ rules: import("eslint").Linter.RulesRecord;
72
+ };
73
+ recommended: {
74
+ name: string;
75
+ plugins: {
76
+ mocha: {};
77
+ };
78
+ languageOptions: {
79
+ globals: {
80
+ readonly after: false;
81
+ readonly afterEach: false;
82
+ readonly before: false;
83
+ readonly beforeEach: false;
84
+ readonly context: false;
85
+ readonly describe: false;
86
+ readonly it: false;
87
+ readonly mocha: false;
88
+ readonly run: false;
89
+ readonly setup: false;
90
+ readonly specify: false;
91
+ readonly suite: false;
92
+ readonly suiteSetup: false;
93
+ readonly suiteTeardown: false;
94
+ readonly teardown: false;
95
+ readonly test: false;
96
+ readonly xcontext: false;
97
+ readonly xdescribe: false;
98
+ readonly xit: false;
99
+ readonly xspecify: false;
100
+ };
101
+ };
102
+ rules: import("eslint").Linter.RulesRecord;
103
+ };
104
+ };
105
+ };
15
106
  "chai-friendly": typeof chai_friendly;
16
107
  "chai-expect": typeof chai_expect;
17
108
  "@html-eslint": typeof html_eslint;
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/imports/plugins.ts"],"names":[],"mappings":"AAGA,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO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;;;;;;;;;;;;qBAAwyC,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;qBAA89B,CAAC;+BAA4C,CAAC;qBAAkC,CAAC;;;;;;;;;;;uBAA+X,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAl50B,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;qBAA+K,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;qBAAolB,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAA0wC,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;;;;;;;CAD95L,CAAC"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
- "$pkg": "2211.5.1",
2
+ "$pkg": "2211.6.0",
3
3
  "$schema": "https://json.schemastore.org/package",
4
4
  "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
5
  "name": "linted",
6
- "version": "31.2.11",
6
+ "version": "31.3.0",
7
7
  "repository": "github:jimmy-zhening-luo/linted",
8
8
  "description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
9
9
  "keywords": [
@@ -36,7 +36,7 @@
36
36
  "peerDependencies": {
37
37
  "eslint": "~9.36.0",
38
38
  "eslint-plugin-svelte": "~3.12.4",
39
- "mocha": "^11.7.3",
39
+ "mocha": "^11.7.4",
40
40
  "typescript": "^5.9.3"
41
41
  },
42
42
  "peerDependenciesMeta": {
@@ -53,14 +53,14 @@
53
53
  "dependencies": {
54
54
  "@eslint/css": "0.11.1",
55
55
  "@eslint/json": "0.13.2",
56
- "@eslinted/core": "24.1.6",
57
- "@eslinted/defaults": "12.19.7",
56
+ "@eslinted/core": "24.1.7",
57
+ "@eslinted/defaults": "12.20.0",
58
58
  "@html-eslint/eslint-plugin": "0.47.0",
59
59
  "@stylistic/eslint-plugin": "5.4.0",
60
60
  "eslint-plugin-chai-expect": "3.1.0",
61
61
  "eslint-plugin-chai-friendly": "1.1.0",
62
62
  "eslint-plugin-jsonc": "2.20.1",
63
- "eslint-plugin-mocha": "11.1.0",
63
+ "eslint-plugin-mocha": "11.2.0",
64
64
  "eslint-plugin-yml": "1.18.0",
65
65
  "typescript-eslint": "8.45.0"
66
66
  },
@@ -68,14 +68,14 @@
68
68
  "@types/chai": "^5.2.2",
69
69
  "@types/mocha": "^10.0.10",
70
70
  "chai": "^6.2.0",
71
- "mocha": "^11.7.3",
71
+ "mocha": "^11.7.4",
72
72
  "ts-add-js-extension": "^1.6.6",
73
73
  "typescript": "^5.9.3"
74
74
  },
75
75
  "main": "dist/index.js",
76
76
  "types": "dist/index.d.ts",
77
77
  "scripts": {
78
- "clean": "cmd --% /c \"(if exist dist rmdir /s /q dist) & (if exist build rmdir /s /q build) & (if exist .svelte-kit rmdir /s /q .svelte-kit) & (if exist .eslintcache del /f /q .eslintcache)\" || rm -rf dist build .svelte-kit .eslintcache",
78
+ "clean": "cmd --% /c \"(if exist dist rmdir /s /q dist) & (if exist build rmdir /s /q build) & (if exist .eslintcache del /f /q .eslintcache)\" || rm -rf dist build .eslintcache",
79
79
  "prebuild": "npm run clean",
80
80
  "build": "cmd /c \"(if exist svelte.config.js (npm run build:svelte) else (npm run build:ts))\" || bash -c 'if [ -f svelte.config.js ]; then npm run build:svelte; else npm run build:ts; fi'",
81
81
  "build:ts": "tsc && ts-add-js-extension --dir=dist --showprogress=false",
@@ -83,8 +83,8 @@
83
83
  "postbuild": "npm run lint || echo \"Lint failed. Continuing...\"",
84
84
  "lint": "eslint --cache --fix",
85
85
  "pretest": "npm run build",
86
- "test": "npm run --if-present test:mocha",
87
- "test:mocha": "mocha",
86
+ "test": "npm run --if-present test:runner",
87
+ "test:runner": "mocha",
88
88
  "prestart": "npm run --ignore-scripts build",
89
89
  "start": "cmd --% /c \"(if exist svelte.config.js (npm run start:svelte) else (npm run start:ts))\" || bash -c 'if [ -f svelte.config.js ]; then npm run start:svelte; else npm run start:ts; fi'",
90
90
  "start:ts": "node .",