@antelopejs/tooling-configs 0.0.2 → 0.0.3

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/eslint.mjs CHANGED
@@ -16,6 +16,7 @@ const ANTELOPE_NUXT_RULES = {
16
16
  "vue/require-default-prop": "off",
17
17
  "@typescript-eslint/no-explicit-any": "off",
18
18
  "@typescript-eslint/no-empty-object-type": "off",
19
+ "@typescript-eslint/unified-signatures": "off",
19
20
  "@typescript-eslint/no-unused-vars": ["error", {
20
21
  argsIgnorePattern: "^_",
21
22
  varsIgnorePattern: "^_",
package/dist/knip.mjs CHANGED
@@ -12,17 +12,26 @@ const DEFAULT_IGNORE = [
12
12
  ".antelope/**"
13
13
  ];
14
14
  /**
15
- * Every layer's CI runs `cd nuxt-layer && pnpm typecheck`. Knip parses the
16
- * workflow, sees a binary it cannot resolve, and reports it: the script lives in
17
- * the layer's own package.json, outside the analysed project.
15
+ * `typecheck` is a script in the Nuxt layer's own manifest, outside the analysed
16
+ * project, and every layer's CI runs it.
17
+ *
18
+ * The AntelopeJS CLIs are deliberately absent: a repository that invokes `ajs`
19
+ * or `acms` declares the package providing it, so Knip resolves them and an
20
+ * ignore would only hide a missing dependency.
18
21
  */
19
22
  const DEFAULT_IGNORE_BINARIES = ["typecheck"];
23
+ /**
24
+ * The AntelopeJS runtime loads modules by name, from the antelope config rather
25
+ * than through an import, so nothing in the source points at them and Knip reads
26
+ * every one as dead weight.
27
+ */
28
+ const DEFAULT_IGNORE_DEPENDENCIES = ["@antelopejs/.*"];
20
29
  function antelopeKnipConfig(options = {}) {
21
30
  return {
22
31
  entry: [...DEFAULT_ENTRY, ...options.entry ?? []],
23
32
  project: [...DEFAULT_PROJECT, ...options.project ?? []],
24
33
  ignore: [...DEFAULT_IGNORE, ...options.ignore ?? []],
25
- ignoreDependencies: options.ignoreDependencies ?? [],
34
+ ignoreDependencies: [...DEFAULT_IGNORE_DEPENDENCIES, ...options.ignoreDependencies ?? []],
26
35
  ignoreBinaries: [...DEFAULT_IGNORE_BINARIES, ...options.ignoreBinaries ?? []]
27
36
  };
28
37
  }
@@ -119,6 +119,11 @@ declare function antelopePreset(options?: AntelopePresetOptions): {
119
119
  varsIgnorePattern: "^_";
120
120
  caughtErrorsIgnorePattern: "^_";
121
121
  }];
122
+ "eslint/eqeqeq": ["error", "always", {
123
+ null: "ignore";
124
+ }];
125
+ "eslint/radix": "error";
126
+ "eslint/prefer-regex-literals": "error";
122
127
  "import/no-cycle": Severity;
123
128
  "import/no-self-import": "error";
124
129
  "import/no-duplicates": "error";
@@ -130,6 +135,7 @@ declare function antelopePreset(options?: AntelopePresetOptions): {
130
135
  "typescript/unbound-method": "warn";
131
136
  "typescript/no-meaningless-void-operator": "warn";
132
137
  "typescript/no-misused-spread": "warn";
138
+ "typescript/no-base-to-string": "warn";
133
139
  "typescript/no-redundant-type-constituents": "warn";
134
140
  "typescript/restrict-template-expressions": "warn";
135
141
  "typescript/require-array-sort-compare": "warn";
package/dist/oxc/lint.mjs CHANGED
@@ -65,6 +65,13 @@ function basePreset(cycleSeverity) {
65
65
  varsIgnorePattern: "^_",
66
66
  caughtErrorsIgnorePattern: "^_"
67
67
  }],
68
+ "eslint/eqeqeq": [
69
+ "error",
70
+ "always",
71
+ { null: "ignore" }
72
+ ],
73
+ "eslint/radix": "error",
74
+ "eslint/prefer-regex-literals": "error",
68
75
  "import/no-cycle": cycleSeverity,
69
76
  "import/no-self-import": "error",
70
77
  "import/no-duplicates": "error"
@@ -118,6 +125,7 @@ function typeAwarePreset() {
118
125
  "typescript/unbound-method": "warn",
119
126
  "typescript/no-meaningless-void-operator": "warn",
120
127
  "typescript/no-misused-spread": "warn",
128
+ "typescript/no-base-to-string": "warn",
121
129
  "typescript/no-redundant-type-constituents": "warn",
122
130
  "typescript/restrict-template-expressions": "warn",
123
131
  "typescript/require-array-sort-compare": "warn"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/tooling-configs",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Shared tooling presets for AntelopeJS projects: oxlint (incl. vendored anti-slop) and Knip",
5
5
  "keywords": [
6
6
  "antelopejs",
@@ -26,7 +26,8 @@
26
26
  "./eslint": "./dist/eslint.mjs"
27
27
  },
28
28
  "publishConfig": {
29
- "access": "public"
29
+ "access": "public",
30
+ "provenance": true
30
31
  },
31
32
  "scripts": {
32
33
  "build": "tsdown",