Skip to content

Commit e9cac86

Browse files
authored
Update deps (#85)
1 parent 0f0a3f0 commit e9cac86

11 files changed

Lines changed: 3963 additions & 3449 deletions

File tree

.dprint.jsonc

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,9 @@
3030
"json": {
3131
"trailingCommas": "never"
3232
},
33-
"prettier": {
34-
"associations": [
35-
"**/*.{yaml,yml}"
36-
],
37-
"yml.tabWidth": 2,
38-
"yaml.tabWidth": 2,
39-
"yml.singleQuote": true,
40-
"yaml.singleQuote": true
33+
"yaml": {
34+
"indentWidth": 2,
35+
"quotes": "preferSingle"
4136
},
4237
"excludes": [
4338
"**/node_modules",
@@ -48,9 +43,9 @@
4843
"SECURITY.md"
4944
],
5045
"plugins": [
51-
"https://plugins.dprint.dev/typescript-0.91.1.wasm",
52-
"https://plugins.dprint.dev/prettier-0.40.0.json@68c668863ec834d4be0f6f5ccaab415df75336a992aceb7eeeb14fdf096a9e9c",
46+
"https://plugins.dprint.dev/typescript-0.93.0.wasm",
5347
"https://plugins.dprint.dev/json-0.19.3.wasm",
54-
"https://plugins.dprint.dev/markdown-0.17.1.wasm"
48+
"https://plugins.dprint.dev/markdown-0.17.8.wasm",
49+
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm"
5550
]
5651
}

.eslintrc.json

Lines changed: 0 additions & 134 deletions
This file was deleted.

.vscode/settings.template.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"editor.codeActionsOnSave": {
33
"source.fixAll.eslint": true
44
},
5-
"editor.defaultFormatter": "dprint.dprint",
6-
"editor.formatOnSave": true
5+
"[typescript][typescriptreact][javascript][javascriptreact][json][jsonc][yaml][github-actions-workflow][markdown]": {
6+
"editor.defaultFormatter": "dprint.dprint",
7+
"editor.formatOnSave": true
8+
}
79
}

build/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ jobs:
423423
set -exo pipefail
424424
for KIND in $(TSPERF_PROCESS_KINDS); do
425425
echo "Uploading ${KIND} benchmarks"
426-
case ${KIND} in
426+
case ${KIND} in
427427
tsc)
428428
NAME="linux"
429429
;;

eslint.config.mjs

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
// @ts-check
2+
import eslint from "@eslint/js";
3+
import simpleImportSort from "eslint-plugin-simple-import-sort";
4+
import eslintPluginUnicorn from "eslint-plugin-unicorn";
5+
import globals from "globals";
6+
import tseslint from "typescript-eslint";
7+
8+
export default tseslint.config(
9+
{
10+
files: ["**/*.{ts,tsx,cts,mts,js,cjs,mjs}"],
11+
},
12+
{
13+
ignores: [
14+
"**/node_modules/**",
15+
"**/dist/**",
16+
"vitest.workspace.mjs",
17+
"cases/**",
18+
],
19+
},
20+
eslint.configs.recommended,
21+
...tseslint.configs.recommended,
22+
...tseslint.configs.stylistic,
23+
{
24+
plugins: {
25+
"simple-import-sort": simpleImportSort,
26+
"unicorn": eslintPluginUnicorn,
27+
},
28+
rules: {
29+
"simple-import-sort/imports": "error",
30+
"simple-import-sort/exports": "error",
31+
},
32+
},
33+
// regexpPlugin.configs["flat/recommended"],
34+
{
35+
languageOptions: {
36+
parserOptions: {
37+
warnOnUnsupportedTypeScriptVersion: false,
38+
},
39+
globals: globals.node,
40+
},
41+
},
42+
{
43+
rules: {
44+
// eslint
45+
// "dot-notation": "error",
46+
"eqeqeq": "error",
47+
"no-caller": "error",
48+
"no-constant-condition": ["error", { checkLoops: false }],
49+
"no-eval": "error",
50+
"no-extra-bind": "error",
51+
"no-new-func": "error",
52+
"no-new-wrappers": "error",
53+
// "no-return-await": "error",
54+
// "no-template-curly-in-string": "error",
55+
"no-throw-literal": "error",
56+
"no-undef-init": "error",
57+
"no-var": "error",
58+
"object-shorthand": "error",
59+
"prefer-const": "error",
60+
"prefer-object-spread": "error",
61+
"unicode-bom": ["error", "never"],
62+
63+
// "no-restricted-syntax": [
64+
// "error",
65+
// {
66+
// selector: "Literal[raw=null]",
67+
// message: "Avoid using null; use undefined instead.",
68+
// },
69+
// {
70+
// selector: "TSNullKeyword",
71+
// message: "Avoid using null; use undefined instead.",
72+
// },
73+
// ],
74+
75+
// Enabled in eslint:recommended, but not applicable here
76+
"no-extra-boolean-cast": "off",
77+
"no-case-declarations": "off",
78+
"no-cond-assign": "off",
79+
"no-control-regex": "off",
80+
"no-inner-declarations": "off",
81+
"no-empty": "off",
82+
83+
// @typescript-eslint/eslint-plugin
84+
// "@typescript-eslint/unified-signatures": "error",
85+
"no-unused-expressions": "off",
86+
// "@typescript-eslint/no-unused-expressions": ["error", { allowTernary: true }],
87+
"@typescript-eslint/no-unused-expressions": "off",
88+
89+
// Rules enabled in typescript-eslint configs that are not applicable here
90+
"@typescript-eslint/ban-ts-comment": "off",
91+
"@typescript-eslint/class-literal-property-style": "off",
92+
"@typescript-eslint/consistent-indexed-object-style": "off",
93+
"@typescript-eslint/consistent-generic-constructors": "off",
94+
"@typescript-eslint/no-duplicate-enum-values": "off",
95+
"@typescript-eslint/no-empty-function": "off",
96+
"@typescript-eslint/no-namespace": "off",
97+
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
98+
"@typescript-eslint/no-var-requires": "off",
99+
"@typescript-eslint/no-empty-interface": "off",
100+
"@typescript-eslint/no-explicit-any": "off",
101+
"@typescript-eslint/no-empty-object-type": "off", // {} is a totally useful and valid type.
102+
"@typescript-eslint/no-require-imports": "off",
103+
// "@typescript-eslint/no-unused-vars": [
104+
// "warn",
105+
// {
106+
// // Ignore: (solely underscores | starting with exactly one underscore)
107+
// argsIgnorePattern: "^(_+$|_[^_])",
108+
// varsIgnorePattern: "^(_+$|_[^_])",
109+
// // Not setting an ignore pattern for caught errors; those can always be safely removed.
110+
// },
111+
// ],
112+
"@typescript-eslint/no-unused-vars": "off",
113+
"@typescript-eslint/no-inferrable-types": "off",
114+
115+
// Pending https://github.com/typescript-eslint/typescript-eslint/issues/4820
116+
"@typescript-eslint/prefer-optional-chain": "off",
117+
118+
// eslint-plugin-unicorn
119+
"unicorn/prefer-node-protocol": "error",
120+
},
121+
},
122+
{
123+
files: ["**/*.mjs", "**/*.mts"],
124+
rules: {
125+
// These globals don't exist outside of CJS files.
126+
"no-restricted-globals": [
127+
"error",
128+
{ name: "__filename" },
129+
{ name: "__dirname" },
130+
{ name: "require" },
131+
{ name: "module" },
132+
{ name: "exports" },
133+
],
134+
},
135+
},
136+
);

package.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,20 @@
88
"node": ">= 18.0.0"
99
},
1010
"devDependencies": {
11-
"@types/node": "^18.19.36",
12-
"@typescript-eslint/eslint-plugin": "^7.13.1",
13-
"@typescript-eslint/parser": "^7.13.1",
14-
"dprint": "^0.46.3",
15-
"eslint": "^8.57.0",
16-
"eslint-plugin-simple-import-sort": "^12.1.0",
17-
"eslint-plugin-unicorn": "^54.0.0",
18-
"typescript": "^5.4.5",
19-
"vitest": "^1.6.0"
11+
"@eslint/js": "^9.12.0",
12+
"@types/node": "^18.19.55",
13+
"@typescript-eslint/eslint-plugin": "^8.8.1",
14+
"@typescript-eslint/parser": "^8.8.1",
15+
"dprint": "^0.47.2",
16+
"eslint": "^9.12.0",
17+
"eslint-plugin-simple-import-sort": "^12.1.1",
18+
"eslint-plugin-unicorn": "^56.0.0",
19+
"globals": "^15.11.0",
20+
"typescript": "^5.6.3",
21+
"typescript-eslint": "^8.8.1",
22+
"vitest": "^2.1.2"
2023
},
21-
"packageManager": "pnpm@8.15.5",
24+
"packageManager": "pnpm@9.12.1+sha512.e5a7e52a4183a02d5931057f7a0dbff9d5e9ce3161e33fa68ae392125b79282a8a8a470a51dfc8a0ed86221442eb2fb57019b0990ed24fab519bf0e1bc5ccfc4",
2225
"scripts": {
2326
"build": "pnpm run --filter './scripts' --filter './ts-perf' build",
2427
"test": "vitest"

0 commit comments

Comments
 (0)