@baseplate-dev/tools 0.5.3 → 0.6.0
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.
|
@@ -238,6 +238,9 @@ export function generateTypescriptEslintConfig(options = {}) {
|
|
|
238
238
|
// Allow usage of utf-8 text encoding since it's consistent with the WHATWG spec
|
|
239
239
|
// and autofixing can cause unexpected changes (https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1926)
|
|
240
240
|
'unicorn/text-encoding-identifier-case': 'off',
|
|
241
|
+
|
|
242
|
+
// This rule can cause performance issues (https://github.com/sindresorhus/eslint-plugin-unicorn/issues/2819)
|
|
243
|
+
'unicorn/no-unnecessary-polyfills': 'off',
|
|
241
244
|
},
|
|
242
245
|
},
|
|
243
246
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baseplate-dev/tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Shared dev configurations for linting, formatting, and testing Baseplate projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"development-tools",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"scripts": {
|
|
96
96
|
"lint": "eslint .",
|
|
97
97
|
"prettier:check": "prettier --check .",
|
|
98
|
-
"prettier:write": "prettier -w .",
|
|
98
|
+
"prettier:write": "prettier -w -l .",
|
|
99
99
|
"typecheck": "tsc --noEmit"
|
|
100
100
|
}
|
|
101
101
|
}
|
package/prettier.config.node.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
import
|
|
2
|
+
import packageJsonPlugin from 'prettier-plugin-packagejson';
|
|
3
3
|
|
|
4
4
|
/** @type {import("prettier").Config} */
|
|
5
5
|
export default {
|
|
@@ -7,10 +7,7 @@ export default {
|
|
|
7
7
|
singleQuote: true,
|
|
8
8
|
trailingComma: 'all',
|
|
9
9
|
semi: true,
|
|
10
|
-
plugins: [
|
|
11
|
-
// workaround for this bug: https://github.com/prettier/prettier-vscode/issues/3641
|
|
12
|
-
fileURLToPath(import.meta.resolve('prettier-plugin-packagejson')),
|
|
13
|
-
],
|
|
10
|
+
plugins: [packageJsonPlugin],
|
|
14
11
|
// we don't want trailing commas in jsonc files (https://github.com/prettier/prettier/issues/15956)
|
|
15
12
|
overrides: [
|
|
16
13
|
{
|