@kamaal111/kamaal-quality-config 0.0.2 → 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 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 `oxc` plugins and from `eslint-plugin-import`
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;
@@ -18,10 +18,49 @@ declare const _default: {
18
18
  'typescript/consistent-type-assertions': ["error", {
19
19
  assertionStyle: "never";
20
20
  }];
21
+ 'typescript/no-explicit-any': "error";
22
+ 'typescript/ban-ts-comment': ["error", {
23
+ minimumDescriptionLength: number;
24
+ }];
25
+ 'typescript/no-duplicate-enum-values': "error";
26
+ 'typescript/no-empty-object-type': "error";
27
+ 'typescript/no-extra-non-null-assertion': "error";
28
+ 'typescript/no-misused-new': "error";
29
+ 'typescript/no-namespace': "error";
30
+ 'typescript/no-non-null-asserted-optional-chain': "error";
31
+ 'typescript/no-require-imports': "error";
32
+ 'typescript/no-this-alias': "error";
33
+ 'typescript/no-unnecessary-type-constraint': "error";
34
+ 'typescript/no-unsafe-declaration-merging': "error";
35
+ 'typescript/no-unsafe-function-type': "error";
36
+ 'typescript/no-wrapper-object-types': "error";
37
+ 'typescript/prefer-as-const': "error";
38
+ 'typescript/prefer-namespace-keyword': "error";
39
+ 'typescript/triple-slash-reference': "error";
40
+ 'typescript/no-dynamic-delete': "error";
41
+ 'typescript/no-extraneous-class': "error";
42
+ 'typescript/no-invalid-void-type': "error";
43
+ 'typescript/no-non-null-asserted-nullish-coalescing': "error";
44
+ 'typescript/prefer-literal-enum-member': "error";
45
+ 'typescript/unified-signatures': "error";
46
+ 'typescript/adjacent-overload-signatures': "error";
47
+ 'typescript/array-type': "error";
48
+ 'typescript/ban-tslint-comment': "error";
49
+ 'typescript/class-literal-property-style': "error";
50
+ 'typescript/consistent-generic-constructors': "error";
51
+ 'typescript/consistent-indexed-object-style': "error";
52
+ 'typescript/consistent-type-definitions': "error";
53
+ 'typescript/no-confusing-non-null-assertion': "error";
54
+ 'typescript/no-inferrable-types': "error";
55
+ 'typescript/prefer-for-of': "error";
56
+ 'typescript/prefer-function-type': "error";
21
57
  'oxc/no-accumulating-spread': "error";
58
+ 'vitest/no-conditional-expect': "error";
59
+ 'vitest/expect-expect': "error";
22
60
  'anti-slop/no-runtime-typeof': ["error", {
23
61
  allowInTypeGuards: boolean;
24
62
  }];
63
+ 'unicorn/no-abusive-eslint-disable': "error";
25
64
  'import-js/order': ["error", {
26
65
  groups: (string | string[])[];
27
66
  'newlines-between': "always";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA6BuB,KAAK;gBAAS,eAAe"}
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' },
@@ -16,8 +16,45 @@ export default defineConfig({
16
16
  'typescript/consistent-type-imports': 'error',
17
17
  'typescript/no-non-null-assertion': 'error',
18
18
  'typescript/consistent-type-assertions': ['error', { assertionStyle: 'never' }],
19
+ 'typescript/no-explicit-any': 'error',
20
+ 'typescript/ban-ts-comment': ['error', { minimumDescriptionLength: 10 }],
21
+ 'typescript/no-duplicate-enum-values': 'error',
22
+ 'typescript/no-empty-object-type': 'error',
23
+ 'typescript/no-extra-non-null-assertion': 'error',
24
+ 'typescript/no-misused-new': 'error',
25
+ 'typescript/no-namespace': 'error',
26
+ 'typescript/no-non-null-asserted-optional-chain': 'error',
27
+ 'typescript/no-require-imports': 'error',
28
+ 'typescript/no-this-alias': 'error',
29
+ 'typescript/no-unnecessary-type-constraint': 'error',
30
+ 'typescript/no-unsafe-declaration-merging': 'error',
31
+ 'typescript/no-unsafe-function-type': 'error',
32
+ 'typescript/no-wrapper-object-types': 'error',
33
+ 'typescript/prefer-as-const': 'error',
34
+ 'typescript/prefer-namespace-keyword': 'error',
35
+ 'typescript/triple-slash-reference': 'error',
36
+ 'typescript/no-dynamic-delete': 'error',
37
+ 'typescript/no-extraneous-class': 'error',
38
+ 'typescript/no-invalid-void-type': 'error',
39
+ 'typescript/no-non-null-asserted-nullish-coalescing': 'error',
40
+ 'typescript/prefer-literal-enum-member': 'error',
41
+ 'typescript/unified-signatures': 'error',
42
+ 'typescript/adjacent-overload-signatures': 'error',
43
+ 'typescript/array-type': 'error',
44
+ 'typescript/ban-tslint-comment': 'error',
45
+ 'typescript/class-literal-property-style': 'error',
46
+ 'typescript/consistent-generic-constructors': 'error',
47
+ 'typescript/consistent-indexed-object-style': 'error',
48
+ 'typescript/consistent-type-definitions': 'error',
49
+ 'typescript/no-confusing-non-null-assertion': 'error',
50
+ 'typescript/no-inferrable-types': 'error',
51
+ 'typescript/prefer-for-of': 'error',
52
+ 'typescript/prefer-function-type': 'error',
19
53
  'oxc/no-accumulating-spread': 'error',
54
+ 'vitest/no-conditional-expect': 'error',
55
+ 'vitest/expect-expect': 'error',
20
56
  'anti-slop/no-runtime-typeof': ['error', { allowInTypeGuards: true }],
57
+ 'unicorn/no-abusive-eslint-disable': 'error',
21
58
  'import-js/order': [
22
59
  'error',
23
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;IACzC,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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O;QACzC,0BAA0B,EAAE,OAAO;QACnC,iCAAiC,EAAE,OAAO;QAC1C,4BAA4B,EAAE,OAAO;QACrC,8BAA8B,EAAE,OAAO;QACvC,sBAAsB,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"oxfmt.d.ts","sourceRoot":"","sources":["../src/oxfmt.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,gBAAgB;aACpB,UAAU,EAAE,GAAG;aACf,WAAW,EAAE,OAAO;aACpB,WAAW;CACH,CAAC;eAEI,gBAAgB"}
1
+ {"version":3,"file":"oxfmt.d.ts","sourceRoot":"","sources":["../src/oxfmt.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,gBAAgB;yBACR,GAAG;0BACF,OAAO;;CAEM,CAAC;eAEd,gBAAgB"}
package/dist/oxfmt.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"oxfmt.js","sourceRoot":"","sources":["../src/oxfmt.ts"],"names":[],"mappings":"AAAA,MAAM,gBAAgB,GAAG;IACvB,UAAU,EAAE,GAAG;IACf,WAAW,EAAE,OAAO;IACpB,WAAW,EAAE,IAAI;CACT,CAAC;AAEX,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"oxfmt.js","sourceRoot":"","sources":["../src/oxfmt.ts"],"names":[],"mappings":"AAEA,MAAM,gBAAgB,GAAG;IACvB,UAAU,EAAE,GAAG;IACf,WAAW,EAAE,OAAO;IACpB,WAAW,EAAE,IAAI;CACS,CAAC;AAE7B,eAAe,gBAAgB,CAAC"}
@@ -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
  {
@@ -54,7 +55,49 @@
54
55
  "assertionStyle": "never"
55
56
  }
56
57
  ],
58
+ "typescript/no-explicit-any": "error",
59
+ "typescript/ban-ts-comment": [
60
+ "error",
61
+ {
62
+ "minimumDescriptionLength": 10
63
+ }
64
+ ],
65
+ "typescript/no-duplicate-enum-values": "error",
66
+ "typescript/no-empty-object-type": "error",
67
+ "typescript/no-extra-non-null-assertion": "error",
68
+ "typescript/no-misused-new": "error",
69
+ "typescript/no-namespace": "error",
70
+ "typescript/no-non-null-asserted-optional-chain": "error",
71
+ "typescript/no-require-imports": "error",
72
+ "typescript/no-this-alias": "error",
73
+ "typescript/no-unnecessary-type-constraint": "error",
74
+ "typescript/no-unsafe-declaration-merging": "error",
75
+ "typescript/no-unsafe-function-type": "error",
76
+ "typescript/no-wrapper-object-types": "error",
77
+ "typescript/prefer-as-const": "error",
78
+ "typescript/prefer-namespace-keyword": "error",
79
+ "typescript/triple-slash-reference": "error",
80
+ "typescript/no-dynamic-delete": "error",
81
+ "typescript/no-extraneous-class": "error",
82
+ "typescript/no-invalid-void-type": "error",
83
+ "typescript/no-non-null-asserted-nullish-coalescing": "error",
84
+ "typescript/prefer-literal-enum-member": "error",
85
+ "typescript/unified-signatures": "error",
86
+ "typescript/adjacent-overload-signatures": "error",
87
+ "typescript/array-type": "error",
88
+ "typescript/ban-tslint-comment": "error",
89
+ "typescript/class-literal-property-style": "error",
90
+ "typescript/consistent-generic-constructors": "error",
91
+ "typescript/consistent-indexed-object-style": "error",
92
+ "typescript/consistent-type-definitions": "error",
93
+ "typescript/no-confusing-non-null-assertion": "error",
94
+ "typescript/no-inferrable-types": "error",
95
+ "typescript/prefer-for-of": "error",
96
+ "typescript/prefer-function-type": "error",
57
97
  "oxc/no-accumulating-spread": "error",
98
+ "vitest/no-conditional-expect": "error",
99
+ "vitest/expect-expect": "error",
100
+ "unicorn/no-abusive-eslint-disable": "error",
58
101
  "import-js/order": [
59
102
  "error",
60
103
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kamaal111/kamaal-quality-config",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Kamaal Farah's shared oxlint quality config.",
5
5
  "keywords": [
6
6
  "lint",