eslint major version bump
This commit is contained in:
parent
258fb7cd0e
commit
3ddf8f6986
22 changed files with 1488 additions and 1048 deletions
|
@ -1,7 +0,0 @@
|
|||
module.exports = {
|
||||
root: true,
|
||||
extends: ["next/core-web-vitals", "@pompydev/eslint-config"],
|
||||
rules: {
|
||||
"react-hooks/exhaustive-deps": "off",
|
||||
},
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
/** @type {import("prettier").Options} */
|
||||
module.exports = {
|
||||
...require("@pompydev/prettier-config"),
|
||||
...import("@pompydev/prettier-config"),
|
||||
plugins: ["prettier-plugin-tailwindcss"],
|
||||
}
|
||||
|
|
23
apps/blog/eslint.config.js
Normal file
23
apps/blog/eslint.config.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
import { FlatCompat } from "@eslint/eslintrc"
|
||||
import pompydevEslintConfig from "@pompydev/eslint-config"
|
||||
import { globalIgnores } from "eslint/config"
|
||||
|
||||
const compat = new FlatCompat({
|
||||
baseDirectory: import.meta.dirname,
|
||||
})
|
||||
|
||||
export default [
|
||||
globalIgnores(["**/.next"]),
|
||||
|
||||
// https://nextjs.org/docs/app/api-reference/config/eslint
|
||||
...compat.config({
|
||||
extends: ["next/core-web-vitals", "next/typescript"],
|
||||
settings: { next: { rootDir: "apps/blog/" } },
|
||||
}),
|
||||
{
|
||||
rules: {
|
||||
"react-hooks/exhaustive-deps": "off",
|
||||
},
|
||||
},
|
||||
...pompydevEslintConfig,
|
||||
]
|
|
@ -5,7 +5,7 @@
|
|||
"scripts": {
|
||||
"dev": "open-cli http://localhost:3000 && pnpm dev:headless",
|
||||
"dev:headless": "next dev",
|
||||
"lint": "oxlint && next lint",
|
||||
"lint": "oxlint && eslint .",
|
||||
"build": "next build",
|
||||
"postbuild": "next-sitemap && cp ../../packages/content/dist/rss.xml public/rss.xml",
|
||||
"test:e2e": "playwright test",
|
||||
|
@ -30,11 +30,8 @@
|
|||
"@types/react": "^18.3.1",
|
||||
"@types/react-collapse": "^5.0.4",
|
||||
"@types/react-dom": "^18.3.0",
|
||||
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
||||
"@typescript-eslint/parser": "^6.15.0",
|
||||
"autoprefixer": "^10.4.16",
|
||||
"eslint-config-next": "^14.2.3",
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
"eslint-config-next": "15.2.3",
|
||||
"highlight.js": "^11.9.0",
|
||||
"katex": "^0.16.10",
|
||||
"next": "^14.2.3",
|
||||
|
@ -47,7 +44,6 @@
|
|||
"react-collapse": "^5.1.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"tailwindcss": "^3.4.0",
|
||||
"typescript": "^5.3.3",
|
||||
"zustand": "^4.5.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/** @type {import("prettier").Options} */
|
||||
module.exports = {
|
||||
...require("@pompydev/prettier-config"),
|
||||
export default {
|
||||
...import("@pompydev/prettier-config"),
|
||||
plugins: ["prettier-plugin-tailwindcss"],
|
||||
}
|
4
apps/rank/eslint.config.js
Normal file
4
apps/rank/eslint.config.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
import pompydevEslintConfig from "@pompydev/eslint-config"
|
||||
import { globalIgnores } from "eslint/config"
|
||||
|
||||
export default [globalIgnores(["**/.nuxt/"]), ...pompydevEslintConfig]
|
|
@ -1,13 +0,0 @@
|
|||
.DS_Store
|
||||
node_modules
|
||||
/build
|
||||
/.svelte-kit
|
||||
/package
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
|
||||
# Ignore files for PNPM, NPM and YARN
|
||||
pnpm-lock.yaml
|
||||
package-lock.json
|
||||
yarn.lock
|
|
@ -1,20 +0,0 @@
|
|||
{
|
||||
"root": true,
|
||||
"extends": ["@pompydev/eslint-config", "plugin:svelte/recommended"],
|
||||
"parserOptions": {
|
||||
"sourceType": "module",
|
||||
"ecmaVersion": 2020,
|
||||
"extraFileExtensions": [".svelte"]
|
||||
},
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2017": true,
|
||||
"node": true
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.svelte"],
|
||||
"parser": "svelte-eslint-parser"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
const sharedConfig = require("@pompydev/prettier-config")
|
||||
const sharedConfig = import("@pompydev/prettier-config")
|
||||
|
||||
/** @type {import("prettier").Options} */
|
||||
module.exports = {
|
||||
|
|
32
apps/www/eslint.config.js
Normal file
32
apps/www/eslint.config.js
Normal file
|
@ -0,0 +1,32 @@
|
|||
import pompydevEslintConfig from "@pompydev/eslint-config"
|
||||
import { globalIgnores } from "eslint/config"
|
||||
import svelte from "eslint-plugin-svelte"
|
||||
import globals from "globals"
|
||||
import tseslint from "typescript-eslint"
|
||||
|
||||
import svelteConfig from "./svelte.config.js"
|
||||
|
||||
export default [
|
||||
globalIgnores(["**/.svelte-kit/", "vite.config.ts.*"]),
|
||||
...pompydevEslintConfig,
|
||||
...svelte.configs.recommended,
|
||||
{
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.browser,
|
||||
...globals.node,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ["**/*.svelte", "**/*.svelte.js", "**/*.svelte.ts"],
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
projectService: true,
|
||||
extraFileExtensions: [".svelte"],
|
||||
parser: tseslint.parser,
|
||||
svelteConfig,
|
||||
},
|
||||
},
|
||||
},
|
||||
]
|
|
@ -13,24 +13,21 @@
|
|||
"i_am_sure_i_want_to_nuke_gitignored_files": "rm -rf .turbo .svelte-kit test-results build node_modules vite.config.ts.timestamp-*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@fontsource/noto-sans-kr": "^5.0.5",
|
||||
"@inqling/svelte-icons": "^3.5.0",
|
||||
"@playwright/test": "1.50.1",
|
||||
"@pompydev/eslint-config": "workspace:*",
|
||||
"@pompydev/playwright-config": "workspace:*",
|
||||
"@pompydev/prettier-config": "workspace:*",
|
||||
"@pompydev/tailwind-config": "workspace:*",
|
||||
"@fontsource/noto-sans-kr": "^5.0.5",
|
||||
"@inqling/svelte-icons": "^3.5.0",
|
||||
"@playwright/test": "1.50.1",
|
||||
"@sveltejs/adapter-static": "^3.0.5",
|
||||
"@sveltejs/kit": "^2.5.7",
|
||||
"@sveltejs/vite-plugin-svelte": "^3.1.0",
|
||||
"@types/jest": "^29.5.12",
|
||||
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
||||
"@typescript-eslint/parser": "^6.15.0",
|
||||
"autoprefixer": "^10.4.16",
|
||||
"dayjs": "^1.11.10",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"eslint-plugin-simple-import-sort": "^10.0.0",
|
||||
"eslint-plugin-svelte": "^2.38.0",
|
||||
"eslint-plugin-svelte": "3.3.1",
|
||||
"globals": "16.0.0",
|
||||
"jest": "^29.7.0",
|
||||
"postcss": "^8.4.32",
|
||||
"postcss-load-config": "^4.0.1",
|
||||
|
@ -42,7 +39,6 @@
|
|||
"tailwindcss": "^3.4.0",
|
||||
"ts-jest": "^29.1.2",
|
||||
"tslib": "^2.6.2",
|
||||
"typescript": "^5.3.3",
|
||||
"vite": "^5.2.10"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue