@baseplate-dev/tools 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.
@@ -63,14 +63,17 @@ export const reactEslintConfig = tsEslint.config(
63
63
  rules: {
64
64
  // We use replace since it is not supported by ES2020
65
65
  'unicorn/prefer-string-replace-all': 'off',
66
- // Support kebab case with - prefix to support ignored files in routes
66
+ // Support kebab case with - prefix to support ignored files in routes and $ prefix for Tanstack camelCase files
67
67
  'unicorn/filename-case': [
68
68
  'error',
69
69
  {
70
70
  cases: {
71
71
  kebabCase: true,
72
72
  },
73
- ignore: [String.raw`^-[a-z0-9\-\.]+$`],
73
+ ignore: [
74
+ String.raw`^-[a-z0-9\-\.]+$`,
75
+ String.raw`^\$[a-zA-Z0-9\.]+$`,
76
+ ],
74
77
  },
75
78
  ],
76
79
  },
@@ -219,6 +219,10 @@ export function generateTypescriptEslintConfig(options = []) {
219
219
 
220
220
  // Prevents returning undefined from functions which Typescript assumes is void
221
221
  'unicorn/no-useless-undefined': 'off',
222
+
223
+ // Allow usage of utf-8 text encoding since it's consistent with the WHATWG spec
224
+ // and autofixing can cause unexpected changes (https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1926)
225
+ 'unicorn/text-encoding-identifier-case': 'off',
222
226
  },
223
227
  },
224
228
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baseplate-dev/tools",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Shared dev configurations for linting, formatting, and testing Baseplate projects",
5
5
  "keywords": [
6
6
  "development-tools",
@@ -4,7 +4,6 @@
4
4
  "display": "Vite React Library",
5
5
  "compilerOptions": {
6
6
  "allowImportingTsExtensions": false,
7
- /* Make sure we use NodeNext for mixed-Node/React libraries */
8
7
  "module": "NodeNext",
9
8
  "moduleResolution": "Node16",
10
9