@sapphire-sh/utils 1.42.0 → 1.44.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.
package/lib/eslint.js CHANGED
@@ -27,6 +27,7 @@ exports.default = (0, config_1.defineConfig)(js_1.default.configs.recommended, .
27
27
  'arrow-body-style': ['error', 'as-needed'],
28
28
  'func-style': ['error', 'expression'],
29
29
  yoda: 'error',
30
+ curly: 'error',
30
31
  // TypeScript
31
32
  '@typescript-eslint/no-unused-vars': ['error', { varsIgnorePattern: '^_', argsIgnorePattern: '^_' }],
32
33
  '@typescript-eslint/naming-convention': [
package/lib/esm/eslint.js CHANGED
@@ -22,6 +22,7 @@ export default defineConfig(eslint.configs.recommended, ...tseslint.configs.reco
22
22
  'arrow-body-style': ['error', 'as-needed'],
23
23
  'func-style': ['error', 'expression'],
24
24
  yoda: 'error',
25
+ curly: 'error',
25
26
  // TypeScript
26
27
  '@typescript-eslint/no-unused-vars': ['error', { varsIgnorePattern: '^_', argsIgnorePattern: '^_' }],
27
28
  '@typescript-eslint/naming-convention': [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapphire-sh/utils",
3
- "version": "1.42.0",
3
+ "version": "1.44.0",
4
4
  "description": "@sapphire-sh/utils",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -20,10 +20,14 @@
20
20
  "import": "./lib/esm/prettier.js",
21
21
  "require": "./lib/prettier.js",
22
22
  "types": "./lib/prettier.d.ts"
23
- }
23
+ },
24
+ "./tsconfig": "./tsconfig.json",
25
+ "./tsconfig.esm": "./tsconfig.esm.json"
24
26
  },
25
27
  "files": [
26
- "lib/**/*"
28
+ "lib/**/*",
29
+ "tsconfig.json",
30
+ "tsconfig.esm.json"
27
31
  ],
28
32
  "scripts": {
29
33
  "prebuild": "rm -fr ./lib",
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "module": "NodeNext",
5
+ "moduleResolution": "NodeNext",
6
+ "outDir": "./lib/esm"
7
+ }
8
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "lib": ["ES2022", "DOM"],
5
+ "module": "commonjs",
6
+ "moduleResolution": "node",
7
+ "outDir": "./lib",
8
+ "declaration": true,
9
+ "strict": true,
10
+ "esModuleInterop": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "skipLibCheck": true
13
+ },
14
+ "include": ["src"],
15
+ "exclude": ["src/**/*.test.ts"]
16
+ }