@kamaal111/kamaal-quality-config 0.0.3 → 0.0.4
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 +2 -2
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/oxlintrc.json +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@ Kamaal Farah's shared [oxlint](https://oxc.rs) quality config.
|
|
|
4
4
|
|
|
5
5
|
Currently enables every rule from [`@kamaal111/oxlint-plugin-anti-slop`](https://github.com/kamaal111/anti-slop),
|
|
6
6
|
Kamaal's fork of [`dmmulroy/anti-slop`](https://github.com/dmmulroy/anti-slop), plus a curated set of
|
|
7
|
-
rules from oxlint's built-in `typescript`, `unicorn`, and `
|
|
8
|
-
(via oxlint's `jsPlugins`). More rule sources will be folded in over time.
|
|
7
|
+
rules from oxlint's built-in `typescript`, `unicorn`, `oxc`, and `vitest` plugins and from
|
|
8
|
+
`eslint-plugin-import` (via oxlint's `jsPlugins`). More rule sources will be folded in over time.
|
|
9
9
|
|
|
10
10
|
## Table of contents
|
|
11
11
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
plugins: ("oxc" | "typescript" | "unicorn")[];
|
|
2
|
+
plugins: ("oxc" | "typescript" | "unicorn" | "vitest")[];
|
|
3
3
|
jsPlugins: {
|
|
4
4
|
name: string;
|
|
5
5
|
specifier: string;
|
|
@@ -55,9 +55,12 @@ declare const _default: {
|
|
|
55
55
|
'typescript/prefer-for-of': "error";
|
|
56
56
|
'typescript/prefer-function-type': "error";
|
|
57
57
|
'oxc/no-accumulating-spread': "error";
|
|
58
|
+
'vitest/no-conditional-expect': "error";
|
|
59
|
+
'vitest/expect-expect': "error";
|
|
58
60
|
'anti-slop/no-runtime-typeof': ["error", {
|
|
59
61
|
allowInTypeGuards: boolean;
|
|
60
62
|
}];
|
|
63
|
+
'unicorn/no-abusive-eslint-disable': "error";
|
|
61
64
|
'import-js/order': ["error", {
|
|
62
65
|
groups: (string | string[])[];
|
|
63
66
|
'newlines-between': "always";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAkEuB,KAAK;gBAAS,eAAe"}
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import antiSlopPlugin from '@kamaal111/oxlint-plugin-anti-slop';
|
|
|
2
2
|
import { defineConfig } from 'oxlint';
|
|
3
3
|
const antiSlopRules = Object.fromEntries(Object.keys(antiSlopPlugin.rules).map(ruleName => [`anti-slop/${ruleName}`, 'error']));
|
|
4
4
|
export default defineConfig({
|
|
5
|
-
plugins: ['typescript', 'unicorn', 'oxc'],
|
|
5
|
+
plugins: ['typescript', 'unicorn', 'oxc', 'vitest'],
|
|
6
6
|
jsPlugins: [
|
|
7
7
|
{ name: 'anti-slop', specifier: '@kamaal111/oxlint-plugin-anti-slop' },
|
|
8
8
|
{ name: 'import-js', specifier: 'eslint-plugin-import' },
|
|
@@ -51,7 +51,10 @@ export default defineConfig({
|
|
|
51
51
|
'typescript/prefer-for-of': 'error',
|
|
52
52
|
'typescript/prefer-function-type': 'error',
|
|
53
53
|
'oxc/no-accumulating-spread': 'error',
|
|
54
|
+
'vitest/no-conditional-expect': 'error',
|
|
55
|
+
'vitest/expect-expect': 'error',
|
|
54
56
|
'anti-slop/no-runtime-typeof': ['error', { allowInTypeGuards: true }],
|
|
57
|
+
'unicorn/no-abusive-eslint-disable': 'error',
|
|
55
58
|
'import-js/order': [
|
|
56
59
|
'error',
|
|
57
60
|
{
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,aAAa,GAAG,MAAM,CAAC,WAAW,CACtC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,aAAa,QAAQ,EAAE,EAAE,OAAO,CAAU,CAAC,CAC/F,CAAC;AAEF,eAAe,YAAY,CAAC;IAC1B,OAAO,EAAE,CAAC,YAAY,EAAE,SAAS,EAAE,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,MAAM,aAAa,GAAG,MAAM,CAAC,WAAW,CACtC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,aAAa,QAAQ,EAAE,EAAE,OAAO,CAAU,CAAC,CAC/F,CAAC;AAEF,eAAe,YAAY,CAAC;IAC1B,OAAO,EAAE,CAAC,YAAY,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC;IACnD,SAAS,EAAE;QACT,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,oCAAoC,EAAE;QACtE,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,sBAAsB,EAAE;KACzD;IACD,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;IAC5B,UAAU,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE;IACpC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BAAsB,EAAE,OAAO;QAC/B,6BAA6B,EAAE,CAAC,OAAO,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC;QACrE,mCAAmC,EAAE,OAAO;QAC5C,iBAAiB,EAAE;YACjB,OAAO;YACP;gBACE,MAAM,EAAE,CAAC,SAAS,EAAE,UAAU,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;gBAC3E,kBAAkB,EAAE,QAAQ;gBAC5B,WAAW,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE;aACrD;SACF;KACF;IACD,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;CACvB,CAAC,CAAC"}
|
package/dist/oxlintrc.json
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
"plugins": [
|
|
3
3
|
"typescript",
|
|
4
4
|
"unicorn",
|
|
5
|
-
"oxc"
|
|
5
|
+
"oxc",
|
|
6
|
+
"vitest"
|
|
6
7
|
],
|
|
7
8
|
"jsPlugins": [
|
|
8
9
|
{
|
|
@@ -94,6 +95,9 @@
|
|
|
94
95
|
"typescript/prefer-for-of": "error",
|
|
95
96
|
"typescript/prefer-function-type": "error",
|
|
96
97
|
"oxc/no-accumulating-spread": "error",
|
|
98
|
+
"vitest/no-conditional-expect": "error",
|
|
99
|
+
"vitest/expect-expect": "error",
|
|
100
|
+
"unicorn/no-abusive-eslint-disable": "error",
|
|
97
101
|
"import-js/order": [
|
|
98
102
|
"error",
|
|
99
103
|
{
|