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.
- package/CHANGELOG.md +1142 -0
- package/README.md +48 -16
- package/dist/index.js +32 -51
- package/dist/presets/analyze.d.ts +5 -3
- package/dist/presets/analyze.js +22 -24
- package/dist/presets/format.d.ts +3 -1
- package/dist/presets/format.js +73 -63
- package/dist/presets/lint/antislop/license.md +27 -0
- package/dist/presets/lint/antislop/plugin.d.mts +11 -0
- package/dist/presets/lint/antislop/plugin.mjs +1629 -0
- package/dist/presets/lint/antislop.d.ts +5 -0
- package/dist/presets/lint/antislop.js +28 -0
- package/dist/presets/lint/core.d.ts +17 -1
- package/dist/presets/lint/core.js +511 -481
- package/dist/presets/lint/jest.d.ts +3 -1
- package/dist/presets/lint/jest.js +66 -68
- package/dist/presets/lint/nextjs.d.ts +3 -1
- package/dist/presets/lint/nextjs.js +28 -30
- package/dist/presets/lint/node.d.ts +3 -1
- package/dist/presets/lint/node.js +12 -14
- package/dist/presets/lint/react.d.ts +3 -1
- package/dist/presets/lint/react.js +101 -105
- package/dist/presets/lint/vitest.d.ts +3 -1
- package/dist/presets/lint/vitest.js +71 -73
- package/dist/presets/lint/vue.d.ts +3 -1
- package/dist/presets/lint/vue.js +50 -52
- package/dist/presets/tsconfig.json +4 -0
- package/package.json +25 -23
- package/skills/adamantite/SKILL.md +8 -2
- package/presets/analyze.ts +0 -24
- package/presets/format.ts +0 -63
- package/presets/lint/core.ts +0 -481
- package/presets/lint/jest.ts +0 -68
- package/presets/lint/nextjs.ts +0 -30
- package/presets/lint/node.ts +0 -14
- package/presets/lint/react.ts +0 -105
- package/presets/lint/vitest.ts +0 -73
- package/presets/lint/vue.ts +0 -52
- package/presets/tsconfig.json +0 -24
|
@@ -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
|
-
|
|
18
|
+
//#endregion
|
|
19
|
+
export { config as default, ignorePatterns };
|