adamantite 0.34.4 → 0.36.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +1142 -0
  2. package/README.md +48 -16
  3. package/dist/index.js +32 -51
  4. package/dist/presets/analyze.d.ts +5 -3
  5. package/dist/presets/analyze.js +22 -24
  6. package/dist/presets/format.d.ts +3 -1
  7. package/dist/presets/format.js +73 -63
  8. package/dist/presets/lint/antislop/license.md +27 -0
  9. package/dist/presets/lint/antislop/plugin.d.mts +11 -0
  10. package/dist/presets/lint/antislop/plugin.mjs +1629 -0
  11. package/dist/presets/lint/antislop.d.ts +5 -0
  12. package/dist/presets/lint/antislop.js +28 -0
  13. package/dist/presets/lint/core.d.ts +17 -1
  14. package/dist/presets/lint/core.js +511 -481
  15. package/dist/presets/lint/jest.d.ts +3 -1
  16. package/dist/presets/lint/jest.js +66 -68
  17. package/dist/presets/lint/nextjs.d.ts +3 -1
  18. package/dist/presets/lint/nextjs.js +28 -30
  19. package/dist/presets/lint/node.d.ts +3 -1
  20. package/dist/presets/lint/node.js +12 -14
  21. package/dist/presets/lint/react.d.ts +3 -1
  22. package/dist/presets/lint/react.js +101 -105
  23. package/dist/presets/lint/vitest.d.ts +3 -1
  24. package/dist/presets/lint/vitest.js +71 -73
  25. package/dist/presets/lint/vue.d.ts +3 -1
  26. package/dist/presets/lint/vue.js +50 -52
  27. package/dist/presets/tsconfig.json +4 -0
  28. package/package.json +25 -23
  29. package/skills/adamantite/SKILL.md +8 -2
  30. package/presets/analyze.ts +0 -24
  31. package/presets/format.ts +0 -63
  32. package/presets/lint/core.ts +0 -481
  33. package/presets/lint/jest.ts +0 -68
  34. package/presets/lint/nextjs.ts +0 -30
  35. package/presets/lint/node.ts +0 -14
  36. package/presets/lint/react.ts +0 -105
  37. package/presets/lint/vitest.ts +0 -73
  38. package/presets/lint/vue.ts +0 -52
  39. package/presets/tsconfig.json +0 -24
@@ -1,3 +1,5 @@
1
1
  import { OxlintConfig } from "oxlint";
2
+ //#region presets/lint/jest.d.ts
2
3
  declare const config: OxlintConfig;
3
- export { config as default };
4
+ //#endregion
5
+ export { config as default };
@@ -1,69 +1,67 @@
1
- // presets/lint/jest.ts
2
- var config = {
3
- plugins: ["jest"],
4
- rules: {
5
- "jest/consistent-test-it": "error",
6
- "jest/expect-expect": "error",
7
- "jest/max-expects": "error",
8
- "jest/max-nested-describe": "error",
9
- "jest/no-alias-methods": "error",
10
- "jest/no-commented-out-tests": "error",
11
- "jest/no-conditional-expect": "error",
12
- "jest/no-conditional-in-test": "error",
13
- "jest/no-confusing-set-timeout": "error",
14
- "jest/no-deprecated-functions": "error",
15
- "jest/no-disabled-tests": "error",
16
- "jest/no-done-callback": "error",
17
- "jest/no-duplicate-hooks": "error",
18
- "jest/no-export": "error",
19
- "jest/no-focused-tests": "error",
20
- "jest/no-hooks": "error",
21
- "jest/no-identical-title": "error",
22
- "jest/no-interpolation-in-snapshots": "error",
23
- "jest/no-jasmine-globals": "error",
24
- "jest/no-large-snapshots": "error",
25
- "jest/no-mocks-import": "error",
26
- "jest/no-restricted-jest-methods": "error",
27
- "jest/no-restricted-matchers": "error",
28
- "jest/no-standalone-expect": "error",
29
- "jest/no-test-prefixes": "error",
30
- "jest/no-test-return-statement": "error",
31
- "jest/no-unneeded-async-expect-function": "error",
32
- "jest/no-untyped-mock-factory": "error",
33
- "jest/padding-around-after-all-blocks": "error",
34
- "jest/padding-around-test-blocks": "error",
35
- "jest/prefer-called-with": "error",
36
- "jest/prefer-comparison-matcher": "error",
37
- "jest/prefer-each": "error",
38
- "jest/prefer-ending-with-an-expect": "error",
39
- "jest/prefer-equality-matcher": "error",
40
- "jest/prefer-expect-assertions": "error",
41
- "jest/prefer-expect-resolves": "error",
42
- "jest/prefer-hooks-in-order": "error",
43
- "jest/prefer-hooks-on-top": "error",
44
- "jest/prefer-jest-mocked": "error",
45
- "jest/prefer-lowercase-title": "error",
46
- "jest/prefer-mock-promise-shorthand": "error",
47
- "jest/prefer-mock-return-shorthand": "error",
48
- "jest/prefer-snapshot-hint": "error",
49
- "jest/prefer-spy-on": "error",
50
- "jest/prefer-strict-equal": "error",
51
- "jest/prefer-to-be": "error",
52
- "jest/prefer-to-contain": "error",
53
- "jest/prefer-to-have-been-called": "error",
54
- "jest/prefer-to-have-been-called-times": "error",
55
- "jest/prefer-to-have-length": "error",
56
- "jest/prefer-todo": "error",
57
- "jest/require-hook": "error",
58
- "jest/require-to-throw-message": "error",
59
- "jest/require-top-level-describe": "error",
60
- "jest/valid-describe-callback": "error",
61
- "jest/valid-expect": "error",
62
- "jest/valid-expect-in-promise": "error",
63
- "jest/valid-title": "error"
64
- }
65
- };
66
- var jest_default = config;
67
- export {
68
- jest_default as default
1
+ //#region presets/lint/jest.ts
2
+ const config = {
3
+ plugins: ["jest"],
4
+ rules: {
5
+ "jest/consistent-test-it": "error",
6
+ "jest/expect-expect": "error",
7
+ "jest/max-expects": "error",
8
+ "jest/max-nested-describe": "error",
9
+ "jest/no-alias-methods": "error",
10
+ "jest/no-commented-out-tests": "error",
11
+ "jest/no-conditional-expect": "error",
12
+ "jest/no-conditional-in-test": "error",
13
+ "jest/no-confusing-set-timeout": "error",
14
+ "jest/no-deprecated-functions": "error",
15
+ "jest/no-disabled-tests": "error",
16
+ "jest/no-done-callback": "error",
17
+ "jest/no-duplicate-hooks": "error",
18
+ "jest/no-export": "error",
19
+ "jest/no-focused-tests": "error",
20
+ "jest/no-hooks": "error",
21
+ "jest/no-identical-title": "error",
22
+ "jest/no-interpolation-in-snapshots": "error",
23
+ "jest/no-jasmine-globals": "error",
24
+ "jest/no-large-snapshots": "error",
25
+ "jest/no-mocks-import": "error",
26
+ "jest/no-restricted-jest-methods": "error",
27
+ "jest/no-restricted-matchers": "error",
28
+ "jest/no-standalone-expect": "error",
29
+ "jest/no-test-prefixes": "error",
30
+ "jest/no-test-return-statement": "error",
31
+ "jest/no-unneeded-async-expect-function": "error",
32
+ "jest/no-untyped-mock-factory": "error",
33
+ "jest/padding-around-after-all-blocks": "error",
34
+ "jest/padding-around-test-blocks": "error",
35
+ "jest/prefer-called-with": "error",
36
+ "jest/prefer-comparison-matcher": "error",
37
+ "jest/prefer-each": "error",
38
+ "jest/prefer-ending-with-an-expect": "error",
39
+ "jest/prefer-equality-matcher": "error",
40
+ "jest/prefer-expect-assertions": "error",
41
+ "jest/prefer-expect-resolves": "error",
42
+ "jest/prefer-hooks-in-order": "error",
43
+ "jest/prefer-hooks-on-top": "error",
44
+ "jest/prefer-jest-mocked": "error",
45
+ "jest/prefer-lowercase-title": "error",
46
+ "jest/prefer-mock-promise-shorthand": "error",
47
+ "jest/prefer-mock-return-shorthand": "error",
48
+ "jest/prefer-snapshot-hint": "error",
49
+ "jest/prefer-spy-on": "error",
50
+ "jest/prefer-strict-equal": "error",
51
+ "jest/prefer-to-be": "error",
52
+ "jest/prefer-to-contain": "error",
53
+ "jest/prefer-to-have-been-called": "error",
54
+ "jest/prefer-to-have-been-called-times": "error",
55
+ "jest/prefer-to-have-length": "error",
56
+ "jest/prefer-todo": "error",
57
+ "jest/require-hook": "error",
58
+ "jest/require-to-throw-message": "error",
59
+ "jest/require-top-level-describe": "error",
60
+ "jest/valid-describe-callback": "error",
61
+ "jest/valid-expect": "error",
62
+ "jest/valid-expect-in-promise": "error",
63
+ "jest/valid-title": "error"
64
+ }
69
65
  };
66
+ //#endregion
67
+ export { config as default };
@@ -1,3 +1,5 @@
1
1
  import { OxlintConfig } from "oxlint";
2
+ //#region presets/lint/nextjs.d.ts
2
3
  declare const config: OxlintConfig;
3
- export { config as default };
4
+ //#endregion
5
+ export { config as default };
@@ -1,31 +1,29 @@
1
- // presets/lint/nextjs.ts
2
- var config = {
3
- plugins: ["nextjs"],
4
- rules: {
5
- "nextjs/google-font-display": "error",
6
- "nextjs/google-font-preconnect": "error",
7
- "nextjs/inline-script-id": "error",
8
- "nextjs/next-script-for-ga": "error",
9
- "nextjs/no-assign-module-variable": "error",
10
- "nextjs/no-async-client-component": "error",
11
- "nextjs/no-before-interactive-script-outside-document": "error",
12
- "nextjs/no-css-tags": "error",
13
- "nextjs/no-document-import-in-page": "error",
14
- "nextjs/no-duplicate-head": "error",
15
- "nextjs/no-head-element": "error",
16
- "nextjs/no-head-import-in-document": "error",
17
- "nextjs/no-html-link-for-pages": "error",
18
- "nextjs/no-img-element": "error",
19
- "nextjs/no-page-custom-font": "error",
20
- "nextjs/no-script-component-in-head": "error",
21
- "nextjs/no-styled-jsx-in-document": "error",
22
- "nextjs/no-sync-scripts": "error",
23
- "nextjs/no-title-in-document-head": "error",
24
- "nextjs/no-typos": "error",
25
- "nextjs/no-unwanted-polyfillio": "error"
26
- }
27
- };
28
- var nextjs_default = config;
29
- export {
30
- nextjs_default as default
1
+ //#region presets/lint/nextjs.ts
2
+ const config = {
3
+ plugins: ["nextjs"],
4
+ rules: {
5
+ "nextjs/google-font-display": "error",
6
+ "nextjs/google-font-preconnect": "error",
7
+ "nextjs/inline-script-id": "error",
8
+ "nextjs/next-script-for-ga": "error",
9
+ "nextjs/no-assign-module-variable": "error",
10
+ "nextjs/no-async-client-component": "error",
11
+ "nextjs/no-before-interactive-script-outside-document": "error",
12
+ "nextjs/no-css-tags": "error",
13
+ "nextjs/no-document-import-in-page": "error",
14
+ "nextjs/no-duplicate-head": "error",
15
+ "nextjs/no-head-element": "error",
16
+ "nextjs/no-head-import-in-document": "error",
17
+ "nextjs/no-html-link-for-pages": "error",
18
+ "nextjs/no-img-element": "error",
19
+ "nextjs/no-page-custom-font": "error",
20
+ "nextjs/no-script-component-in-head": "error",
21
+ "nextjs/no-styled-jsx-in-document": "error",
22
+ "nextjs/no-sync-scripts": "error",
23
+ "nextjs/no-title-in-document-head": "error",
24
+ "nextjs/no-typos": "error",
25
+ "nextjs/no-unwanted-polyfillio": "error"
26
+ }
31
27
  };
28
+ //#endregion
29
+ export { config as default };
@@ -1,3 +1,5 @@
1
1
  import { OxlintConfig } from "oxlint";
2
+ //#region presets/lint/node.d.ts
2
3
  declare const config: OxlintConfig;
3
- export { config as default };
4
+ //#endregion
5
+ export { config as default };
@@ -1,15 +1,13 @@
1
- // presets/lint/node.ts
2
- var config = {
3
- plugins: ["node"],
4
- rules: {
5
- "node/handle-callback-err": "error",
6
- "node/no-exports-assign": "error",
7
- "node/no-mixed-requires": "error",
8
- "node/no-new-require": "error",
9
- "node/no-path-concat": "error"
10
- }
11
- };
12
- var node_default = config;
13
- export {
14
- node_default as default
1
+ //#region presets/lint/node.ts
2
+ const config = {
3
+ plugins: ["node"],
4
+ rules: {
5
+ "node/handle-callback-err": "error",
6
+ "node/no-exports-assign": "error",
7
+ "node/no-mixed-requires": "error",
8
+ "node/no-new-require": "error",
9
+ "node/no-path-concat": "error"
10
+ }
15
11
  };
12
+ //#endregion
13
+ export { config as default };
@@ -1,3 +1,5 @@
1
1
  import { OxlintConfig } from "oxlint";
2
+ //#region presets/lint/react.d.ts
2
3
  declare const config: OxlintConfig;
3
- export { config as default };
4
+ //#endregion
5
+ export { config as default };
@@ -1,106 +1,102 @@
1
- // presets/lint/react.ts
2
- var config = {
3
- plugins: ["react", "react-perf", "jsx-a11y"],
4
- rules: {
5
- "jsx-a11y/alt-text": "error",
6
- "jsx-a11y/anchor-ambiguous-text": "error",
7
- "jsx-a11y/anchor-has-content": "error",
8
- "jsx-a11y/anchor-is-valid": "error",
9
- "jsx-a11y/aria-activedescendant-has-tabindex": "error",
10
- "jsx-a11y/aria-props": "error",
11
- "jsx-a11y/aria-role": "error",
12
- "jsx-a11y/aria-unsupported-elements": "error",
13
- "jsx-a11y/autocomplete-valid": "error",
14
- "jsx-a11y/click-events-have-key-events": "error",
15
- "jsx-a11y/control-has-associated-label": "error",
16
- "jsx-a11y/heading-has-content": "error",
17
- "jsx-a11y/html-has-lang": "error",
18
- "jsx-a11y/iframe-has-title": "error",
19
- "jsx-a11y/img-redundant-alt": "error",
20
- "jsx-a11y/interactive-supports-focus": "error",
21
- "jsx-a11y/label-has-associated-control": "error",
22
- "jsx-a11y/lang": "error",
23
- "jsx-a11y/media-has-caption": "error",
24
- "jsx-a11y/mouse-events-have-key-events": "error",
25
- "jsx-a11y/no-access-key": "error",
26
- "jsx-a11y/no-aria-hidden-on-focusable": "error",
27
- "jsx-a11y/no-autofocus": "error",
28
- "jsx-a11y/no-distracting-elements": "error",
29
- "jsx-a11y/no-interactive-element-to-noninteractive-role": "error",
30
- "jsx-a11y/no-noninteractive-element-interactions": "error",
31
- "jsx-a11y/no-noninteractive-element-to-interactive-role": "error",
32
- "jsx-a11y/no-noninteractive-tabindex": "error",
33
- "jsx-a11y/no-redundant-roles": "error",
34
- "jsx-a11y/no-static-element-interactions": "error",
35
- "jsx-a11y/prefer-tag-over-role": "error",
36
- "jsx-a11y/role-has-required-aria-props": "error",
37
- "jsx-a11y/role-supports-aria-props": "error",
38
- "jsx-a11y/scope": "error",
39
- "jsx-a11y/tabindex-no-positive": "error",
40
- "react/button-has-type": "error",
41
- "react/checked-requires-onchange-or-readonly": "error",
42
- "react/display-name": "off",
43
- "react/exhaustive-deps": "error",
44
- "react/forward-ref-uses-ref": "error",
45
- "react/function-component-definition": [
46
- "error",
47
- {
48
- namedComponents: "function-declaration",
49
- unnamedComponents: "arrow-function"
50
- }
51
- ],
52
- "react/hook-use-state": "error",
53
- "react/iframe-missing-sandbox": "error",
54
- "react/jsx-boolean-value": "error",
55
- "react/jsx-curly-brace-presence": [
56
- "error",
57
- {
58
- children: "never",
59
- props: "never"
60
- }
61
- ],
62
- "react/jsx-fragments": ["error", "syntax"],
63
- "react/jsx-key": "error",
64
- "react/jsx-no-comment-textnodes": "error",
65
- "react/jsx-no-constructed-context-values": "error",
66
- "react/jsx-no-duplicate-props": "error",
67
- "react/jsx-no-script-url": "error",
68
- "react/jsx-no-target-blank": "error",
69
- "react/jsx-no-undef": "error",
70
- "react/jsx-no-useless-fragment": "error",
71
- "react/jsx-pascal-case": "error",
72
- "react/jsx-props-no-spread-multi": "error",
73
- "react/no-array-index-key": "error",
74
- "react/no-children-prop": "error",
75
- "react/no-clone-element": "error",
76
- "react/no-danger": "error",
77
- "react/no-danger-with-children": "error",
78
- "react/no-direct-mutation-state": "error",
79
- "react/no-find-dom-node": "error",
80
- "react/no-is-mounted": "error",
81
- "react/no-multi-comp": "off",
82
- "react/no-namespace": "error",
83
- "react/no-object-type-as-default-prop": "error",
84
- "react/no-react-children": "error",
85
- "react/no-redundant-should-component-update": "error",
86
- "react/no-render-return-value": "error",
87
- "react/no-string-refs": "error",
88
- "react/no-unescaped-entities": "error",
89
- "react/no-unknown-property": "error",
90
- "react/no-unsafe": "error",
91
- "react/no-unstable-nested-components": "error",
92
- "react/prefer-es6-class": ["error", "always"],
93
- "react/prefer-function-component": "error",
94
- "react/react-compiler": "error",
95
- "react/require-render-return": "error",
96
- "react/rules-of-hooks": "error",
97
- "react/self-closing-comp": "error",
98
- "react/state-in-constructor": ["error", "never"],
99
- "react/style-prop-object": "error",
100
- "react/void-dom-elements-no-children": "error"
101
- }
102
- };
103
- var react_default = config;
104
- export {
105
- react_default as default
1
+ //#region presets/lint/react.ts
2
+ const config = {
3
+ plugins: [
4
+ "react",
5
+ "react-perf",
6
+ "jsx-a11y"
7
+ ],
8
+ rules: {
9
+ "jsx-a11y/alt-text": "error",
10
+ "jsx-a11y/anchor-ambiguous-text": "error",
11
+ "jsx-a11y/anchor-has-content": "error",
12
+ "jsx-a11y/anchor-is-valid": "error",
13
+ "jsx-a11y/aria-activedescendant-has-tabindex": "error",
14
+ "jsx-a11y/aria-props": "error",
15
+ "jsx-a11y/aria-role": "error",
16
+ "jsx-a11y/aria-unsupported-elements": "error",
17
+ "jsx-a11y/autocomplete-valid": "error",
18
+ "jsx-a11y/click-events-have-key-events": "error",
19
+ "jsx-a11y/control-has-associated-label": "error",
20
+ "jsx-a11y/heading-has-content": "error",
21
+ "jsx-a11y/html-has-lang": "error",
22
+ "jsx-a11y/iframe-has-title": "error",
23
+ "jsx-a11y/img-redundant-alt": "error",
24
+ "jsx-a11y/interactive-supports-focus": "error",
25
+ "jsx-a11y/label-has-associated-control": "error",
26
+ "jsx-a11y/lang": "error",
27
+ "jsx-a11y/media-has-caption": "error",
28
+ "jsx-a11y/mouse-events-have-key-events": "error",
29
+ "jsx-a11y/no-access-key": "error",
30
+ "jsx-a11y/no-aria-hidden-on-focusable": "error",
31
+ "jsx-a11y/no-autofocus": "error",
32
+ "jsx-a11y/no-distracting-elements": "error",
33
+ "jsx-a11y/no-interactive-element-to-noninteractive-role": "error",
34
+ "jsx-a11y/no-noninteractive-element-interactions": "error",
35
+ "jsx-a11y/no-noninteractive-element-to-interactive-role": "error",
36
+ "jsx-a11y/no-noninteractive-tabindex": "error",
37
+ "jsx-a11y/no-redundant-roles": "error",
38
+ "jsx-a11y/no-static-element-interactions": "error",
39
+ "jsx-a11y/prefer-tag-over-role": "error",
40
+ "jsx-a11y/role-has-required-aria-props": "error",
41
+ "jsx-a11y/role-supports-aria-props": "error",
42
+ "jsx-a11y/scope": "error",
43
+ "jsx-a11y/tabindex-no-positive": "error",
44
+ "react/button-has-type": "error",
45
+ "react/checked-requires-onchange-or-readonly": "error",
46
+ "react/display-name": "off",
47
+ "react/exhaustive-deps": "error",
48
+ "react/forward-ref-uses-ref": "error",
49
+ "react/function-component-definition": ["error", {
50
+ namedComponents: "function-declaration",
51
+ unnamedComponents: "arrow-function"
52
+ }],
53
+ "react/hook-use-state": "error",
54
+ "react/iframe-missing-sandbox": "error",
55
+ "react/jsx-boolean-value": "error",
56
+ "react/jsx-curly-brace-presence": ["error", {
57
+ children: "never",
58
+ props: "never"
59
+ }],
60
+ "react/jsx-fragments": ["error", "syntax"],
61
+ "react/jsx-key": "error",
62
+ "react/jsx-no-comment-textnodes": "error",
63
+ "react/jsx-no-constructed-context-values": "error",
64
+ "react/jsx-no-duplicate-props": "error",
65
+ "react/jsx-no-script-url": "error",
66
+ "react/jsx-no-target-blank": "error",
67
+ "react/jsx-no-undef": "error",
68
+ "react/jsx-no-useless-fragment": "error",
69
+ "react/jsx-pascal-case": "error",
70
+ "react/jsx-props-no-spread-multi": "error",
71
+ "react/no-array-index-key": "error",
72
+ "react/no-children-prop": "error",
73
+ "react/no-clone-element": "error",
74
+ "react/no-danger": "error",
75
+ "react/no-danger-with-children": "error",
76
+ "react/no-direct-mutation-state": "error",
77
+ "react/no-find-dom-node": "error",
78
+ "react/no-is-mounted": "error",
79
+ "react/no-multi-comp": "off",
80
+ "react/no-namespace": "error",
81
+ "react/no-object-type-as-default-prop": "error",
82
+ "react/no-react-children": "error",
83
+ "react/no-redundant-should-component-update": "error",
84
+ "react/no-render-return-value": "error",
85
+ "react/no-string-refs": "error",
86
+ "react/no-unescaped-entities": "error",
87
+ "react/no-unknown-property": "error",
88
+ "react/no-unsafe": "error",
89
+ "react/no-unstable-nested-components": "error",
90
+ "react/prefer-es6-class": ["error", "always"],
91
+ "react/prefer-function-component": "error",
92
+ "react/react-compiler": "error",
93
+ "react/require-render-return": "error",
94
+ "react/rules-of-hooks": "error",
95
+ "react/self-closing-comp": "error",
96
+ "react/state-in-constructor": ["error", "never"],
97
+ "react/style-prop-object": "error",
98
+ "react/void-dom-elements-no-children": "error"
99
+ }
106
100
  };
101
+ //#endregion
102
+ export { config as default };
@@ -1,3 +1,5 @@
1
1
  import { OxlintConfig } from "oxlint";
2
+ //#region presets/lint/vitest.d.ts
2
3
  declare const config: OxlintConfig;
3
- export { config as default };
4
+ //#endregion
5
+ export { config as default };