@hiddenability/opinionated-defaults 0.0.2 → 0.0.4

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
@@ -7,7 +7,7 @@ A collection of opinionated tooling configurations.
7
7
  - Elysia.js
8
8
  - Next.js
9
9
 
10
- #### :electric_plug: Included plugins :
10
+ #### Included plugins:
11
11
  - [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier)
12
12
  - [eslint-plugin-no-relative-import-paths](https://github.com/MelvinVermeer/eslint-plugin-no-relative-import-paths)
13
13
  - [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react)
@@ -24,12 +24,23 @@ A collection of opinionated tooling configurations.
24
24
  - Next.js
25
25
  - +Opinionated defaults
26
26
 
27
+ #### Included plugins:
28
+ - [prettier-plugin-astro](https://github.com/withastro/prettier-plugin-astro)
29
+ - [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss)
30
+
31
+ ## Installation:
32
+ ```
33
+ bun add @hiddenability/opinionated-defaults -d
34
+ ```
35
+
36
+ ```
37
+ npm i @hiddenability/opinionated-defaults -D
38
+ ```
39
+
27
40
  ## Usage:
28
- #### Installation:
29
- `bun add reasonable-defaults -d`
30
- `npm i reasonable-defaults -D`
31
41
  ### Eslint:
32
42
  ```ts
43
+ // eslint.config.ts
33
44
  import {eslintConfigConfigName} from "reasonable-defaults/eslint"
34
45
 
35
46
  const eslintConfig = [...eslintConfigConfigName];
@@ -46,11 +57,12 @@ export default eslintConfig;
46
57
  - eslintConfigFunctional (Enforces functional style)
47
58
  - eslintConfigPrettier (Runs prettier as ESLint rules)
48
59
  - eslintConfigReact (General rules for React)
49
- - eslintConfigRelative (Forces the use of non-relative import paths using path aliases)
50
- - eslintConfigStylistic (Code-style through ESLint rules)
60
+ - eslintConfigRelative (Enforces the use of absolute import paths using path aliases)
61
+ - eslintConfigStylistic (Enforces code-style through ESLint rules)
51
62
 
52
63
  ### Prettier:
53
64
  ```ts
65
+ // prettier.config.mjs
54
66
  import {prettierConfigConfigName} from "reasonable-defaults/prettier"
55
67
 
56
68
  const prettierConfig = {...prettierConfigConfigName};
@@ -64,6 +76,7 @@ export default prettierConfig;
64
76
  - prettierConfigBase (General rules for every project)
65
77
 
66
78
  ## TODO:
67
- - Improve repository structure (How to manage configuration options within eslint dir?)
79
+ - Improve repository structure (How to manage configuration options within eslint dir?).
68
80
  - Maybe convert into monorepo with one package per tool instead of multiple exports from one package.
69
- - Prevent importing overlapping configurations (i.e., Next.js ESLint config contains base config)
81
+ - Prevent importing overlapping configurations (i.e., Next.js ESLint config contains base config).
82
+ - Support node module resolution.
@@ -6,6 +6,7 @@ const config = [
6
6
  eslintPluginUnicorn.configs.recommended,
7
7
  {
8
8
  rules: {
9
+ "unicorn/prevent-abbreviations": ["off"],
9
10
  "unicorn/filename-case": [
10
11
  "error",
11
12
  {
@@ -1,7 +1,8 @@
1
1
  import pluginReactHooks from "eslint-plugin-react-hooks";
2
2
  import pluginReact from "eslint-plugin-react";
3
3
  const reactConfig = [
4
- pluginReact.configs.flat["all"],
4
+ pluginReact.configs.flat["recommended"],
5
+ pluginReact.configs.flat["jsx-runtime"],
5
6
  pluginReactHooks.configs["recommended-latest"]
6
7
  ];
7
8
  export default reactConfig;
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.2",
4
+ "version": "0.0.4",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -26,10 +26,11 @@
26
26
  "dist"
27
27
  ],
28
28
  "devDependencies": {
29
- "@eslint/js": "^9.28.0",
30
- "@next/eslint-plugin-next": "^15.4.0-canary.81",
29
+ "@eslint/js": "^9.29.0",
30
+ "@hiddenability/opinionated-defaults": "0.0.3",
31
+ "@next/eslint-plugin-next": "^15.4.0-canary.82",
31
32
  "@stylistic/eslint-plugin": "^4.4.1",
32
- "eslint": "^9.28.0",
33
+ "eslint": "^9.29.0",
33
34
  "eslint-config-prettier": "^10.1.5",
34
35
  "eslint-plugin-astro": "^1.3.1",
35
36
  "eslint-plugin-functional": "^9.0.2",
@@ -44,7 +45,7 @@
44
45
  "jiti": "^2.4.2",
45
46
  "prettier": "3.5.3",
46
47
  "prettier-plugin-astro": "^0.14.1",
47
- "prettier-plugin-tailwindcss": "0.6.11",
48
+ "prettier-plugin-tailwindcss": "0.6.12",
48
49
  "typescript": "^5.8.3",
49
50
  "typescript-eslint": "^8.34.0",
50
51
  "unbuild": "^3.5.0"