@jterrazz/codestyle 2.0.0 → 2.1.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
@@ -12,7 +12,7 @@ Create `.oxlintrc.json`:
12
12
 
13
13
  ```json
14
14
  {
15
- "extends": ["@jterrazz/codestyle/oxlint/node"]
15
+ "extends": ["@jterrazz/codestyle/presets/oxlint/node.json"]
16
16
  }
17
17
  ```
18
18
 
@@ -23,21 +23,21 @@ npx codestyle check # Check everything (types + lint + format)
23
23
  npx codestyle fix # Fix everything
24
24
  ```
25
25
 
26
- ## Configurations
26
+ ## Presets
27
27
 
28
28
  Pick a base config:
29
29
 
30
- | Config | Use Case |
31
- | --------------------------------- | --------------------------------- |
32
- | `@jterrazz/codestyle/oxlint/node` | Node.js (requires .js extensions) |
33
- | `@jterrazz/codestyle/oxlint/expo` | Expo / React Native |
34
- | `@jterrazz/codestyle/oxlint/next` | Next.js |
30
+ | Preset | Use Case |
31
+ | ---------------------------------------------- | --------------------------------- |
32
+ | `@jterrazz/codestyle/presets/oxlint/node.json` | Node.js (requires .js extensions) |
33
+ | `@jterrazz/codestyle/presets/oxlint/expo.json` | Expo / React Native |
34
+ | `@jterrazz/codestyle/presets/oxlint/next.json` | Next.js |
35
35
 
36
- Architecture plugin (additive):
36
+ Architecture preset (additive):
37
37
 
38
- | Plugin | Use Case |
39
- | ---------------------------------------------------- | ---------------------------------- |
40
- | `@jterrazz/codestyle/oxlint/architectures/hexagonal` | Hexagonal architecture enforcement |
38
+ | Preset | Use Case |
39
+ | ----------------------------------------------------------------- | ---------------------------------- |
40
+ | `@jterrazz/codestyle/presets/oxlint/architectures/hexagonal.json` | Hexagonal architecture enforcement |
41
41
 
42
42
  ## Architecture Enforcement
43
43
 
@@ -46,8 +46,8 @@ Enforce hexagonal architecture boundaries:
46
46
  ```json
47
47
  {
48
48
  "extends": [
49
- "@jterrazz/codestyle/oxlint/node",
50
- "@jterrazz/codestyle/oxlint/architectures/hexagonal"
49
+ "@jterrazz/codestyle/presets/oxlint/node.json",
50
+ "@jterrazz/codestyle/presets/oxlint/architectures/hexagonal.json"
51
51
  ]
52
52
  }
53
53
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jterrazz/codestyle",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "author": "Jean-Baptiste Terrazzoni <contact@jterrazz.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,21 +11,11 @@
11
11
  },
12
12
  "files": [
13
13
  "bin",
14
- "config",
14
+ "presets",
15
15
  "src"
16
16
  ],
17
17
  "type": "module",
18
18
  "main": "src/index.js",
19
- "exports": {
20
- ".": "./src/index.js",
21
- "./oxfmt": "./config/oxfmt/index.json",
22
- "./oxlint/node": "./config/oxlint/node.json",
23
- "./oxlint/expo": "./config/oxlint/expo.json",
24
- "./oxlint/next": "./config/oxlint/next.json",
25
- "./oxlint/architectures/hexagonal": "./config/oxlint/architectures/hexagonal.json",
26
- "./oxlint/plugins/codestyle": "./config/oxlint/plugins/codestyle.js",
27
- "./config/oxlint/plugins/codestyle.js": "./config/oxlint/plugins/codestyle.js"
28
- },
29
19
  "publishConfig": {
30
20
  "registry": "https://registry.npmjs.org/"
31
21
  },
@@ -36,7 +26,7 @@
36
26
  "test": "vitest --run"
37
27
  },
38
28
  "dependencies": {
39
- "@jterrazz/typescript": "^5.0.0",
29
+ "@jterrazz/typescript": "^5.1.0",
40
30
  "@typescript/native-preview": "^7.0.0-dev.20260327.2",
41
31
  "eslint-plugin-perfectionist": "^5.7.0",
42
32
  "oxfmt": "^0.42.0",
package/src/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import oxfmtConfig from "../config/oxfmt/index.json" with { type: "json" };
2
- import expoConfig from "../config/oxlint/expo.json" with { type: "json" };
3
- import nextConfig from "../config/oxlint/next.json" with { type: "json" };
4
- import nodeConfig from "../config/oxlint/node.json" with { type: "json" };
1
+ import oxfmtConfig from "../presets/oxfmt/index.json" with { type: "json" };
2
+ import expoConfig from "../presets/oxlint/expo.json" with { type: "json" };
3
+ import nextConfig from "../presets/oxlint/next.json" with { type: "json" };
4
+ import nodeConfig from "../presets/oxlint/node.json" with { type: "json" };
5
5
 
6
6
  export const oxfmt = oxfmtConfig;
7
7
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes