@baseplate-dev/core-generators 0.2.3 → 0.2.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.
@@ -1 +1 @@
1
- {"version":3,"file":"react-rules.d.ts","sourceRoot":"","sources":["../../../../src/generators/node/eslint/react-rules.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,kDAiE9B,CAAC"}
1
+ {"version":3,"file":"react-rules.d.ts","sourceRoot":"","sources":["../../../../src/generators/node/eslint/react-rules.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,kDA2E9B,CAAC"}
@@ -48,6 +48,16 @@ export const REACT_ESLINT_RULES = tsCodeFragment(`
48
48
  rules: {
49
49
  // We use replace since it is not supported by ES2020
50
50
  'unicorn/prefer-string-replace-all': 'off',
51
+ // Support kebab case with - prefix to support ignored files in routes and $ prefix for Tanstack camelCase files
52
+ 'unicorn/filename-case': [
53
+ 'error',
54
+ {
55
+ cases: {
56
+ kebabCase: true,
57
+ },
58
+ ignore: [String.raw\`^-[a-z0-9\\-\\.]+$\`, String.raw\`^\\$[a-zA-Z0-9\\.]+$\`],
59
+ },
60
+ ],
51
61
  },
52
62
  },
53
63
  `, [
@@ -1 +1 @@
1
- {"version":3,"file":"react-rules.js","sourceRoot":"","sources":["../../../../src/generators/node/eslint/react-rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1E,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAc,CAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDD,EACC;IACE,eAAe,EAAE;SACd,OAAO,CAAC,qBAAqB,CAAC;SAC9B,IAAI,CAAC,wBAAwB,CAAC;IACjC,eAAe,EAAE;SACd,OAAO,CAAC,oBAAoB,CAAC;SAC7B,IAAI,CAAC,wBAAwB,CAAC;IACjC,eAAe,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC;IACpE,eAAe,EAAE;SACd,OAAO,CAAC,kBAAkB,CAAC;SAC3B,IAAI,CAAC,2BAA2B,CAAC;CACrC,CACF,CAAC"}
1
+ {"version":3,"file":"react-rules.js","sourceRoot":"","sources":["../../../../src/generators/node/eslint/react-rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1E,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAc,CAC9C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6DD,EACC;IACE,eAAe,EAAE;SACd,OAAO,CAAC,qBAAqB,CAAC;SAC9B,IAAI,CAAC,wBAAwB,CAAC;IACjC,eAAe,EAAE;SACd,OAAO,CAAC,oBAAoB,CAAC;SAC7B,IAAI,CAAC,wBAAwB,CAAC;IACjC,eAAe,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC;IACpE,eAAe,EAAE;SACd,OAAO,CAAC,kBAAkB,CAAC;SAC3B,IAAI,CAAC,2BAA2B,CAAC;CACrC,CACF,CAAC"}
@@ -170,6 +170,10 @@ export default tsEslint.config(
170
170
 
171
171
  // Can be too strict if you prefer to have shorter cases for negated conditions
172
172
  'unicorn/no-negated-condition': 'off',
173
+
174
+ // Allow usage of utf-8 text encoding since it's consistent with the WHATWG spec
175
+ // and autofixing can cause unexpected changes (https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1926)
176
+ 'unicorn/text-encoding-identifier-case': 'off',
173
177
  },
174
178
  },
175
179
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baseplate-dev/core-generators",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Core generators for Baseplate",
5
5
  "keywords": [
6
6
  "code-generation",
@@ -59,8 +59,8 @@
59
59
  "sort-package-json": "2.10.1",
60
60
  "ts-morph": "25.0.0",
61
61
  "zod": "3.24.1",
62
- "@baseplate-dev/sync": "0.2.3",
63
- "@baseplate-dev/utils": "0.2.3"
62
+ "@baseplate-dev/sync": "0.2.4",
63
+ "@baseplate-dev/utils": "0.2.4"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/node": "^22.0.0",
@@ -71,7 +71,7 @@
71
71
  "eslint": "9.26.0",
72
72
  "typescript": "5.7.3",
73
73
  "vitest": "3.0.7",
74
- "@baseplate-dev/tools": "0.2.3"
74
+ "@baseplate-dev/tools": "0.2.4"
75
75
  },
76
76
  "engines": {
77
77
  "node": "^22.0.0"