@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.
package/eslint-configs/react.js
CHANGED
|
@@ -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: [
|
|
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