adamantite 0.35.0 → 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 (38) hide show
  1. package/CHANGELOG.md +1142 -0
  2. package/README.md +35 -15
  3. package/dist/index.js +32 -45
  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/package.json +23 -21
  28. package/skills/adamantite/SKILL.md +2 -1
  29. package/presets/analyze.ts +0 -24
  30. package/presets/format.ts +0 -63
  31. package/presets/lint/core.ts +0 -481
  32. package/presets/lint/jest.ts +0 -68
  33. package/presets/lint/nextjs.ts +0 -30
  34. package/presets/lint/node.ts +0 -14
  35. package/presets/lint/react.ts +0 -105
  36. package/presets/lint/vitest.ts +0 -73
  37. package/presets/lint/vue.ts +0 -52
  38. package/presets/tsconfig.json +0 -28
@@ -0,0 +1,5 @@
1
+ import { OxlintConfig } from "oxlint";
2
+ //#region presets/lint/antislop.d.ts
3
+ declare const config: OxlintConfig;
4
+ //#endregion
5
+ export { config as default };
@@ -0,0 +1,28 @@
1
+ //#region presets/lint/antislop.ts
2
+ const config = {
3
+ jsPlugins: [{
4
+ name: "anti-slop",
5
+ specifier: new URL("antislop/plugin.mjs", import.meta.url).href
6
+ }],
7
+ rules: {
8
+ "anti-slop/no-chained-type-assertions": "error",
9
+ "anti-slop/no-conditional-empty-object-spread": "error",
10
+ "anti-slop/no-known-value-widening": "error",
11
+ "anti-slop/no-module-mocking": "error",
12
+ "anti-slop/no-object-parameters": "error",
13
+ "anti-slop/no-reflect-apply": "error",
14
+ "anti-slop/no-reflect-get": "error",
15
+ "anti-slop/no-runtime-typeof": ["error", { allowInTypeGuards: true }],
16
+ "anti-slop/no-shape-in-symbol-names": "error",
17
+ "anti-slop/no-unknown-parameters": "error",
18
+ "anti-slop/no-unknown-returns": "error",
19
+ "anti-slop/no-unknown-type-aliases": "error",
20
+ "anti-slop/no-unsafe-dictionary-type": "error",
21
+ "anti-slop/no-widen-then-assert": "error",
22
+ "anti-slop/require-safety-comment-for-type-assertion": "error",
23
+ "typescript/consistent-indexed-object-style": "off",
24
+ "unicorn/no-immediate-mutation": "off"
25
+ }
26
+ };
27
+ //#endregion
28
+ export { config as default };
@@ -1,3 +1,19 @@
1
1
  import { OxlintConfig } from "oxlint";
2
+ //#region presets/lint/core.d.ts
3
+ /**
4
+ * Canonical ignore patterns for dependencies, build output, and generated code.
5
+ *
6
+ * Oxlint does not merge `ignorePatterns` from extended configs — only the root config's patterns
7
+ * apply — so extending the core preset is not enough. Hoist them explicitly:
8
+ *
9
+ * ```ts
10
+ * export default defineConfig({
11
+ * extends: [core],
12
+ * ignorePatterns: core.ignorePatterns,
13
+ * })
14
+ * ```
15
+ */
16
+ declare const ignorePatterns: string[];
2
17
  declare const config: OxlintConfig;
3
- export { config as default };
18
+ //#endregion
19
+ export { config as default, ignorePatterns };