fix(web): adapt build tooling
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -3,6 +3,17 @@ import nextPlugin from "@next/eslint-plugin-next"
|
||||
import prettier from "eslint-config-prettier/flat"
|
||||
import tseslint from "typescript-eslint"
|
||||
|
||||
const nextCoreWebVitalsConfig = {
|
||||
name: "next/core-web-vitals",
|
||||
plugins: {
|
||||
"@next/next": nextPlugin,
|
||||
},
|
||||
rules: {
|
||||
...nextPlugin.configs.recommended.rules,
|
||||
...nextPlugin.configs["core-web-vitals"].rules,
|
||||
},
|
||||
}
|
||||
|
||||
export default [
|
||||
{
|
||||
ignores: [".next/**", "out/**", "build/**", "next-env.d.ts"],
|
||||
@@ -18,7 +29,7 @@ export default [
|
||||
},
|
||||
},
|
||||
},
|
||||
nextPlugin.flatConfig.coreWebVitals,
|
||||
nextCoreWebVitalsConfig,
|
||||
...tseslint.configs.recommended,
|
||||
prettier,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user