@hiddenability/opinionated-defaults 0.0.24 → 0.0.26

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
@@ -115,6 +115,29 @@ const prettierConfig = merge(
115
115
  export default prettierConfig;
116
116
  ```
117
117
 
118
+ #### TailwindCSS Plugin:
119
+
120
+ When using `prettier-config-tailwind`, make sure to specify the CSS file that contains the `@import "tailwindcss"` directive.
121
+
122
+ For example, given the following css file:
123
+ ```css
124
+ // /app/styles.css
125
+ @import 'tailwindcss';
126
+ ```
127
+
128
+ This should be a minimal version of your Prettier config:
129
+
130
+ ```ts
131
+ // prettier.config.mjs
132
+ import { prettierConfigTailwind } from '@hiddenability/opinionated-defaults/prettier';
133
+
134
+ const prettierConfig = merge(
135
+ prettierConfigTailwind,
136
+ { tailwindStylesheet: './app/styles.css' }
137
+ );
138
+ ```
139
+
140
+
118
141
  ## TODO:
119
142
 
120
143
  - Improve repository structure (How to manage configuration options within eslint dir?).
@@ -3,7 +3,7 @@ export { default as eslintConfigBase } from './base';
3
3
  export { default as eslintConfigElysia } from './elysia';
4
4
  export { default as eslintConfigFunctional } from './functional';
5
5
  export { default as eslintConfigNext } from './next';
6
- export { default as eslintConfigPefectionist } from './perfectionist';
6
+ export { default as eslintConfigPerfectionist } from './perfectionist';
7
7
  export { default as eslintConfigPrettier } from './prettier';
8
8
  export { default as eslintConfigReact } from './react';
9
9
  export { default as eslintConfigRelative } from './relative';
@@ -3,7 +3,7 @@ export { default as eslintConfigBase } from "./base.mjs";
3
3
  export { default as eslintConfigElysia } from "./elysia.mjs";
4
4
  export { default as eslintConfigFunctional } from "./functional.mjs";
5
5
  export { default as eslintConfigNext } from "./next.mjs";
6
- export { default as eslintConfigPefectionist } from "./perfectionist.mjs";
6
+ export { default as eslintConfigPerfectionist } from "./perfectionist.mjs";
7
7
  export { default as eslintConfigPrettier } from "./prettier.mjs";
8
8
  export { default as eslintConfigReact } from "./react.mjs";
9
9
  export { default as eslintConfigRelative } from "./relative.mjs";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hiddenability/opinionated-defaults",
3
3
  "description": "Opinionated default configurations for webdev tools.",
4
- "version": "0.0.24",
4
+ "version": "0.0.26",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -29,15 +29,16 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@eslint/js": "^9.30.1",
33
- "@next/eslint-plugin-next": "^15.3.5",
34
- "@stylistic/eslint-plugin": "^5.1.0",
32
+ "@eslint/js": "^9.31.0",
33
+ "@next/eslint-plugin-next": "^15.4.1",
34
+ "@stylistic/eslint-plugin": "^5.2.0",
35
35
  "@trivago/prettier-plugin-sort-imports": "^5.2.2",
36
36
  "@types/lodash": "^4.17.20",
37
- "eslint": "^9.30.1",
37
+ "eslint": "^9.31.0",
38
38
  "eslint-config-prettier": "^10.1.5",
39
39
  "eslint-plugin-astro": "^1.3.1",
40
40
  "eslint-plugin-functional": "^9.0.2",
41
+ "eslint-plugin-import": "^2.32.0",
41
42
  "eslint-plugin-no-relative-import-paths": "^1.6.1",
42
43
  "eslint-plugin-perfectionist": "^4.15.0",
43
44
  "eslint-plugin-prefer-arrow-functions": "^3.6.2",
@@ -45,17 +46,17 @@
45
46
  "eslint-plugin-react": "^7.37.5",
46
47
  "eslint-plugin-react-hooks": "^5.2.0",
47
48
  "eslint-plugin-solid": "^0.14.5",
48
- "eslint-plugin-turbo": "^2.5.4",
49
+ "eslint-plugin-turbo": "^2.5.5",
49
50
  "eslint-plugin-unicorn": "^59.0.1",
50
51
  "jiti": "^2.4.2",
51
52
  "lodash": "^4.17.21",
52
53
  "prettier": "3.6.2",
53
54
  "prettier-plugin-astro": "^0.14.1",
54
- "prettier-plugin-tailwindcss": "0.6.13",
55
- "typescript-eslint": "^8.36.0"
55
+ "prettier-plugin-tailwindcss": "0.6.14",
56
+ "typescript-eslint": "^8.37.0"
56
57
  },
57
58
  "devDependencies": {
58
- "@hiddenability/opinionated-defaults": "^0.0.21",
59
+ "@hiddenability/opinionated-defaults": "^0.0.24",
59
60
  "@types/bun": "^1.2.18",
60
61
  "typescript": "^5.8.3",
61
62
  "unbuild": "^3.5.0",