@himynameisdave/oxlint-config 2.0.0 → 2.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/bun.d.ts +9 -0
- package/dist/bun.js +28 -1
- package/dist/index.d.ts +9 -0
- package/package.json +2 -2
package/dist/bun.d.ts
CHANGED
|
@@ -11,6 +11,15 @@ declare const _default: {
|
|
|
11
11
|
'bun/prefer-bun-file': "error";
|
|
12
12
|
'bun/prefer-bun-write': "error";
|
|
13
13
|
'bun/prefer-bun-spawn': "error";
|
|
14
|
+
'bun/prefer-bun-shell': "error";
|
|
15
|
+
'bun/no-dotenv': "error";
|
|
16
|
+
'bun/prefer-import-meta-dir': "error";
|
|
17
|
+
'bun/prefer-import-meta-main': "error";
|
|
18
|
+
'bun/prefer-import-meta-path': "error";
|
|
19
|
+
'bun/prefer-bun-crypto-hasher': "error";
|
|
20
|
+
'bun/prefer-fetch': "error";
|
|
21
|
+
'bun/prefer-import-meta-resolve': "error";
|
|
22
|
+
'bun/no-late-module-mock': "error";
|
|
14
23
|
};
|
|
15
24
|
};
|
|
16
25
|
export default _default;
|
package/dist/bun.js
CHANGED
|
@@ -20,6 +20,33 @@ export default defineConfig({
|
|
|
20
20
|
'bun/prefer-bun-write': 'error',
|
|
21
21
|
// Bun's subprocess APIs integrate directly with its runtime and streams.
|
|
22
22
|
// https://github.com/himynameisdave/eslint-plugin-bunisms/blob/main/docs/rules/prefer-bun-spawn.md
|
|
23
|
-
'bun/prefer-bun-spawn': 'error'
|
|
23
|
+
'bun/prefer-bun-spawn': 'error',
|
|
24
|
+
// Bun Shell is the cross-platform API for shell-oriented process execution.
|
|
25
|
+
// https://github.com/himynameisdave/eslint-plugin-bunisms/blob/main/docs/rules/prefer-bun-shell.md
|
|
26
|
+
'bun/prefer-bun-shell': 'error',
|
|
27
|
+
// Bun loads environment files automatically, making dotenv redundant.
|
|
28
|
+
// https://github.com/himynameisdave/eslint-plugin-bunisms/blob/main/docs/rules/no-dotenv.md
|
|
29
|
+
'bun/no-dotenv': 'error',
|
|
30
|
+
// Bun exposes the current module directory directly.
|
|
31
|
+
// https://github.com/himynameisdave/eslint-plugin-bunisms/blob/main/docs/rules/prefer-import-meta-dir.md
|
|
32
|
+
'bun/prefer-import-meta-dir': 'error',
|
|
33
|
+
// Bun exposes an entrypoint check directly on import.meta.
|
|
34
|
+
// https://github.com/himynameisdave/eslint-plugin-bunisms/blob/main/docs/rules/prefer-import-meta-main.md
|
|
35
|
+
'bun/prefer-import-meta-main': 'error',
|
|
36
|
+
// Bun exposes the current module path directly on import.meta.
|
|
37
|
+
// https://github.com/himynameisdave/eslint-plugin-bunisms/blob/main/docs/rules/prefer-import-meta-path.md
|
|
38
|
+
'bun/prefer-import-meta-path': 'error',
|
|
39
|
+
// Bun's native CryptoHasher handles supported cryptographic digest chains.
|
|
40
|
+
// https://github.com/himynameisdave/eslint-plugin-bunisms/blob/main/docs/rules/prefer-bun-crypto-hasher.md
|
|
41
|
+
'bun/prefer-bun-crypto-hasher': 'error',
|
|
42
|
+
// Fetch provides Bun's native promise-based HTTP client API.
|
|
43
|
+
// https://github.com/himynameisdave/eslint-plugin-bunisms/blob/main/docs/rules/prefer-fetch.md
|
|
44
|
+
'bun/prefer-fetch': 'error',
|
|
45
|
+
// Bun ESM exposes module-relative resolution through import.meta.
|
|
46
|
+
// https://github.com/himynameisdave/eslint-plugin-bunisms/blob/main/docs/rules/prefer-import-meta-resolve.md
|
|
47
|
+
'bun/prefer-import-meta-resolve': 'error',
|
|
48
|
+
// Static imports can run module side effects before a late Bun mock.
|
|
49
|
+
// https://github.com/himynameisdave/eslint-plugin-bunisms/blob/main/docs/rules/no-late-module-mock.md
|
|
50
|
+
'bun/no-late-module-mock': 'error'
|
|
24
51
|
}
|
|
25
52
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -567,6 +567,15 @@ declare const _default: {
|
|
|
567
567
|
'bun/prefer-bun-file': "error";
|
|
568
568
|
'bun/prefer-bun-write': "error";
|
|
569
569
|
'bun/prefer-bun-spawn': "error";
|
|
570
|
+
'bun/prefer-bun-shell': "error";
|
|
571
|
+
'bun/no-dotenv': "error";
|
|
572
|
+
'bun/prefer-import-meta-dir': "error";
|
|
573
|
+
'bun/prefer-import-meta-main': "error";
|
|
574
|
+
'bun/prefer-import-meta-path': "error";
|
|
575
|
+
'bun/prefer-bun-crypto-hasher': "error";
|
|
576
|
+
'bun/prefer-fetch': "error";
|
|
577
|
+
'bun/prefer-import-meta-resolve': "error";
|
|
578
|
+
'bun/no-late-module-mock': "error";
|
|
570
579
|
};
|
|
571
580
|
} | {
|
|
572
581
|
overrides: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@himynameisdave/oxlint-config",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "An opinionated oxlint config, by and for himynameisdave.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"config",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"test": "bun run lint && bun run format:check && bun run check-coverage && bun run test:consumer"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"eslint-plugin-bunisms": "0.
|
|
71
|
+
"eslint-plugin-bunisms": "0.10.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@types/bun": "^1.4.2",
|