Skip to content

Commit

Permalink
🔨 chore(deps): bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
pauliesnug committed Jun 28, 2024
1 parent c3979b9 commit 72214f5
Show file tree
Hide file tree
Showing 11 changed files with 422 additions and 444 deletions.
2 changes: 0 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
"**/.ruby-lsp": true,
"pnpm-lock.yaml": true
},
// Enable the flat config support
"eslint.experimental.useFlatConfig": true,
// Disable the default formatter
"prettier.enable": false,
"editor.formatOnSave": false,
Expand Down
4 changes: 4 additions & 0 deletions eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ export default petal(
'petal/indent-unindent': 'error',
},
},
).removeRules(
'ts/no-unsafe-member-access',
'ts/no-unsafe-argument',
'ts/no-unsafe-assignment',
);
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"version": "3.8.1",
"private": true,
"packageManager": "pnpm@9.3.0",
"packageManager": "pnpm@9.4.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down Expand Up @@ -35,8 +35,8 @@
"@types/node": "^20.14.9",
"bumpp": "^9.4.1",
"esbuild": "^0.21.5",
"eslint": "npm:eslint-ts-patch@9.4.0-0",
"eslint-ts-patch": "9.4.0-0",
"eslint": "npm:eslint-ts-patch@9.5.0-0",
"eslint-ts-patch": "9.5.0-0",
"rimraf": "^5.0.7",
"rollup": "^4.18.0",
"taze": "^0.13.9",
Expand Down
4 changes: 0 additions & 4 deletions packages/eslint-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ install the [vscode eslint extension][vscode] and add the following settings to

```jsonc
{
// enable the eslint flat config support
// (remove this if your ESLint extension above v3.0.5)
"eslint.experimental.useFlatConfig": true,

// disable the default formatter, use eslint
"prettier.enable": false,
"editor.formatOnSave": false,
Expand Down
10 changes: 5 additions & 5 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,16 @@
"yaml-eslint-parser": "^1.2.3"
},
"devDependencies": {
"@eslint-react/eslint-plugin": "^1.5.17",
"@eslint/config-inspector": "^0.5.0",
"@eslint-react/eslint-plugin": "^1.5.18",
"@eslint/config-inspector": "^0.5.1",
"@prettier/plugin-xml": "^3.4.1",
"@stylistic/eslint-plugin-migrate": "^2.3.0",
"@types/eslint": "^8.56.10",
"@types/fs-extra": "^11.0.4",
"@types/prompts": "^2.4.9",
"@unocss/eslint-plugin": "^0.61.0",
"astro-eslint-parser": "^1.0.2",
"eslint": "npm:eslint-ts-patch@9.4.0-0",
"eslint": "npm:eslint-ts-patch@9.5.0-0",
"eslint-plugin-astro": "^1.2.2",
"eslint-plugin-format": "^0.1.1",
"eslint-plugin-react-hooks": "^4.6.2",
Expand All @@ -168,7 +168,7 @@
"eslint-plugin-vue": "^9.26.0",
"eslint-plugin-vuejs-accessibility": "^2.3.1",
"eslint-processor-vue-blocks": "^0.1.2",
"eslint-ts-patch": "9.4.0-0",
"eslint-ts-patch": "9.5.0-0",
"eslint-typegen": "^0.2.4",
"execa": "^9.3.0",
"fast-glob": "^3.3.2",
Expand All @@ -178,7 +178,7 @@
"svelte": "^4.2.18",
"svelte-eslint-parser": "^0.39.2",
"typescript": "^5.5.2",
"vue": "^3.4.30",
"vue": "^3.4.31",
"vue-eslint-parser": "^9.4.3"
},
"publishConfig": {
Expand Down
10 changes: 4 additions & 6 deletions packages/eslint-config/src/configs/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ export async function typescript(
'ts/no-unsafe-call': 'error',
'ts/no-unsafe-member-access': 'error',
'ts/no-unsafe-return': 'error',
'ts/promise-function-async': 'error',
'ts/restrict-plus-operands': 'error',
'ts/restrict-template-expressions': 'error',
'ts/return-await': 'error',
'ts/strict-boolean-expressions': 'error',
'ts/return-await': ['error', 'in-try-catch'],
'ts/strict-boolean-expressions': ['error', { allowNullableBoolean: true, allowNullableObject: true }],
'ts/switch-exhaustiveness-check': 'error',
'ts/unbound-method': 'error',
};
Expand Down Expand Up @@ -135,10 +136,7 @@ export async function typescript(
files: filesTypeAware,
ignores: ignoresTypeAware,
name: 'petal/typescript/rules-type-aware',
rules: {
...tsconfigPath ? typeAwareRules : {},
...overrides,
},
rules: typeAwareRules,
}]
: [],
{
Expand Down
2 changes: 2 additions & 0 deletions packages/eslint-config/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ export async function interopDefault<T>(m: Awaitable<T>): Promise<T extends { de
export async function ensurePackages(packages: (string | undefined)[]) {
if (process.env.CI || process.stdout.isTTY === false)
return;

const nonExistingPackages = packages.filter(i => i && !isPackageExists(i)) as string[];

if (nonExistingPackages.length === 0)
return;

Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/test/fixtures.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default petal(

if (content === source) {
if (fs.existsSync(outputPath))
fs.remove(outputPath);
await fs.remove(outputPath);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@types/eslint": "^8.56.10",
"@typescript-eslint/typescript-estree": "^7.14.1",
"@typescript-eslint/utils": "^7.14.1",
"eslint": "9.4.0",
"eslint": "9.5.0",
"eslint-vitest-rule-tester": "^0.3.2",
"jsonc-eslint-parser": "^2.4.0",
"typescript": "^5.5.2"
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import noTsExportEqual from './rules/no-ts-export-equal';
import consistentListNewline from './rules/consistent-list-newline';
import indentUnindent from './rules/indent-unindent';
import onlyExportComponents from './rules/only-export-components';
import * as utils from '@typescript-eslint/utils';
import type { RuleModule } from './utils';

const plugin = {
meta: {
Expand All @@ -31,7 +31,7 @@ const plugin = {
'top-level-function': topLevelFunction,
},
} satisfies Omit<ESLint.Plugin, 'rules'> & {
rules?: Record<string, utils.TSESLint.AnyRuleModule>
rules?: Record<string, RuleModule<readonly unknown[], string>>;
};

export default plugin;
Expand Down
Loading

0 comments on commit 72214f5

Please sign in to comment.