Skip to content

Commit

Permalink
✨ feature(eslint-config): update to typescript-eslint@v8 stable
Browse files Browse the repository at this point in the history
  • Loading branch information
pauliesnug committed Aug 1, 2024
1 parent 0ce80e0 commit 5742717
Show file tree
Hide file tree
Showing 10 changed files with 774 additions and 918 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@
"devDependencies": {
"@flowr/eslint-config": "workspace:^",
"@flowr/tsconfig": "workspace:^",
"@types/node": "^20.14.12",
"@types/node": "^22.0.2",
"bumpp": "^9.4.1",
"esbuild": "^0.23.0",
"eslint": "npm:eslint-ts-patch@9.5.0-0",
"eslint-ts-patch": "9.5.0-0",
"eslint": "npm:eslint-ts-patch@9.8.0-1",
"eslint-ts-patch": "9.8.0-1",
"tsup": "^8.2.3",
"tsx": "~4.16.2",
"tsx": "~4.16.4",
"typescript": "^5.5.4",
"unbuild": "^2.0.0",
"vite": "^5.3.5",
"vitest": "^2.0.4"
"vitest": "^2.0.5"
},
"resolutions": {
"tsx": "~4.16.2"
"tsx": "~4.16.3"
}
}
6 changes: 4 additions & 2 deletions packages/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"./package.json": "./package.json"
},
"main": "./dist/index.cjs",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
Expand Down
3 changes: 2 additions & 1 deletion packages/create-petal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
".": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
}
},
"./package.json": "./package.json"
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
Expand Down
24 changes: 23 additions & 1 deletion packages/eslint-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,29 @@ local lspconfig = require('lspconfig')
-- enable eslint for all supported languages
lspconfig.eslint.setup({
filetypes = {
"",
"javascript",
"javascriptreact",
"javascript.jsx",
"typescript",
"typescriptreact",
"typescript.tsx",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml",
"toml",
"xml",
"gql",
"graphql",
"astro",
"svelte",
"css",
"less",
"scss",
"pcss",
"postcss"
},
settings = {
-- silence the stylistic rules in neovim, but still autofix them
Expand Down
10 changes: 10 additions & 0 deletions packages/eslint-config/fixtures/input/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Bundler",
"strict": true,
"skipDefaultLibCheck": true,
"skipLibCheck": true
}
}
21 changes: 11 additions & 10 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"./package.json": "./package.json"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down Expand Up @@ -130,14 +131,14 @@
"@antfu/install-pkg": "^0.3.3",
"@clack/prompts": "^0.7.0",
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
"@stylistic/eslint-plugin": "2.6.0-beta.1",
"@typescript-eslint/eslint-plugin": "8.0.0-alpha.41",
"@typescript-eslint/parser": "8.0.0-alpha.41",
"@stylistic/eslint-plugin": "^2.6.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"eslint-flat-config-utils": "^0.3.0",
"eslint-merge-processors": "^0.1.0",
"eslint-plugin-command": "^0.2.3",
"eslint-plugin-import-x": "^3.1.0",
"eslint-plugin-jsdoc": "^48.8.3",
"eslint-plugin-jsdoc": "^48.10.2",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-markdown": "^5.1.0",
"eslint-plugin-n": "^17.10.1",
Expand All @@ -158,16 +159,16 @@
"yaml-eslint-parser": "^1.2.3"
},
"devDependencies": {
"@eslint-react/eslint-plugin": "^1.6.0",
"@eslint-react/eslint-plugin": "^1.7.1",
"@eslint/config-inspector": "^0.5.2",
"@prettier/plugin-xml": "^3.4.1",
"@tanstack/eslint-plugin-query": "^5.51.15",
"@types/eslint": "^9.6.0",
"@types/fs-extra": "^11.0.4",
"@types/prompts": "^2.4.9",
"@unocss/eslint-plugin": "^0.61.6",
"@unocss/eslint-plugin": "^0.61.9",
"astro-eslint-parser": "^1.0.2",
"eslint": "npm:eslint-ts-patch@9.5.0-0",
"eslint": "npm:eslint-ts-patch@9.8.0-1",
"eslint-plugin-astro": "^1.2.3",
"eslint-plugin-format": "^0.1.2",
"eslint-plugin-jsx-a11y": "^6.9.0",
Expand All @@ -177,7 +178,7 @@
"eslint-plugin-vue": "^9.27.0",
"eslint-plugin-vuejs-accessibility": "^2.4.1",
"eslint-processor-vue-blocks": "^0.1.2",
"eslint-ts-patch": "9.5.0-0",
"eslint-ts-patch": "9.8.0-1",
"eslint-typegen": "^0.3.0",
"execa": "^9.3.0",
"fast-glob": "^3.3.2",
Expand All @@ -187,7 +188,7 @@
"svelte": "^4.2.18",
"svelte-eslint-parser": "^0.41.0",
"typescript": "^5.5.4",
"vue": "^3.4.34",
"vue": "^3.4.35",
"vue-eslint-parser": "^9.4.3"
},
"publishConfig": {
Expand Down
5 changes: 3 additions & 2 deletions packages/eslint-config/test/fixtures.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ runWithConfig`ts-override` (
runWithConfig`ts-strict` (
{
typescript: {
tsconfigPath: '../../../../tsconfig.json',
tsconfigPath: './tsconfig.json',
},
},
{
Expand Down Expand Up @@ -115,6 +115,7 @@ export default defineConfig(
const files = await fg('**/*', {
ignore: [
'node_modules',
'tsconfig.json',
'eslint.config.js',
'eslint.config.ts',
],
Expand All @@ -134,6 +135,6 @@ export default defineConfig(

await expect.soft(content).toMatchFileSnapshot(outputPath);
}));
}, 70_000);
}, 80_000);
};
}
7 changes: 4 additions & 3 deletions packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"./package.json": "./package.json"
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
Expand Down Expand Up @@ -56,8 +57,8 @@
},
"devDependencies": {
"@types/eslint": "^9.6.0",
"@typescript-eslint/utils": "8.0.0-alpha.41",
"eslint": "9.5.0",
"@typescript-eslint/utils": "^8.0.0",
"eslint": "9.8.0",
"eslint-vitest-rule-tester": "^0.3.3",
"jsonc-eslint-parser": "^2.4.0"
},
Expand Down
4 changes: 3 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"./package.json": "./package.json"
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
Expand Down
Loading

0 comments on commit 5742717

Please sign in to comment.