@hiddenability/opinionated-defaults 0.0.6 → 0.0.7

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.
@@ -1,9 +1,7 @@
1
1
  import baseConfig from "./base.mjs";
2
2
  const astroConfig = {
3
3
  ...baseConfig,
4
- plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
5
- tailwindStylesheet: "./src/styles/global.css",
6
- tailwindFunctions: ["cva", "clsx", "cn"],
4
+ plugins: ["prettier-plugin-astro"],
7
5
  overrides: [
8
6
  {
9
7
  files: "*.astro",
@@ -8,6 +8,9 @@ const config = {
8
8
  useTabs: false,
9
9
  semi: true,
10
10
  experimentalTernaries: true,
11
- bracketSameLine: false
11
+ bracketSameLine: false,
12
+ plugins: ["@trivago/prettier-plugin-sort-imports"],
13
+ importOrderSeparation: true,
14
+ importOrderSortSpecifiers: true
12
15
  };
13
16
  export default config;
@@ -1,3 +1,3 @@
1
- export { default as prettierConfigNext } from './next';
2
1
  export { default as prettierConfigBase } from './base';
3
2
  export { default as prettierConfigAstro } from './astro';
3
+ export { default as prettierConfigTailwind } from './tailwind';
@@ -1,3 +1,3 @@
1
- export { default as prettierConfigNext } from "./next.mjs";
2
1
  export { default as prettierConfigBase } from "./base.mjs";
3
2
  export { default as prettierConfigAstro } from "./astro.mjs";
3
+ export { default as prettierConfigTailwind } from "./tailwind.mjs";
@@ -0,0 +1,3 @@
1
+ import { type Config } from 'prettier';
2
+ declare const tailwindConfig: Config;
3
+ export default tailwindConfig;
@@ -0,0 +1,5 @@
1
+ const tailwindConfig = {
2
+ plugins: ["prettier-plugin-tailwindcss"],
3
+ tailwindFunctions: ["cva", "clsx", "cn"]
4
+ };
5
+ export default tailwindConfig;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hiddenability/opinionated-defaults",
3
3
  "description": "Opinionated default configurations for dev tools.",
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -33,6 +33,7 @@
33
33
  "@eslint/js": "^9.29.0",
34
34
  "@next/eslint-plugin-next": "^15.4.0-canary.83",
35
35
  "@stylistic/eslint-plugin": "^4.4.1",
36
+ "@trivago/prettier-plugin-sort-imports": "^5.2.2",
36
37
  "eslint-config-prettier": "^10.1.5",
37
38
  "eslint-plugin-astro": "^1.3.1",
38
39
  "eslint-plugin-functional": "^9.0.2",
@@ -48,7 +49,7 @@
48
49
  "typescript-eslint": "^8.34.0"
49
50
  },
50
51
  "devDependencies": {
51
- "@hiddenability/opinionated-defaults": "0.0.5",
52
+ "@hiddenability/opinionated-defaults": "^0.0.6",
52
53
  "jiti": "^2.4.2",
53
54
  "typescript": "^5.8.3",
54
55
  "unbuild": "^3.5.0"
@@ -1,3 +0,0 @@
1
- import { type Config } from 'prettier';
2
- declare const nextConfig: Config;
3
- export default nextConfig;
@@ -1,8 +0,0 @@
1
- import baseConfig from "./base.mjs";
2
- const nextConfig = {
3
- ...baseConfig,
4
- plugins: ["prettier-plugin-tailwindcss"],
5
- tailwindStylesheet: "./src/globals.css",
6
- tailwindFunctions: ["cva", "clsx", "cn"]
7
- };
8
- export default nextConfig;