mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 13:58:08 +00:00
28 lines
721 B
JavaScript
28 lines
721 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: { browser: true, es2020: true },
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:react/jsx-runtime",
|
|
"plugin:react-hooks/recommended",
|
|
"plugin:tailwindcss/recommended",
|
|
],
|
|
ignorePatterns: ["dist", ".eslintrc.cjs"],
|
|
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
|
|
settings: { react: { version: "18.2" } },
|
|
plugins: ["react-refresh"],
|
|
rules: {
|
|
"react/jsx-no-target-blank": "off",
|
|
"react-refresh/only-export-components": [
|
|
"warn",
|
|
{ allowConstantExport: true },
|
|
],
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ["*.ts", "*.tsx", "*.js"],
|
|
parser: "@typescript-eslint/parser",
|
|
},
|
|
],
|
|
};
|