@nextnode-solutions/standards 1.2.1 → 1.3.1

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/package.json CHANGED
@@ -1,102 +1,108 @@
1
1
  {
2
- "name": "@nextnode-solutions/standards",
3
- "version": "1.2.1",
4
- "description": "Centralized development standards for NextNode projects: oxlint, oxfmt, TypeScript, Tailwind, Vitest, commitlint",
5
- "keywords": [
6
- "commitlint",
7
- "formatting",
8
- "linting",
9
- "nextnode",
10
- "oxfmt",
11
- "oxlint",
12
- "standards"
13
- ],
14
- "homepage": "https://github.com/NextNodeSolutions/standards#readme",
15
- "bugs": {
16
- "url": "https://github.com/NextNodeSolutions/standards/issues"
17
- },
18
- "license": "MIT",
19
- "author": "NextNode Solutions",
20
- "repository": {
21
- "type": "git",
22
- "url": "https://github.com/NextNodeSolutions/standards.git"
23
- },
24
- "files": [
25
- "README.md",
26
- "src"
27
- ],
28
- "type": "module",
29
- "exports": {
30
- "./oxlint": "./src/oxlint/base.json",
31
- "./oxfmt": "./src/oxfmt/base.json",
32
- "./typescript/library": "./src/typescript/tsconfig.library.json",
33
- "./typescript/nextjs": "./src/typescript/tsconfig.nextjs.json",
34
- "./typescript/astro": "./src/typescript/tsconfig.astro.json",
35
- "./tailwind": "./src/tailwind/theme.css",
36
- "./vitest/frontend": {
37
- "types": "./src/vitest/vitest.frontend.d.ts",
38
- "default": "./src/vitest/vitest.frontend.js"
39
- },
40
- "./vitest/backend": {
41
- "types": "./src/vitest/vitest.backend.d.ts",
42
- "default": "./src/vitest/vitest.backend.js"
43
- },
44
- "./commitlint": "./src/commitlint/base.js",
45
- "./editorconfig": "./src/editorconfig/base.editorconfig",
46
- "./npmrc": "./src/npmrc/base.npmrc",
47
- "./lint-staged": "./src/lint-staged/base.js"
48
- },
49
- "publishConfig": {
50
- "access": "public",
51
- "registry": "https://registry.npmjs.org/"
52
- },
53
- "scripts": {
54
- "build": "echo 'No build step needed for config package'",
55
- "format": "oxfmt --write .",
56
- "format:check": "oxfmt --check .",
57
- "lint": "oxlint",
58
- "prepare": "husky",
59
- "test": "echo 'Configuration package — no tests needed'"
60
- },
61
- "devDependencies": {
62
- "@commitlint/cli": "^19.8.1",
63
- "@commitlint/config-conventional": "^19.8.1",
64
- "better-sort-package-json": "^1.1.1",
65
- "husky": "^9.0.11",
66
- "lint-staged": "^15.2.2",
67
- "oxfmt": "^0.28.0",
68
- "oxlint": "^1.43.0"
69
- },
70
- "peerDependencies": {
71
- "@commitlint/cli": "^19.0.0",
72
- "@commitlint/config-conventional": "^19.0.0",
73
- "oxfmt": ">=0.7.0",
74
- "oxlint": ">=0.16.0",
75
- "tailwindcss": "^4.0.0",
76
- "vitest": "^3.0.0 || ^4.0.0"
77
- },
78
- "peerDependenciesMeta": {
79
- "@commitlint/cli": {
80
- "optional": true
81
- },
82
- "@commitlint/config-conventional": {
83
- "optional": true
84
- },
85
- "oxfmt": {
86
- "optional": false
87
- },
88
- "oxlint": {
89
- "optional": false
90
- },
91
- "tailwindcss": {
92
- "optional": true
93
- },
94
- "vitest": {
95
- "optional": true
96
- }
97
- },
98
- "engines": {
99
- "node": ">=24.0.0"
100
- },
101
- "packageManager": "pnpm@10.11.0"
2
+ "name": "@nextnode-solutions/standards",
3
+ "version": "1.3.1",
4
+ "description": "Centralized development standards for NextNode projects: oxlint, oxfmt, TypeScript, Tailwind, Vitest, commitlint",
5
+ "keywords": [
6
+ "commitlint",
7
+ "formatting",
8
+ "linting",
9
+ "nextnode",
10
+ "oxfmt",
11
+ "oxlint",
12
+ "standards"
13
+ ],
14
+ "homepage": "https://github.com/NextNodeSolutions/core#readme",
15
+ "bugs": {
16
+ "url": "https://github.com/NextNodeSolutions/core/issues"
17
+ },
18
+ "license": "MIT",
19
+ "author": "NextNode Solutions",
20
+ "files": [
21
+ "README.md",
22
+ "src"
23
+ ],
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/NextNodeSolutions/core.git"
27
+ },
28
+ "scripts": {
29
+ "build": "echo 'No build step needed for config package'",
30
+ "format": "oxfmt --write .",
31
+ "format:check": "oxfmt --check .",
32
+ "lint": "oxlint",
33
+ "prepare": "husky",
34
+ "test": "echo 'Configuration package — no tests needed'"
35
+ },
36
+ "dependencies": {
37
+ "@semantic-release/git": "^10.0.1",
38
+ "@semantic-release/github": "^12.0.6",
39
+ "semantic-release-monorepo": "^8.0.2"
40
+ },
41
+ "devDependencies": {
42
+ "@commitlint/cli": "^19.8.1",
43
+ "@commitlint/config-conventional": "^19.8.1",
44
+ "better-sort-package-json": "^1.1.1",
45
+ "husky": "^9.0.11",
46
+ "lint-staged": "^15.2.2",
47
+ "oxfmt": "^0.28.0",
48
+ "oxlint": "^1.43.0"
49
+ },
50
+ "peerDependencies": {
51
+ "@commitlint/cli": "^19.0.0",
52
+ "@commitlint/config-conventional": "^19.0.0",
53
+ "oxfmt": ">=0.7.0",
54
+ "oxlint": ">=0.16.0",
55
+ "tailwindcss": "^4.0.0",
56
+ "vitest": "^3.0.0 || ^4.0.0"
57
+ },
58
+ "peerDependenciesMeta": {
59
+ "@commitlint/cli": {
60
+ "optional": true
61
+ },
62
+ "@commitlint/config-conventional": {
63
+ "optional": true
64
+ },
65
+ "oxfmt": {
66
+ "optional": false
67
+ },
68
+ "oxlint": {
69
+ "optional": false
70
+ },
71
+ "tailwindcss": {
72
+ "optional": true
73
+ },
74
+ "vitest": {
75
+ "optional": true
76
+ }
77
+ },
78
+ "engines": {
79
+ "node": ">=24.0.0"
80
+ },
81
+ "publishConfig": {
82
+ "access": "public",
83
+ "registry": "https://registry.npmjs.org/"
84
+ },
85
+ "packageManager": "pnpm@10.11.0",
86
+ "type": "module",
87
+ "exports": {
88
+ "./oxlint": "./src/oxlint/base.json",
89
+ "./oxfmt": "./src/oxfmt/base.json",
90
+ "./typescript/library": "./src/typescript/tsconfig.library.json",
91
+ "./typescript/nextjs": "./src/typescript/tsconfig.nextjs.json",
92
+ "./typescript/astro": "./src/typescript/tsconfig.astro.json",
93
+ "./tailwind": "./src/tailwind/theme.css",
94
+ "./vitest/frontend": {
95
+ "types": "./src/vitest/vitest.frontend.d.ts",
96
+ "default": "./src/vitest/vitest.frontend.js"
97
+ },
98
+ "./vitest/backend": {
99
+ "types": "./src/vitest/vitest.backend.d.ts",
100
+ "default": "./src/vitest/vitest.backend.js"
101
+ },
102
+ "./commitlint": "./src/commitlint/base.js",
103
+ "./editorconfig": "./src/editorconfig/base.editorconfig",
104
+ "./npmrc": "./src/npmrc/base.npmrc",
105
+ "./lint-staged": "./src/lint-staged/base.js",
106
+ "./semantic-release": "./src/semantic-release/base.js"
107
+ }
102
108
  }
@@ -1,8 +1,12 @@
1
+ const ERROR = 2
2
+ const WARNING = 1
3
+ const MAX_LINE_LENGTH = 100
4
+
1
5
  export default {
2
6
  extends: ['@commitlint/config-conventional'],
3
7
  rules: {
4
8
  'type-enum': [
5
- 2,
9
+ ERROR,
6
10
  'always',
7
11
  [
8
12
  'feat',
@@ -18,20 +22,20 @@ export default {
18
22
  'revert',
19
23
  ],
20
24
  ],
21
- 'type-case': [2, 'always', 'lower-case'],
22
- 'type-empty': [2, 'never'],
23
- 'scope-case': [2, 'always', 'lower-case'],
25
+ 'type-case': [ERROR, 'always', 'lower-case'],
26
+ 'type-empty': [ERROR, 'never'],
27
+ 'scope-case': [ERROR, 'always', 'lower-case'],
24
28
  'subject-case': [
25
- 2,
29
+ ERROR,
26
30
  'never',
27
31
  ['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
28
32
  ],
29
- 'subject-empty': [2, 'never'],
30
- 'subject-full-stop': [2, 'never', '.'],
31
- 'header-max-length': [2, 'always', 100],
32
- 'body-leading-blank': [1, 'always'],
33
- 'body-max-line-length': [2, 'always', 100],
34
- 'footer-leading-blank': [1, 'always'],
35
- 'footer-max-line-length': [2, 'always', 100],
33
+ 'subject-empty': [ERROR, 'never'],
34
+ 'subject-full-stop': [ERROR, 'never', '.'],
35
+ 'header-max-length': [ERROR, 'always', MAX_LINE_LENGTH],
36
+ 'body-leading-blank': [WARNING, 'always'],
37
+ 'body-max-line-length': [ERROR, 'always', MAX_LINE_LENGTH],
38
+ 'footer-leading-blank': [WARNING, 'always'],
39
+ 'footer-max-line-length': [ERROR, 'always', MAX_LINE_LENGTH],
36
40
  },
37
41
  }
@@ -1,5 +1,8 @@
1
1
  export default {
2
2
  'package.json': ['better-sort-package-json'],
3
- '*': ['oxlint'],
4
- '*.{js,mjs,cjs,jsx,ts,mts,cts,tsx}': ['oxfmt --write'],
3
+ '*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue,svelte,astro}': [
4
+ 'oxlint',
5
+ 'oxfmt --write',
6
+ ],
7
+ '*.json': ['oxfmt --write'],
5
8
  }
@@ -13,7 +13,6 @@
13
13
  "experimentalTailwindcss": {},
14
14
  "experimentalSortImports": {
15
15
  "groups": [
16
- ["side-effect"],
17
16
  ["builtin"],
18
17
  ["external", "type-external"],
19
18
  ["internal", "type-internal"],
@@ -21,7 +20,7 @@
21
20
  ["sibling", "type-sibling"],
22
21
  ["index", "type-index"]
23
22
  ],
24
- "newlinesBetween": "always"
23
+ "newlinesBetween": true
25
24
  },
26
25
  "overrides": [
27
26
  {
@@ -0,0 +1,21 @@
1
+ export default {
2
+ plugins: [
3
+ '@semantic-release/commit-analyzer',
4
+ '@semantic-release/release-notes-generator',
5
+ '@semantic-release/npm',
6
+ [
7
+ '@semantic-release/git',
8
+ {
9
+ assets: ['package.json'],
10
+ message: 'chore(release): ${nextRelease.gitTag} [skip ci]',
11
+ },
12
+ ],
13
+ [
14
+ '@semantic-release/github',
15
+ {
16
+ successComment: false,
17
+ failTitle: false,
18
+ },
19
+ ],
20
+ ],
21
+ }
@@ -21,8 +21,6 @@
21
21
 
22
22
  // Compatibility
23
23
  "forceConsistentCasingInFileNames": true,
24
- "allowSyntheticDefaultImports": true,
25
- "esModuleInterop": true,
26
24
  "resolveJsonModule": true,
27
25
  "skipLibCheck": true,
28
26
  "allowJs": true,