mirror of
https://github.com/hanzoui/react-extension-template.git
synced 2026-10-30 20:38:29 +00:00
35 lines
810 B
JSON
35 lines
810 B
JSON
{
|
|
"root": true,
|
|
"env": {
|
|
"browser": true,
|
|
"es2020": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:react-hooks/recommended",
|
|
"plugin:react/jsx-runtime",
|
|
"plugin:prettier/recommended"
|
|
],
|
|
"ignorePatterns": ["dist", ".eslintrc.json"],
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": ["react-refresh", "unused-imports"],
|
|
"rules": {
|
|
"react-refresh/only-export-components": [
|
|
"warn",
|
|
{ "allowConstantExport": true }
|
|
],
|
|
"unused-imports/no-unused-imports": "error",
|
|
"@typescript-eslint/no-explicit-any": "off"
|
|
},
|
|
"settings": {
|
|
"react": {
|
|
"version": "detect"
|
|
}
|
|
}
|
|
} |