adamantite 0.24.0 → 0.25.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/README.md CHANGED
@@ -190,7 +190,6 @@ Framework-specific presets are available for:
190
190
  - **Next.js** ([nextjs.json](./presets/lint/nextjs.json)) - Next.js-specific rules
191
191
  - **Vue** ([vue.json](./presets/lint/vue.json)) - Vue.js rules
192
192
  - **Node.js** ([node.json](./presets/lint/node.json)) - Node.js-specific rules
193
- - **Tailwind** ([tailwind.json](./presets/lint/tailwind.json)) - Tailwind CSS rules via [eslint-plugin-better-tailwindcss](https://www.npmjs.com/package/eslint-plugin-better-tailwindcss)
194
193
  - **Jest** ([jest.json](./presets/lint/jest.json)) - Jest testing rules
195
194
  - **Vitest** ([vitest.json](./presets/lint/vitest.json)) - Vitest testing rules
196
195
 
package/dist/index.js CHANGED
@@ -150,7 +150,7 @@ var knip = {
150
150
  yield* fromPromise2(writeFile(exists.path, JSON.stringify(mergedConfig, null, 2)), (error) => Fault2.wrap(error).withTag("FAILED_TO_WRITE_FILE").withDescription("Failed to write knip configuration", "We're unable to write the knip configuration to the current directory.").withContext({ path: exists.path }));
151
151
  return ok2();
152
152
  }),
153
- version: "5.80.0"
153
+ version: "5.80.1"
154
154
  };
155
155
 
156
156
  // src/commands/analyze.ts
@@ -200,7 +200,7 @@ import { Fault as Fault5 } from "faultier";
200
200
  import { ok as ok5, safeTry as safeTry5 } from "neverthrow";
201
201
  import { dlxCommand as dlxCommand2 } from "nypm";
202
202
 
203
- // src/helpers/packages/oxlint/index.ts
203
+ // src/helpers/packages/oxlint.ts
204
204
  import { readFile as readFile3, writeFile as writeFile2 } from "node:fs/promises";
205
205
  import { join as join3 } from "node:path";
206
206
  import { Fault as Fault4 } from "faultier";
@@ -251,7 +251,7 @@ var oxlint = {
251
251
  yield* fromPromise3(writeFile2(exists.path, JSON.stringify(mergedConfig, null, 2)), (error) => Fault4.wrap(error).withTag("FAILED_TO_WRITE_FILE").withDescription("Failed to write oxlint configuration", "We're unable to write the oxlint configuration to the current directory.").withContext({ path: exists.path }));
252
252
  return ok4();
253
253
  }),
254
- version: "1.37.0"
254
+ version: "1.38.0"
255
255
  };
256
256
  var tsgolint = {
257
257
  name: "oxlint-tsgolint",
@@ -357,6 +357,7 @@ import { Fault as Fault7 } from "faultier";
357
357
  import { err as err4, fromPromise as fromPromise4, ok as ok7, safeTry as safeTry7 } from "neverthrow";
358
358
  // presets/format.json
359
359
  var format_default = {
360
+ $schema: "../node_modules/oxfmt/configuration_schema.json",
360
361
  arrowParens: "always",
361
362
  bracketSameLine: false,
362
363
  bracketSpacing: true,
@@ -381,6 +382,12 @@ var format_default = {
381
382
  partitionByComment: true,
382
383
  sortSideEffects: false
383
384
  },
385
+ experimentalTailwindcss: {
386
+ attributes: ["className", "class"],
387
+ functions: ["clsx", "cn", "cva", "tw", "twMerge"],
388
+ preserveDuplicates: false,
389
+ preserveWhitespace: false
390
+ },
384
391
  insertFinalNewline: true,
385
392
  jsxSingleQuote: false,
386
393
  objectWrap: "preserve",
@@ -397,8 +404,8 @@ var format_default = {
397
404
  // src/helpers/packages/oxfmt.ts
398
405
  var oxfmt = {
399
406
  config: {
400
- $schema: "./node_modules/oxfmt/configuration_schema.json",
401
- ...format_default
407
+ ...format_default,
408
+ $schema: "./node_modules/oxfmt/configuration_schema.json"
402
409
  },
403
410
  create: () => fromPromise4(writeFile3(join4(process.cwd(), ".oxfmtrc.jsonc"), JSON.stringify(oxfmt.config, null, 2)), (error) => Fault7.wrap(error).withTag("FAILED_TO_WRITE_FILE").withDescription("Failed to write oxfmt configuration", "We're unable to write the oxfmt configuration to the current directory.")),
404
411
  exists: async () => {
@@ -426,7 +433,7 @@ var oxfmt = {
426
433
  yield* fromPromise4(writeFile3(exists.path, JSON.stringify(mergedConfig, null, 2)), (error) => Fault7.wrap(error).withTag("FAILED_TO_WRITE_FILE").withDescription("Failed to write oxfmt configuration", "We're unable to write the oxfmt configuration to the current directory.").withContext({ path: exists.path }));
427
434
  return ok7();
428
435
  }),
429
- version: "0.22.0"
436
+ version: "0.23.0"
430
437
  };
431
438
 
432
439
  // src/commands/format.ts
@@ -711,15 +718,6 @@ var vscode = {
711
718
  })
712
719
  };
713
720
 
714
- // src/helpers/packages/oxlint/plugins.ts
715
- var jsPlugins = {
716
- tailwind: {
717
- name: "eslint-plugin-better-tailwindcss",
718
- version: "3.8.0"
719
- }
720
- };
721
- var getPluginDependencies = (presets) => presets.filter((preset) => (preset in jsPlugins)).map((preset) => jsPlugins[preset]);
722
-
723
721
  // src/helpers/packages/sherif.ts
724
722
  var sherif = {
725
723
  name: "sherif",
@@ -747,7 +745,7 @@ var typescript = {
747
745
  yield* fromPromise7(writeFile6(join7(process.cwd(), "tsconfig.json"), JSON.stringify(newConfig, null, 2)), (error) => Fault11.wrap(error).withTag("FAILED_TO_WRITE_FILE").withDescription("Failed to write tsconfig.json", "We're unable to write the tsconfig.json file in the current directory."));
748
746
  return ok11();
749
747
  }),
750
- version: "7.0.0-dev.20260105.1"
748
+ version: "7.0.0-dev.20260108.1"
751
749
  };
752
750
 
753
751
  // src/commands/init.ts
@@ -963,7 +961,6 @@ var init_default = defineCommand({
963
961
  { label: "React", value: "react" },
964
962
  { label: "Next.js", value: "nextjs" },
965
963
  { label: "Vue", value: "vue" },
966
- { label: "Tailwind", value: "tailwind" },
967
964
  { label: "Jest", value: "jest" },
968
965
  { label: "Vitest", value: "vitest" },
969
966
  { label: "Node", value: "node" }
@@ -1010,7 +1007,6 @@ var init_default = defineCommand({
1010
1007
  const hasSherif = scripts.includes("check:monorepo") || scripts.includes("fix:monorepo");
1011
1008
  const hasTypecheck = scripts.includes("typecheck");
1012
1009
  const hasKnip = scripts.includes("analyze");
1013
- const pluginDeps = getPluginDependencies(presets);
1014
1010
  const dependencies = ["adamantite"];
1015
1011
  if (hasOxlint) {
1016
1012
  dependencies.push(`${oxlint.name}@${oxlint.version}`);
@@ -1028,9 +1024,6 @@ var init_default = defineCommand({
1028
1024
  if (hasKnip) {
1029
1025
  dependencies.push(`${knip.name}@${knip.version}`);
1030
1026
  }
1031
- for (const plugin of pluginDeps) {
1032
- dependencies.push(`${plugin.name}@${plugin.version}`);
1033
- }
1034
1027
  yield* installDependencies(dependencies);
1035
1028
  if (hasOxfmt) {
1036
1029
  yield* setupOxfmtConfig();
@@ -1170,17 +1163,6 @@ var update_default = defineCommand({
1170
1163
  });
1171
1164
  }
1172
1165
  }
1173
- for (const plugin of Object.values(jsPlugins)) {
1174
- const dependency = packageJson.devDependencies?.[plugin.name];
1175
- if (dependency && normalizeDependencyVersion(dependency) !== plugin.version) {
1176
- updates.push({
1177
- currentVersion: dependency,
1178
- isDevDependency: true,
1179
- name: plugin.name,
1180
- targetVersion: plugin.version
1181
- });
1182
- }
1183
- }
1184
1166
  if (updates.length === 0) {
1185
1167
  log8.success("All adamantite dependencies are already up to date!");
1186
1168
  return ok15("no-updates");
@@ -1228,5 +1210,5 @@ var update_default = defineCommand({
1228
1210
  });
1229
1211
 
1230
1212
  // src/index.ts
1231
- var version = await "0.24.0";
1213
+ var version = await "0.25.0";
1232
1214
  yargs(hideBin(process.argv)).scriptName("adamantite").version(version).command(analyze_default).command(check_default).command(fix_default).command(format_default2).command(init_default).command(monorepo_default).command(typecheck_default).command(update_default).demandCommand(1).strict().help().parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adamantite",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "description": "An strict and opinionated set of presets for modern TypeScript applications",
5
5
  "keywords": [
6
6
  "adamantite",
@@ -72,12 +72,11 @@
72
72
  "@changesets/cli": "2.29.8",
73
73
  "@types/bun": "1.3.5",
74
74
  "@types/yargs": "17.0.35",
75
- "@typescript/native-preview": "7.0.0-dev.20260105.1",
75
+ "@typescript/native-preview": "7.0.0-dev.20260108.1",
76
76
  "bunup": "0.16.17",
77
- "eslint-plugin-better-tailwindcss": "^3.8.0",
78
- "knip": "5.80.0",
79
- "oxfmt": "0.22.0",
80
- "oxlint": "1.37.0",
77
+ "knip": "5.80.1",
78
+ "oxfmt": "0.23.0",
79
+ "oxlint": "1.38.0",
81
80
  "oxlint-tsgolint": "0.10.1",
82
81
  "sherif": "1.9.0",
83
82
  "type-fest": "5.3.1",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "$schema": "../node_modules/oxfmt/configuration_schema.json",
2
3
  "arrowParens": "always",
3
4
  "bracketSameLine": false,
4
5
  "bracketSpacing": true,
@@ -23,6 +24,12 @@
23
24
  "partitionByComment": true,
24
25
  "sortSideEffects": false
25
26
  },
27
+ "experimentalTailwindcss": {
28
+ "attributes": ["className", "class"],
29
+ "functions": ["clsx", "cn", "cva", "tw", "twMerge"],
30
+ "preserveDuplicates": false,
31
+ "preserveWhitespace": false
32
+ },
26
33
  "insertFinalNewline": true,
27
34
  "jsxSingleQuote": false,
28
35
  "objectWrap": "preserve",
@@ -1,20 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/oxlint/configuration_schema.json",
3
- "jsPlugins": ["eslint-plugin-better-tailwindcss"],
4
- "rules": {
5
- // ==================== STYLISTIC ======================
6
- "better-tailwindcss/enforce-consistent-line-wrapping": "warn",
7
- "better-tailwindcss/enforce-consistent-class-order": "warn",
8
- "better-tailwindcss/enforce-consistent-variable-syntax": "warn",
9
- "better-tailwindcss/enforce-consistent-important-position": "warn",
10
- "better-tailwindcss/enforce-shorthand-classes": "warn",
11
- "better-tailwindcss/no-duplicate-classes": "warn",
12
- "better-tailwindcss/no-deprecated-classes": "warn",
13
- "better-tailwindcss/no-unnecessary-whitespace": "warn",
14
-
15
- // ==================== CORRECTNESS ====================
16
- "better-tailwindcss/no-unregistered-classes": "error",
17
- "better-tailwindcss/no-conflicting-classes": "error",
18
- "better-tailwindcss/no-restricted-classes": "error"
19
- }
20
- }