@kvoon/oxlint-config 0.1.6 → 0.2.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/README.md CHANGED
@@ -4,6 +4,7 @@ Opinionated shareable [oxlint](https://oxc.rs/docs/guide/usage/linter) preset:
4
4
 
5
5
  - style via `@stylistic/eslint-plugin` (curated; **single quotes**, **no semis** as errors)
6
6
  - vue rules (plugin on, rules scoped to `*.vue`)
7
+ - Antfu rules via `eslint-plugin-antfu`
7
8
  - sort via `eslint-plugin-perfectionist`
8
9
  - `typeAware` + `typeCheck` on
9
10
  - correctness `error`; suspicious/sort mostly `warn`
@@ -14,7 +15,7 @@ Opinionated shareable [oxlint](https://oxc.rs/docs/guide/usage/linter) preset:
14
15
  pnpm add -D @kvoon/oxlint-config oxlint oxlint-tsgolint
15
16
  ```
16
17
 
17
- Peers: `oxlint` `^1.74.0`, `oxlint-tsgolint` `^0.24.0`. Stylistic + perfectionist + `eslint-plugin-command` ship as dependencies of this package.
18
+ Peers: `oxlint` `^1.74.0`, `oxlint-tsgolint` `^0.24.0`. Antfu + stylistic + perfectionist + `eslint-plugin-command` ship as dependencies of this package.
18
19
 
19
20
  ## Usage
20
21
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { OxlintConfig } from "oxlint";
2
2
  //#region src/index.d.ts
3
- /** Opinionated oxlint preset. Zero-arg; local overrides via `extends: [kvoon()]`. */
4
3
  declare function kvoon(): OxlintConfig;
5
4
  //#endregion
6
5
  export { kvoon as default };
package/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { defineConfig } from "oxlint";
2
2
  //#region src/index.ts
3
- /** Opinionated oxlint preset. Zero-arg; local overrides via `extends: [kvoon()]`. */
4
3
  function kvoon() {
5
4
  return defineConfig({
6
5
  plugins: [
@@ -31,6 +30,10 @@ function kvoon() {
31
30
  "playground/*/dist/**"
32
31
  ],
33
32
  jsPlugins: [
33
+ {
34
+ name: "antfu",
35
+ specifier: "eslint-plugin-antfu"
36
+ },
34
37
  {
35
38
  name: "stylistic",
36
39
  specifier: "@stylistic/eslint-plugin"
@@ -45,6 +48,17 @@ function kvoon() {
45
48
  }
46
49
  ],
47
50
  rules: {
51
+ "no-unused-vars": "warn",
52
+ "antfu/consistent-chaining": "warn",
53
+ "antfu/consistent-list-newline": "warn",
54
+ "antfu/curly": "warn",
55
+ "antfu/if-newline": "warn",
56
+ "antfu/import-dedupe": "warn",
57
+ "antfu/no-import-dist": "warn",
58
+ "antfu/no-import-node-modules-by-path": "warn",
59
+ "antfu/no-top-level-await": "warn",
60
+ "antfu/no-ts-export-equal": "warn",
61
+ "antfu/top-level-function": "warn",
48
62
  "import/no-named-export": "off",
49
63
  "import/prefer-default-export": "off",
50
64
  "import/group-exports": "off",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kvoon/oxlint-config",
3
3
  "type": "module",
4
- "version": "0.1.6",
4
+ "version": "0.2.0",
5
5
  "packageManager": "pnpm@11.7.0",
6
6
  "description": "Opinionated shareable oxlint config (style, vue, sort, type-aware)",
7
7
  "author": "Kevin Kwong <kwongliegaai@gmail.com>",
@@ -41,7 +41,7 @@
41
41
  "dev": "tsdown --watch",
42
42
  "build": "tsdown",
43
43
  "prepublishOnly": "pnpm build",
44
- "release": "nlx bumpp && pnpm publish",
44
+ "release": "nlx bumpp && npm publish",
45
45
  "publish:ci": "pnpm publish --no-git-checks",
46
46
  "up": "nlx taze -I major",
47
47
  "typecheck": "tsc --noEmit",
@@ -55,6 +55,7 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "@stylistic/eslint-plugin": "^5.10.0",
58
+ "eslint-plugin-antfu": "^3.2.3",
58
59
  "eslint-plugin-command": "^4.0.0",
59
60
  "eslint-plugin-perfectionist": "^5.10.0"
60
61
  },