@2digits/oxlint-config 0.6.2 → 0.6.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/dist/base.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { n as TypedOxlintConfig } from "./types-D6IckTQt.mjs";
1
+ import { n as TypedOxlintConfig } from "./types-Dd1tbFEY.mjs";
2
2
 
3
3
  //#region src/base.d.ts
4
4
  declare const baseConfig: TypedOxlintConfig;
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as RuleName, i as defineTypedConfig, n as TypedOxlintConfig, o as RuleOptions, r as TypedOxlintOverride, t as Rules } from "./types-D6IckTQt.mjs";
1
+ import { a as RuleName, i as defineTypedConfig, n as TypedOxlintConfig, o as RuleOptions, r as TypedOxlintOverride, t as Rules } from "./types-Dd1tbFEY.mjs";
2
2
  import { OxlintConfig } from "oxlint";
3
3
 
4
4
  //#region src/config.d.ts
@@ -142,6 +142,16 @@ interface RuleOptions {
142
142
  * @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/for-direction.html
143
143
  */
144
144
  'eslint/for-direction'?: DummyRule;
145
+ /**
146
+ * Func name matching
147
+ *
148
+ * plugin: Eslint
149
+ * category: Style
150
+ * type-aware: false
151
+ *
152
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/func-name-matching.html
153
+ */
154
+ 'eslint/func-name-matching'?: DummyRule;
145
155
  /**
146
156
  * Func names
147
157
  *
@@ -166,7 +176,7 @@ interface RuleOptions {
166
176
  * Getter return
167
177
  *
168
178
  * plugin: Eslint
169
- * category: Nursery
179
+ * category: Correctness
170
180
  * type-aware: false
171
181
  *
172
182
  * @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/getter-return.html
@@ -1222,6 +1232,16 @@ interface RuleOptions {
1222
1232
  * @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-undefined.html
1223
1233
  */
1224
1234
  'eslint/no-undefined'?: DummyRule;
1235
+ /**
1236
+ * No underscore dangle
1237
+ *
1238
+ * plugin: Eslint
1239
+ * category: Suspicious
1240
+ * type-aware: false
1241
+ *
1242
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-underscore-dangle.html
1243
+ */
1244
+ 'eslint/no-underscore-dangle'?: DummyRule;
1225
1245
  /**
1226
1246
  * No unexpected multiline
1227
1247
  *
@@ -1256,7 +1276,7 @@ interface RuleOptions {
1256
1276
  * No unreachable
1257
1277
  *
1258
1278
  * plugin: Eslint
1259
- * category: Nursery
1279
+ * category: Correctness
1260
1280
  * type-aware: false
1261
1281
  *
1262
1282
  * @see https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unreachable.html
@@ -2402,6 +2422,16 @@ interface RuleOptions {
2402
2422
  * @see https://oxc.rs/docs/guide/usage/linter/rules/jest/prefer-equality-matcher.html
2403
2423
  */
2404
2424
  'jest/prefer-equality-matcher'?: DummyRule;
2425
+ /**
2426
+ * Prefer expect assertions
2427
+ *
2428
+ * plugin: Jest
2429
+ * category: Style
2430
+ * type-aware: false
2431
+ *
2432
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/jest/prefer-expect-assertions.html
2433
+ */
2434
+ 'jest/prefer-expect-assertions'?: DummyRule;
2405
2435
  /**
2406
2436
  * Prefer expect resolves
2407
2437
  *
@@ -3486,7 +3516,7 @@ interface RuleOptions {
3486
3516
  * Branches sharing code
3487
3517
  *
3488
3518
  * plugin: Oxc
3489
- * category: Nursery
3519
+ * category: Pedantic
3490
3520
  * type-aware: false
3491
3521
  *
3492
3522
  * @see https://oxc.rs/docs/guide/usage/linter/rules/oxc/branches-sharing-code.html
@@ -3862,6 +3892,16 @@ interface RuleOptions {
3862
3892
  * @see https://oxc.rs/docs/guide/usage/linter/rules/react/exhaustive-deps.html
3863
3893
  */
3864
3894
  'react/exhaustive-deps'?: DummyRule;
3895
+ /**
3896
+ * Forbid component props
3897
+ *
3898
+ * plugin: React
3899
+ * category: Restriction
3900
+ * type-aware: false
3901
+ *
3902
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/react/forbid-component-props.html
3903
+ */
3904
+ 'react/forbid-component-props'?: DummyRule;
3865
3905
  /**
3866
3906
  * Forbid dom props
3867
3907
  *
@@ -4142,6 +4182,16 @@ interface RuleOptions {
4142
4182
  * @see https://oxc.rs/docs/guide/usage/linter/rules/react/no-did-mount-set-state.html
4143
4183
  */
4144
4184
  'react/no-did-mount-set-state'?: DummyRule;
4185
+ /**
4186
+ * No did update set state
4187
+ *
4188
+ * plugin: React
4189
+ * category: Correctness
4190
+ * type-aware: false
4191
+ *
4192
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/react/no-did-update-set-state.html
4193
+ */
4194
+ 'react/no-did-update-set-state'?: DummyRule;
4145
4195
  /**
4146
4196
  * No direct mutation state
4147
4197
  *
@@ -4592,6 +4642,16 @@ interface RuleOptions {
4592
4642
  * @see https://oxc.rs/docs/guide/usage/linter/rules/typescript/explicit-function-return-type.html
4593
4643
  */
4594
4644
  'typescript/explicit-function-return-type'?: DummyRule;
4645
+ /**
4646
+ * Explicit member accessibility
4647
+ *
4648
+ * plugin: Typescript
4649
+ * category: Restriction
4650
+ * type-aware: false
4651
+ *
4652
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/typescript/explicit-member-accessibility.html
4653
+ */
4654
+ 'typescript/explicit-member-accessibility'?: DummyRule;
4595
4655
  /**
4596
4656
  * Explicit module boundary types
4597
4657
  *
@@ -6822,6 +6882,16 @@ interface RuleOptions {
6822
6882
  * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/consistent-test-filename.html
6823
6883
  */
6824
6884
  'vitest/consistent-test-filename'?: DummyRule;
6885
+ /**
6886
+ * Consistent test it
6887
+ *
6888
+ * plugin: Vitest
6889
+ * category: Style
6890
+ * type-aware: false
6891
+ *
6892
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/consistent-test-it.html
6893
+ */
6894
+ 'vitest/consistent-test-it'?: DummyRule;
6825
6895
  /**
6826
6896
  * Consistent vitest vi
6827
6897
  *
@@ -6832,6 +6902,16 @@ interface RuleOptions {
6832
6902
  * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/consistent-vitest-vi.html
6833
6903
  */
6834
6904
  'vitest/consistent-vitest-vi'?: DummyRule;
6905
+ /**
6906
+ * Expect expect
6907
+ *
6908
+ * plugin: Vitest
6909
+ * category: Correctness
6910
+ * type-aware: false
6911
+ *
6912
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/expect-expect.html
6913
+ */
6914
+ 'vitest/expect-expect'?: DummyRule;
6835
6915
  /**
6836
6916
  * Hoisted apis on top
6837
6917
  *
@@ -6842,6 +6922,66 @@ interface RuleOptions {
6842
6922
  * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/hoisted-apis-on-top.html
6843
6923
  */
6844
6924
  'vitest/hoisted-apis-on-top'?: DummyRule;
6925
+ /**
6926
+ * Max expects
6927
+ *
6928
+ * plugin: Vitest
6929
+ * category: Style
6930
+ * type-aware: false
6931
+ *
6932
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/max-expects.html
6933
+ */
6934
+ 'vitest/max-expects'?: DummyRule;
6935
+ /**
6936
+ * Max nested describe
6937
+ *
6938
+ * plugin: Vitest
6939
+ * category: Style
6940
+ * type-aware: false
6941
+ *
6942
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/max-nested-describe.html
6943
+ */
6944
+ 'vitest/max-nested-describe'?: DummyRule;
6945
+ /**
6946
+ * No alias methods
6947
+ *
6948
+ * plugin: Vitest
6949
+ * category: Style
6950
+ * type-aware: false
6951
+ *
6952
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-alias-methods.html
6953
+ */
6954
+ 'vitest/no-alias-methods'?: DummyRule;
6955
+ /**
6956
+ * No commented out tests
6957
+ *
6958
+ * plugin: Vitest
6959
+ * category: Suspicious
6960
+ * type-aware: false
6961
+ *
6962
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-commented-out-tests.html
6963
+ */
6964
+ 'vitest/no-commented-out-tests'?: DummyRule;
6965
+ /**
6966
+ * No conditional expect
6967
+ *
6968
+ * plugin: Vitest
6969
+ * category: Correctness
6970
+ * type-aware: false
6971
+ *
6972
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-conditional-expect.html
6973
+ */
6974
+ 'vitest/no-conditional-expect'?: DummyRule;
6975
+ /**
6976
+ * No conditional in test
6977
+ *
6978
+ * plugin: Vitest
6979
+ * category: Pedantic
6980
+ * type-aware: false
6981
+ *
6982
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-conditional-in-test.html
6983
+ */
6984
+ 'vitest/no-conditional-in-test'?: DummyRule;
6845
6985
  /**
6846
6986
  * No conditional tests
6847
6987
  *
@@ -6852,6 +6992,56 @@ interface RuleOptions {
6852
6992
  * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-conditional-tests.html
6853
6993
  */
6854
6994
  'vitest/no-conditional-tests'?: DummyRule;
6995
+ /**
6996
+ * No disabled tests
6997
+ *
6998
+ * plugin: Vitest
6999
+ * category: Correctness
7000
+ * type-aware: false
7001
+ *
7002
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-disabled-tests.html
7003
+ */
7004
+ 'vitest/no-disabled-tests'?: DummyRule;
7005
+ /**
7006
+ * No duplicate hooks
7007
+ *
7008
+ * plugin: Vitest
7009
+ * category: Style
7010
+ * type-aware: false
7011
+ *
7012
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-duplicate-hooks.html
7013
+ */
7014
+ 'vitest/no-duplicate-hooks'?: DummyRule;
7015
+ /**
7016
+ * No focused tests
7017
+ *
7018
+ * plugin: Vitest
7019
+ * category: Correctness
7020
+ * type-aware: false
7021
+ *
7022
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-focused-tests.html
7023
+ */
7024
+ 'vitest/no-focused-tests'?: DummyRule;
7025
+ /**
7026
+ * No hooks
7027
+ *
7028
+ * plugin: Vitest
7029
+ * category: Style
7030
+ * type-aware: false
7031
+ *
7032
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-hooks.html
7033
+ */
7034
+ 'vitest/no-hooks'?: DummyRule;
7035
+ /**
7036
+ * No identical title
7037
+ *
7038
+ * plugin: Vitest
7039
+ * category: Style
7040
+ * type-aware: false
7041
+ *
7042
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-identical-title.html
7043
+ */
7044
+ 'vitest/no-identical-title'?: DummyRule;
6855
7045
  /**
6856
7046
  * No import node test
6857
7047
  *
@@ -6872,6 +7062,36 @@ interface RuleOptions {
6872
7062
  * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-importing-vitest-globals.html
6873
7063
  */
6874
7064
  'vitest/no-importing-vitest-globals'?: DummyRule;
7065
+ /**
7066
+ * No interpolation in snapshots
7067
+ *
7068
+ * plugin: Vitest
7069
+ * category: Style
7070
+ * type-aware: false
7071
+ *
7072
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-interpolation-in-snapshots.html
7073
+ */
7074
+ 'vitest/no-interpolation-in-snapshots'?: DummyRule;
7075
+ /**
7076
+ * No large snapshots
7077
+ *
7078
+ * plugin: Vitest
7079
+ * category: Style
7080
+ * type-aware: false
7081
+ *
7082
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-large-snapshots.html
7083
+ */
7084
+ 'vitest/no-large-snapshots'?: DummyRule;
7085
+ /**
7086
+ * No mocks import
7087
+ *
7088
+ * plugin: Vitest
7089
+ * category: Style
7090
+ * type-aware: false
7091
+ *
7092
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-mocks-import.html
7093
+ */
7094
+ 'vitest/no-mocks-import'?: DummyRule;
6875
7095
  /**
6876
7096
  * Prefer called exactly once with
6877
7097
  *
@@ -6912,6 +7132,16 @@ interface RuleOptions {
6912
7132
  * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-describe-function-title.html
6913
7133
  */
6914
7134
  'vitest/prefer-describe-function-title'?: DummyRule;
7135
+ /**
7136
+ * Prefer expect assertions
7137
+ *
7138
+ * plugin: Vitest
7139
+ * category: Style
7140
+ * type-aware: false
7141
+ *
7142
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-expect-assertions.html
7143
+ */
7144
+ 'vitest/prefer-expect-assertions'?: DummyRule;
6915
7145
  /**
6916
7146
  * Prefer expect type of
6917
7147
  *
@@ -6982,6 +7212,26 @@ interface RuleOptions {
6982
7212
  * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-to-be-truthy.html
6983
7213
  */
6984
7214
  'vitest/prefer-to-be-truthy'?: DummyRule;
7215
+ /**
7216
+ * Prefer to contain
7217
+ *
7218
+ * plugin: Vitest
7219
+ * category: Style
7220
+ * type-aware: false
7221
+ *
7222
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-to-contain.html
7223
+ */
7224
+ 'vitest/prefer-to-contain'?: DummyRule;
7225
+ /**
7226
+ * Prefer todo
7227
+ *
7228
+ * plugin: Vitest
7229
+ * category: Style
7230
+ * type-aware: false
7231
+ *
7232
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-todo.html
7233
+ */
7234
+ 'vitest/prefer-todo'?: DummyRule;
6985
7235
  /**
6986
7236
  * Require awaited expect poll
6987
7237
  *
@@ -7022,6 +7272,36 @@ interface RuleOptions {
7022
7272
  * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/require-test-timeout.html
7023
7273
  */
7024
7274
  'vitest/require-test-timeout'?: DummyRule;
7275
+ /**
7276
+ * Require top level describe
7277
+ *
7278
+ * plugin: Vitest
7279
+ * category: Style
7280
+ * type-aware: false
7281
+ *
7282
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/require-top-level-describe.html
7283
+ */
7284
+ 'vitest/require-top-level-describe'?: DummyRule;
7285
+ /**
7286
+ * Valid expect
7287
+ *
7288
+ * plugin: Vitest
7289
+ * category: Correctness
7290
+ * type-aware: false
7291
+ *
7292
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/valid-expect.html
7293
+ */
7294
+ 'vitest/valid-expect'?: DummyRule;
7295
+ /**
7296
+ * Valid title
7297
+ *
7298
+ * plugin: Vitest
7299
+ * category: Correctness
7300
+ * type-aware: false
7301
+ *
7302
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vitest/valid-title.html
7303
+ */
7304
+ 'vitest/valid-title'?: DummyRule;
7025
7305
  /**
7026
7306
  * Warn todo
7027
7307
  *
@@ -7082,6 +7362,26 @@ interface RuleOptions {
7082
7362
  * @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-arrow-functions-in-watch.html
7083
7363
  */
7084
7364
  'vue/no-arrow-functions-in-watch'?: DummyRule;
7365
+ /**
7366
+ * No deprecated data object declaration
7367
+ *
7368
+ * plugin: Vue
7369
+ * category: Correctness
7370
+ * type-aware: false
7371
+ *
7372
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-deprecated-data-object-declaration.html
7373
+ */
7374
+ 'vue/no-deprecated-data-object-declaration'?: DummyRule;
7375
+ /**
7376
+ * No deprecated delete set
7377
+ *
7378
+ * plugin: Vue
7379
+ * category: Correctness
7380
+ * type-aware: false
7381
+ *
7382
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-deprecated-delete-set.html
7383
+ */
7384
+ 'vue/no-deprecated-delete-set'?: DummyRule;
7085
7385
  /**
7086
7386
  * No deprecated destroyed lifecycle
7087
7387
  *
@@ -7092,6 +7392,26 @@ interface RuleOptions {
7092
7392
  * @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-deprecated-destroyed-lifecycle.html
7093
7393
  */
7094
7394
  'vue/no-deprecated-destroyed-lifecycle'?: DummyRule;
7395
+ /**
7396
+ * No deprecated events api
7397
+ *
7398
+ * plugin: Vue
7399
+ * category: Correctness
7400
+ * type-aware: false
7401
+ *
7402
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-deprecated-events-api.html
7403
+ */
7404
+ 'vue/no-deprecated-events-api'?: DummyRule;
7405
+ /**
7406
+ * No deprecated vue config keycodes
7407
+ *
7408
+ * plugin: Vue
7409
+ * category: Correctness
7410
+ * type-aware: false
7411
+ *
7412
+ * @see https://oxc.rs/docs/guide/usage/linter/rules/vue/no-deprecated-vue-config-keycodes.html
7413
+ */
7414
+ 'vue/no-deprecated-vue-config-keycodes'?: DummyRule;
7095
7415
  /**
7096
7416
  * No export in script setup
7097
7417
  *
@@ -1,4 +1,4 @@
1
- import { n as TypedOxlintConfig } from "./types-D6IckTQt.mjs";
1
+ import { n as TypedOxlintConfig } from "./types-Dd1tbFEY.mjs";
2
2
 
3
3
  //#region src/typescript.d.ts
4
4
  declare const typescriptConfig: TypedOxlintConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2digits/oxlint-config",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "description": "Minimal Oxlint config for 2digits projects.",
5
5
  "keywords": [
6
6
  "oxlint-config"
@@ -32,19 +32,19 @@
32
32
  "devDependencies": {
33
33
  "@arethetypeswrong/core": "0.18.2",
34
34
  "@types/node": "24.12.2",
35
- "@typescript/native-preview": "7.0.0-dev.20260415.1",
35
+ "@typescript/native-preview": "7.0.0-dev.20260427.1",
36
36
  "dedent": "1.7.2",
37
- "oxlint": "1.60.0",
38
- "oxlint-tsgolint": "0.21.0",
37
+ "oxlint": "1.62.0",
38
+ "oxlint-tsgolint": "0.22.1",
39
39
  "publint": "0.3.18",
40
40
  "tsx": "4.21.0",
41
- "typescript": "6.0.2",
42
- "vite-plus": "0.1.18",
41
+ "typescript": "6.0.3",
42
+ "vite-plus": "0.1.19",
43
43
  "@2digits/tsconfig": "0.8.7"
44
44
  },
45
45
  "peerDependencies": {
46
- "oxlint": "1.60.0",
47
- "oxlint-tsgolint": "0.21.0"
46
+ "oxlint": "1.62.0",
47
+ "oxlint-tsgolint": "0.22.1"
48
48
  },
49
49
  "public": true,
50
50
  "scripts": {