@kasoa/oxlint-config 0.0.8 → 0.0.10

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.
@@ -18,28 +18,30 @@ export const base = defineConfig({
18
18
  style: "error",
19
19
  },
20
20
  rules: {
21
+ "capitalized-comments": "off",
21
22
  "func-style": "off",
22
23
  "id-length": "off",
23
- "capitalized-comments": "off",
24
- curly: ["error", "multi-line", "consistent"],
25
24
  "init-declarations": "off",
25
+ "max-classes-per-file": "off",
26
+ "max-lines-per-function": "off",
27
+ "max-statements": "off",
28
+ "no-continue": "off",
26
29
  "no-magic-numbers": "off",
27
30
  "no-ternary": "off",
31
+ "require-await": "off",
28
32
  "sort-imports": "off",
29
33
  "sort-keys": "off",
30
34
  "vars-on-top": "off",
31
35
  complexity: ["error", { max: 10 }],
36
+ curly: ["error", "multi-line", "consistent"],
32
37
  "default-case-last": "error",
33
38
  eqeqeq: "error",
34
39
  "getter-return": "error",
35
40
  "grouped-accessor-pairs": ["error", "getBeforeSet"],
36
- "max-classes-per-file": ["error", { max: 1 }],
37
41
  "max-depth": ["error", { max: 3 }],
38
- "max-lines-per-function": ["error", { max: 50, skipBlankLines: true, skipComments: true }],
39
- "import/no-unassigned-import": "off",
40
42
  "max-nested-callbacks": ["error", { max: 3 }],
41
43
  "max-params": ["error", { max: 3 }],
42
- "max-statements": ["error", { max: 10 }],
44
+ "new-cap": "off",
43
45
  "no-alert": "error",
44
46
  "no-bitwise": "error",
45
47
  "no-console": ["error", { allow: ["info", "warn", "error"] }],
@@ -57,10 +59,12 @@ export const base = defineConfig({
57
59
  "import/no-named-export": "off",
58
60
  "import/no-namespace": "off",
59
61
  "import/no-nodejs-modules": "off",
62
+ "import/no-unassigned-import": "off",
60
63
  "import/prefer-default-export": "off",
61
- "typescript/consistent-type-definitions": "off",
62
64
  "import/no-cycle": "error",
65
+ "promise/prefer-await-to-callbacks": "off",
63
66
  "typescript/ban-ts-comment": ["error", { minimumDescriptionLength: 10 }],
67
+ "typescript/consistent-type-definitions": "off",
64
68
  "typescript/consistent-return": "error",
65
69
  "typescript/consistent-type-exports": "error",
66
70
  "typescript/consistent-type-imports": [
@@ -70,7 +74,6 @@ export const base = defineConfig({
70
74
  "typescript/dot-notation": "error",
71
75
  "typescript/no-confusing-void-expression": "error",
72
76
  "typescript/no-dynamic-delete": "error",
73
- "typescript/no-empty-object-type": "error",
74
77
  "typescript/no-explicit-any": "error",
75
78
  "typescript/no-floating-promises": "error",
76
79
  "typescript/no-misused-promises": "error",
@@ -94,9 +97,8 @@ export const base = defineConfig({
94
97
  "typescript/prefer-nullish-coalescing": "error",
95
98
  "typescript/prefer-optional-chain": "error",
96
99
  "typescript/prefer-readonly": "error",
97
- "typescript/prefer-readonly-parameter-types": "error",
98
100
  "typescript/prefer-regexp-exec": "error",
99
- "typescript/promise-function-async": "error",
101
+ "typescript/require-await": "off",
100
102
  "typescript/require-array-sort-compare": "error",
101
103
  "typescript/restrict-plus-operands": "error",
102
104
  "typescript/restrict-template-expressions": "error",
@@ -106,8 +108,8 @@ export const base = defineConfig({
106
108
  "typescript/switch-exhaustiveness-check": "error",
107
109
  "typescript/unbound-method": "error",
108
110
  "typescript/use-unknown-in-catch-callback-variable": "error",
109
- "unicorn/no-abusive-eslint-disable": "error",
110
111
  "unicorn/no-null": "off",
112
+ "unicorn/no-abusive-eslint-disable": "error",
111
113
  "unicorn/filename-case": ["error", { case: "kebabCase" }],
112
114
  },
113
115
  overrides: [
@@ -126,6 +128,12 @@ export const base = defineConfig({
126
128
  "func-names": "off",
127
129
  },
128
130
  },
131
+ {
132
+ files: ["**/*.d.ts"],
133
+ rules: {
134
+ "typescript/no-empty-interface": "off",
135
+ },
136
+ },
129
137
  {
130
138
  files: [
131
139
  "**/test/**",
@@ -138,21 +146,11 @@ export const base = defineConfig({
138
146
  vitest: true,
139
147
  },
140
148
  rules: {
141
- "max-lines-per-function": ["error", { max: 75, skipBlankLines: true, skipComments: true }],
149
+ "max-lines-per-function": "off",
150
+ "max-statements": "off",
142
151
  "vitest/no-importing-vitest-globals": "off",
143
152
  "vitest/max-nested-describe": ["error", { max: 3 }],
144
153
  },
145
154
  },
146
- {
147
- files: [
148
- "**/worker-configuration.d.ts",
149
- "**/generated/**",
150
- "**/*.generated.{js,jsx,ts,tsx,mjs,cjs,mts,cts,d.ts}",
151
- ],
152
- rules: {
153
- "max-lines": "off",
154
- "unicorn/no-abusive-eslint-disable": "off",
155
- },
156
- },
157
155
  ],
158
156
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kasoa/oxlint-config",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Kasoa's Oxlint configurations",
5
5
  "keywords": [
6
6
  "kasoa",