@kvoon/oxlint-config 0.1.4 → 0.1.6

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/dist/index.js +40 -28
  3. package/package.json +2 -1
package/README.md CHANGED
@@ -14,7 +14,7 @@ Opinionated shareable [oxlint](https://oxc.rs/docs/guide/usage/linter) preset:
14
14
  pnpm add -D @kvoon/oxlint-config oxlint oxlint-tsgolint
15
15
  ```
16
16
 
17
- Peers: `oxlint` `^1.74.0`, `oxlint-tsgolint` `^0.24.0`. Stylistic + perfectionist ship as dependencies of this package.
17
+ Peers: `oxlint` `^1.74.0`, `oxlint-tsgolint` `^0.24.0`. Stylistic + perfectionist + `eslint-plugin-command` ship as dependencies of this package.
18
18
 
19
19
  ## Usage
20
20
 
package/dist/index.js CHANGED
@@ -30,13 +30,20 @@ function kvoon() {
30
30
  ".vitepress/cache/**",
31
31
  "playground/*/dist/**"
32
32
  ],
33
- jsPlugins: [{
34
- name: "stylistic",
35
- specifier: "@stylistic/eslint-plugin"
36
- }, {
37
- name: "perfectionist",
38
- specifier: "eslint-plugin-perfectionist"
39
- }],
33
+ jsPlugins: [
34
+ {
35
+ name: "stylistic",
36
+ specifier: "@stylistic/eslint-plugin"
37
+ },
38
+ {
39
+ name: "perfectionist",
40
+ specifier: "eslint-plugin-perfectionist"
41
+ },
42
+ {
43
+ name: "command",
44
+ specifier: "eslint-plugin-command"
45
+ }
46
+ ],
40
47
  rules: {
41
48
  "import/no-named-export": "off",
42
49
  "import/prefer-default-export": "off",
@@ -62,7 +69,7 @@ function kvoon() {
62
69
  "stylistic/arrow-parens": ["warn", "as-needed"],
63
70
  "stylistic/brace-style": [
64
71
  "warn",
65
- "1tbs",
72
+ "stroustrup",
66
73
  { allowSingleLine: true }
67
74
  ],
68
75
  "stylistic/keyword-spacing": "warn",
@@ -72,29 +79,34 @@ function kvoon() {
72
79
  "stylistic/no-multi-spaces": "warn",
73
80
  "stylistic/block-spacing": "warn",
74
81
  "stylistic/key-spacing": "warn",
75
- "perfectionist/sort-imports": ["warn", { newlinesBetween: "ignore" }],
82
+ "perfectionist/sort-imports": ["warn", {
83
+ groups: [
84
+ "type-import",
85
+ [
86
+ "type-parent",
87
+ "type-sibling",
88
+ "type-index",
89
+ "type-internal"
90
+ ],
91
+ "value-builtin",
92
+ "value-external",
93
+ "value-internal",
94
+ [
95
+ "value-parent",
96
+ "value-sibling",
97
+ "value-index"
98
+ ],
99
+ "side-effect",
100
+ "ts-equals-import",
101
+ "unknown"
102
+ ],
103
+ newlinesBetween: "ignore",
104
+ newlinesInside: "ignore"
105
+ }],
76
106
  "perfectionist/sort-named-imports": "warn",
77
107
  "perfectionist/sort-exports": "warn",
78
108
  "perfectionist/sort-named-exports": "warn",
79
- "perfectionist/sort-objects": "off",
80
- "perfectionist/sort-object-types": "warn",
81
- "perfectionist/sort-interfaces": "warn",
82
- "perfectionist/sort-enums": "warn",
83
- "perfectionist/sort-union-types": "warn",
84
- "perfectionist/sort-intersection-types": "warn",
85
- "perfectionist/sort-array-includes": "warn",
86
- "perfectionist/sort-classes": "warn",
87
- "perfectionist/sort-maps": "warn",
88
- "perfectionist/sort-sets": "warn",
89
- "perfectionist/sort-switch-case": "warn",
90
- "perfectionist/sort-jsx-props": "warn",
91
- "perfectionist/sort-heritage-clauses": "warn",
92
- "perfectionist/sort-decorators": "warn",
93
- "perfectionist/sort-modules": "warn",
94
- "perfectionist/sort-variable-declarations": "warn",
95
- "perfectionist/sort-import-attributes": "warn",
96
- "perfectionist/sort-export-attributes": "warn",
97
- "perfectionist/sort-arrays": "warn"
109
+ "command/command": "error"
98
110
  },
99
111
  overrides: [{
100
112
  files: ["**/*.vue"],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kvoon/oxlint-config",
3
3
  "type": "module",
4
- "version": "0.1.4",
4
+ "version": "0.1.6",
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>",
@@ -55,6 +55,7 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "@stylistic/eslint-plugin": "^5.10.0",
58
+ "eslint-plugin-command": "^4.0.0",
58
59
  "eslint-plugin-perfectionist": "^5.10.0"
59
60
  },
60
61
  "devDependencies": {