@jterrazz/codestyle 1.2.5 → 1.2.6

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,10 +12,12 @@ Create `.oxlintrc.json`:
12
12
 
13
13
  ```json
14
14
  {
15
- "extends": ["@jterrazz/codestyle/oxlint/node"]
15
+ "extends": ["node_modules/@jterrazz/codestyle/src/oxlint/node.json"]
16
16
  }
17
17
  ```
18
18
 
19
+ > **Note:** The `node_modules/` path is required because oxlint doesn't support npm module resolution in `extends`.
20
+
19
21
  Run:
20
22
 
21
23
  ```bash
@@ -25,21 +27,19 @@ npx codestyle --fix # Fix everything
25
27
 
26
28
  ## Configurations
27
29
 
28
- | Config | Use Case |
29
- | ---------------------------------------------------- | ---------------------------------- |
30
- | `@jterrazz/codestyle/oxlint/node` | Node.js (requires .js extensions) |
31
- | `@jterrazz/codestyle/oxlint/expo` | Expo / React Native |
32
- | `@jterrazz/codestyle/oxlint/nextjs` | Next.js |
33
- | `@jterrazz/codestyle/oxlint/architectures/hexagonal` | Hexagonal architecture enforcement |
30
+ Base configurations (pick one):
31
+
32
+ | Config | Use Case |
33
+ | --------------------------------------------------------- | --------------------------------- |
34
+ | `node_modules/@jterrazz/codestyle/src/oxlint/node.json` | Node.js (requires .js extensions) |
35
+ | `node_modules/@jterrazz/codestyle/src/oxlint/expo.json` | Expo / React Native |
36
+ | `node_modules/@jterrazz/codestyle/src/oxlint/nextjs.json` | Next.js |
34
37
 
35
- ## What's Included
38
+ Architecture plugins (additive, combine with any base config):
36
39
 
37
- - TypeScript strict mode with `type` imports
38
- - Import sorting and grouping (perfectionist)
39
- - Named exports enforcement (no default exports)
40
- - Performance warnings (spread in loops, etc.)
41
- - Style consistency (curly braces, comments, naming)
42
- - Custom rules: architecture boundaries, import extensions
40
+ | Plugin | Use Case |
41
+ | -------------------------------------------------------------------------- | ---------------------------------- |
42
+ | `node_modules/@jterrazz/codestyle/src/oxlint/architectures/hexagonal.json` | Hexagonal architecture enforcement |
43
43
 
44
44
  ## CLI
45
45
 
@@ -58,10 +58,10 @@ Enforce hexagonal architecture boundaries:
58
58
 
59
59
  ```json
60
60
  {
61
- "extends": [
62
- "@jterrazz/codestyle/oxlint/node",
63
- "@jterrazz/codestyle/oxlint/architectures/hexagonal"
64
- ]
61
+ "extends": [
62
+ "node_modules/@jterrazz/codestyle/src/oxlint/node.json",
63
+ "node_modules/@jterrazz/codestyle/src/oxlint/architectures/hexagonal.json"
64
+ ]
65
65
  }
66
66
  ```
67
67
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jterrazz/codestyle",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "author": "Jean-Baptiste Terrazzoni <contact@jterrazz.com>",
5
5
  "bin": {
6
6
  "codestyle": "./src/codestyle.sh"
@@ -12,12 +12,13 @@
12
12
  "main": "src/index.js",
13
13
  "exports": {
14
14
  ".": "./src/index.js",
15
+ "./oxfmt": "./src/oxfmt/index.json",
15
16
  "./oxlint/node": "./src/oxlint/node.json",
16
17
  "./oxlint/expo": "./src/oxlint/expo.json",
17
18
  "./oxlint/nextjs": "./src/oxlint/nextjs.json",
18
19
  "./oxlint/architectures/hexagonal": "./src/oxlint/architectures/hexagonal.json",
19
20
  "./oxlint/plugins/codestyle": "./src/oxlint/plugins/codestyle.js",
20
- "./oxfmt": "./src/oxfmt/index.json"
21
+ "./src/oxlint/plugins/codestyle.js": "./src/oxlint/plugins/codestyle.js"
21
22
  },
22
23
  "publishConfig": {
23
24
  "registry": "https://registry.npmjs.org/"
@@ -30,12 +31,12 @@
30
31
  },
31
32
  "dependencies": {
32
33
  "@jterrazz/typescript": "^4.2.1",
33
- "eslint-plugin-perfectionist": "^5.2.0",
34
- "oxfmt": "^0.21.0",
35
- "oxlint": "^1.36.0"
34
+ "eslint-plugin-perfectionist": "^5.4.0",
35
+ "oxfmt": "^0.26.0",
36
+ "oxlint": "^1.41.0"
36
37
  },
37
38
  "devDependencies": {
38
- "@types/node": "^25.0.3",
39
- "vitest": "^4.0.16"
39
+ "@types/node": "^25.0.10",
40
+ "vitest": "^4.0.18"
40
41
  }
41
42
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
3
3
  "plugins": ["typescript", "import", "oxc", "unicorn"],
4
- "jsPlugins": ["eslint-plugin-perfectionist", "@jterrazz/codestyle/oxlint/plugins/codestyle"],
4
+ "jsPlugins": ["eslint-plugin-perfectionist", "./plugins/codestyle.js"],
5
5
  "categories": {
6
6
  "correctness": "error",
7
7
  "suspicious": "error",