mirror of
https://github.com/ente-io/ente.git
synced 2025-07-13 18:38:43 +00:00
22 lines
688 B
JavaScript
22 lines
688 B
JavaScript
/* eslint-env node */
|
|
module.exports = {
|
|
extends: [
|
|
"./eslintrc-base.js",
|
|
"plugin:react/recommended",
|
|
"plugin:react-hooks/recommended",
|
|
],
|
|
plugins: ["react-refresh"],
|
|
settings: { react: { version: "18.2" } },
|
|
rules: {
|
|
/* The rule is misguided - only the opener should be omitted, not the
|
|
referrer. */
|
|
"react/jsx-no-target-blank": ["warn", { allowReferrer: true }],
|
|
/* Otherwise we need to do unnecessary boilerplating when using memo. */
|
|
"react/display-name": "off",
|
|
"react-refresh/only-export-components": [
|
|
"warn",
|
|
{ allowConstantExport: true },
|
|
],
|
|
},
|
|
};
|