feature/forgejo-actions #13
3 changed files with 1044 additions and 618 deletions
|
|
@ -1,16 +1,16 @@
|
||||||
import { dirname } from "path";
|
import { defineConfig, globalIgnores } from 'eslint/config'
|
||||||
import { fileURLToPath } from "url";
|
import nextVitals from 'eslint-config-next/core-web-vitals'
|
||||||
import { FlatCompat } from "@eslint/eslintrc";
|
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
const eslintConfig = defineConfig([
|
||||||
const __dirname = dirname(__filename);
|
...nextVitals,
|
||||||
|
// Override default ignores of eslint-config-next.
|
||||||
const compat = new FlatCompat({
|
globalIgnores([
|
||||||
baseDirectory: __dirname,
|
// Default ignores of eslint-config-next:
|
||||||
});
|
'.next/**',
|
||||||
|
'out/**',
|
||||||
const eslintConfig = [
|
'build/**',
|
||||||
...compat.extends("next/core-web-vitals", "next/typescript"),
|
'next-env.d.ts',
|
||||||
];
|
]),
|
||||||
|
])
|
||||||
|
|
||||||
export default eslintConfig;
|
export default eslintConfig;
|
||||||
|
|
|
||||||
1612
package-lock.json
generated
1612
package-lock.json
generated
File diff suppressed because it is too large
Load diff
24
package.json
24
package.json
|
|
@ -6,21 +6,21 @@
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint"
|
"lint": "eslint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "^16.1.4",
|
"next": "16.1.6",
|
||||||
"react": "^19.2.3",
|
"react": "19.2.4",
|
||||||
"react-dom": "^19.2.3"
|
"react-dom": "19.2.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/eslintrc": "^3",
|
"@eslint/eslintrc": "3.3.5",
|
||||||
"@types/node": "^20",
|
"@types/node": "25.3.5",
|
||||||
"@types/react": "^19",
|
"@types/react": "19.2.14",
|
||||||
"@types/react-dom": "^19",
|
"@types/react-dom": "19.2.3",
|
||||||
"eslint": "^9",
|
"eslint": "9.39.4",
|
||||||
"eslint-config-next": "^16.1.4",
|
"eslint-config-next": "16.1.6",
|
||||||
"sass": "^1.85.1",
|
"sass": "1.97.3",
|
||||||
"typescript": "^5"
|
"typescript": "5.9.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue