adamantite 0.32.2 → 0.33.0

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.
@@ -13,10 +13,12 @@ const config: OxlintConfig = {
13
13
  "jsx-a11y/aria-unsupported-elements": "error",
14
14
  "jsx-a11y/autocomplete-valid": "error",
15
15
  "jsx-a11y/click-events-have-key-events": "error",
16
+ "jsx-a11y/control-has-associated-label": "error",
16
17
  "jsx-a11y/heading-has-content": "error",
17
18
  "jsx-a11y/html-has-lang": "error",
18
19
  "jsx-a11y/iframe-has-title": "error",
19
20
  "jsx-a11y/img-redundant-alt": "error",
21
+ "jsx-a11y/interactive-supports-focus": "error",
20
22
  "jsx-a11y/label-has-associated-control": "error",
21
23
  "jsx-a11y/lang": "error",
22
24
  "jsx-a11y/media-has-caption": "error",
@@ -25,16 +27,33 @@ const config: OxlintConfig = {
25
27
  "jsx-a11y/no-aria-hidden-on-focusable": "error",
26
28
  "jsx-a11y/no-autofocus": "error",
27
29
  "jsx-a11y/no-distracting-elements": "error",
30
+ "jsx-a11y/no-interactive-element-to-noninteractive-role": "error",
31
+ "jsx-a11y/no-noninteractive-element-interactions": "error",
32
+ "jsx-a11y/no-noninteractive-element-to-interactive-role": "error",
28
33
  "jsx-a11y/no-noninteractive-tabindex": "error",
29
34
  "jsx-a11y/no-redundant-roles": "error",
35
+ "jsx-a11y/no-static-element-interactions": "error",
30
36
  "jsx-a11y/prefer-tag-over-role": "error",
31
37
  "jsx-a11y/role-has-required-aria-props": "error",
32
38
  "jsx-a11y/role-supports-aria-props": "error",
33
39
  "jsx-a11y/scope": "error",
34
40
  "jsx-a11y/tabindex-no-positive": "error",
41
+ "react-perf/jsx-no-jsx-as-prop": "error",
42
+ "react-perf/jsx-no-new-array-as-prop": "error",
43
+ "react-perf/jsx-no-new-function-as-prop": "error",
44
+ "react-perf/jsx-no-new-object-as-prop": "error",
45
+ "react/button-has-type": "error",
35
46
  "react/checked-requires-onchange-or-readonly": "error",
36
47
  "react/display-name": "off",
37
48
  "react/exhaustive-deps": "error",
49
+ "react/forward-ref-uses-ref": "error",
50
+ "react/function-component-definition": [
51
+ "error",
52
+ {
53
+ namedComponents: "function-declaration",
54
+ unnamedComponents: "arrow-function",
55
+ },
56
+ ],
38
57
  "react/hook-use-state": "error",
39
58
  "react/iframe-missing-sandbox": "error",
40
59
  "react/jsx-boolean-value": "error",
@@ -49,6 +68,7 @@ const config: OxlintConfig = {
49
68
  "react/jsx-handler-names": "error",
50
69
  "react/jsx-key": "error",
51
70
  "react/jsx-no-comment-textnodes": "error",
71
+ "react/jsx-no-constructed-context-values": "error",
52
72
  "react/jsx-no-duplicate-props": "error",
53
73
  "react/jsx-no-script-url": "error",
54
74
  "react/jsx-no-target-blank": "error",
@@ -58,6 +78,7 @@ const config: OxlintConfig = {
58
78
  "react/jsx-props-no-spread-multi": "error",
59
79
  "react/no-array-index-key": "error",
60
80
  "react/no-children-prop": "error",
81
+ "react/no-clone-element": "error",
61
82
  "react/no-danger": "error",
62
83
  "react/no-danger-with-children": "error",
63
84
  "react/no-direct-mutation-state": "error",
@@ -65,6 +86,8 @@ const config: OxlintConfig = {
65
86
  "react/no-is-mounted": "error",
66
87
  "react/no-multi-comp": "off",
67
88
  "react/no-namespace": "error",
89
+ "react/no-object-type-as-default-prop": "error",
90
+ "react/no-react-children": "error",
68
91
  "react/no-redundant-should-component-update": "error",
69
92
  "react/no-render-return-value": "error",
70
93
  "react/no-set-state": "error",
@@ -72,8 +95,11 @@ const config: OxlintConfig = {
72
95
  "react/no-unescaped-entities": "error",
73
96
  "react/no-unknown-property": "error",
74
97
  "react/no-unsafe": "error",
98
+ "react/no-unstable-nested-components": "error",
75
99
  "react/prefer-es6-class": ["error", "always"],
76
100
  "react/prefer-function-component": "error",
101
+ "react/react-compiler": "error",
102
+ "react/require-render-return": "error",
77
103
  "react/rules-of-hooks": "error",
78
104
  "react/self-closing-comp": "error",
79
105
  "react/state-in-constructor": ["error", "never"],
@@ -4,22 +4,69 @@ const config: OxlintConfig = {
4
4
  plugins: ["vitest"],
5
5
  rules: {
6
6
  "vitest/consistent-each-for": "error",
7
+ "vitest/consistent-test-it": "error",
7
8
  "vitest/hoisted-apis-on-top": "error",
9
+ "vitest/max-expects": "error",
10
+ "vitest/max-nested-describe": "error",
11
+ "vitest/no-alias-methods": "error",
12
+ "vitest/no-commented-out-tests": "error",
13
+ "vitest/no-conditional-expect": "error",
14
+ "vitest/no-conditional-in-test": "error",
8
15
  "vitest/no-conditional-tests": "error",
16
+ "vitest/no-disabled-tests": "error",
17
+ "vitest/no-duplicate-hooks": "error",
18
+ "vitest/no-focused-tests": "error",
19
+ "vitest/no-hooks": "error",
20
+ "vitest/no-identical-title": "error",
9
21
  "vitest/no-import-node-test": "error",
10
22
  "vitest/no-importing-vitest-globals": "error",
23
+ "vitest/no-interpolation-in-snapshots": "error",
24
+ "vitest/no-large-snapshots": "error",
25
+ "vitest/no-mocks-import": "error",
26
+ "vitest/no-restricted-matchers": "error",
27
+ "vitest/no-standalone-expect": "error",
28
+ "vitest/no-test-prefixes": "error",
29
+ "vitest/no-test-return-statement": "error",
11
30
  "vitest/no-unneeded-async-expect-function": "error",
31
+ "vitest/padding-around-test-blocks": "error",
12
32
  "vitest/prefer-called-exactly-once-with": "error",
13
33
  "vitest/prefer-called-once": "error",
14
34
  "vitest/prefer-called-times": "error",
35
+ "vitest/prefer-called-with": "error",
36
+ "vitest/prefer-comparison-matcher": "error",
15
37
  "vitest/prefer-describe-function-title": "error",
38
+ "vitest/prefer-each": "error",
39
+ "vitest/prefer-equality-matcher": "error",
40
+ "vitest/prefer-expect-assertions": "error",
41
+ "vitest/prefer-expect-resolves": "error",
16
42
  "vitest/prefer-expect-type-of": "error",
43
+ "vitest/prefer-hooks-in-order": "error",
44
+ "vitest/prefer-hooks-on-top": "error",
17
45
  "vitest/prefer-import-in-mock": "error",
46
+ "vitest/prefer-importing-vitest-globals": "error",
47
+ "vitest/prefer-lowercase-title": "error",
48
+ "vitest/prefer-mock-promise-shorthand": "error",
49
+ "vitest/prefer-mock-return-shorthand": "error",
50
+ "vitest/prefer-snapshot-hint": "error",
51
+ "vitest/prefer-spy-on": "error",
18
52
  "vitest/prefer-strict-boolean-matchers": "error",
53
+ "vitest/prefer-strict-equal": "error",
54
+ "vitest/prefer-to-be": "error",
19
55
  "vitest/prefer-to-be-object": "error",
56
+ "vitest/prefer-to-contain": "error",
57
+ "vitest/prefer-to-have-been-called-times": "error",
58
+ "vitest/prefer-to-have-length": "error",
59
+ "vitest/prefer-todo": "error",
20
60
  "vitest/require-awaited-expect-poll": "error",
61
+ "vitest/require-hook": "error",
21
62
  "vitest/require-local-test-context-for-concurrent-snapshots": "error",
22
63
  "vitest/require-mock-type-parameters": "error",
64
+ "vitest/require-to-throw-message": "error",
65
+ "vitest/require-top-level-describe": "error",
66
+ "vitest/valid-describe-callback": "error",
67
+ "vitest/valid-expect": "error",
68
+ "vitest/valid-expect-in-promise": "error",
69
+ "vitest/valid-title": "error",
23
70
  },
24
71
  }
25
72
 
@@ -8,17 +8,44 @@ const config: OxlintConfig = {
8
8
  "vue/define-props-destructuring": "error",
9
9
  "vue/max-props": "error",
10
10
  "vue/no-arrow-functions-in-watch": "error",
11
+ "vue/no-async-in-computed-properties": "error",
12
+ "vue/no-computed-properties-in-data": "error",
13
+ "vue/no-deprecated-data-object-declaration": "error",
14
+ "vue/no-deprecated-delete-set": "error",
11
15
  "vue/no-deprecated-destroyed-lifecycle": "error",
16
+ "vue/no-deprecated-events-api": "error",
17
+ "vue/no-deprecated-model-definition": "error",
18
+ "vue/no-deprecated-props-default-this": "error",
19
+ "vue/no-deprecated-vue-config-keycodes": "error",
20
+ "vue/no-dupe-keys": "error",
12
21
  "vue/no-export-in-script-setup": "error",
22
+ "vue/no-expose-after-await": "error",
13
23
  "vue/no-import-compiler-macros": "error",
14
24
  "vue/no-lifecycle-after-await": "error",
15
25
  "vue/no-multiple-slot-args": "error",
16
26
  "vue/no-required-prop-with-default": "error",
27
+ "vue/no-reserved-component-names": "error",
28
+ "vue/no-reserved-keys": "error",
29
+ "vue/no-reserved-props": "error",
30
+ "vue/no-shared-component-data": "error",
31
+ "vue/no-side-effects-in-computed-properties": "error",
32
+ "vue/no-this-in-before-route-enter": "error",
33
+ "vue/no-watch-after-await": "error",
17
34
  "vue/prefer-import-from-vue": "error",
18
35
  "vue/require-default-export": "error",
36
+ "vue/require-default-prop": "error",
37
+ "vue/require-direct-export": "error",
38
+ "vue/require-prop-type-constructor": "error",
39
+ "vue/require-prop-types": "error",
40
+ "vue/require-render-return": "error",
41
+ "vue/require-slots-as-functions": "error",
19
42
  "vue/require-typed-ref": "error",
43
+ "vue/return-in-computed-property": "error",
44
+ "vue/return-in-emits-validator": "error",
20
45
  "vue/valid-define-emits": "error",
46
+ "vue/valid-define-options": "error",
21
47
  "vue/valid-define-props": "error",
48
+ "vue/valid-next-tick": "error",
22
49
  },
23
50
  }
24
51