Archived
42 lines
967 B
JavaScript
42 lines
967 B
JavaScript
import { defineConfig, globalIgnores } from "eslint/config";
|
|
import eslint from "@eslint/js";
|
|
import jsxA11y from "eslint-plugin-jsx-a11y";
|
|
import react from "eslint-plugin-react";
|
|
import reactHooks from "eslint-plugin-react-hooks";
|
|
import globals from "globals";
|
|
import tseslint from "typescript-eslint";
|
|
|
|
const eslintConfig = defineConfig([
|
|
globalIgnores([
|
|
".next/**",
|
|
".vinext/**",
|
|
".wrangler/**",
|
|
".openai/**",
|
|
"dist/**",
|
|
"out/**",
|
|
"web-dist/**",
|
|
]),
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
react.configs.flat.recommended,
|
|
react.configs.flat["jsx-runtime"],
|
|
reactHooks.configs.flat["recommended-latest"],
|
|
jsxA11y.flatConfigs.recommended,
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
...globals.serviceworker,
|
|
},
|
|
},
|
|
settings: {
|
|
react: {
|
|
version: "detect",
|
|
},
|
|
},
|
|
},
|
|
]);
|
|
|
|
export default eslintConfig;
|