2023-02-07 19:47:57 +00:00
|
|
|
module.exports = {
|
2024-01-04 09:54:58 +00:00
|
|
|
extends: [
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"plugin:react/recommended",
|
|
|
|
"plugin:react-hooks/recommended",
|
|
|
|
],
|
2023-02-07 19:47:57 +00:00
|
|
|
parser: "@typescript-eslint/parser",
|
2024-01-04 17:01:18 +00:00
|
|
|
plugins: ["@typescript-eslint", "formatjs", "react-refresh", "simple-import-sort"],
|
2023-11-20 11:35:51 +00:00
|
|
|
rules: {
|
|
|
|
"formatjs/enforce-id": [
|
|
|
|
"error",
|
|
|
|
{
|
2023-11-20 19:16:47 +00:00
|
|
|
idInterpolationPattern: "[sha512:contenthash:base64:6]",
|
|
|
|
},
|
|
|
|
],
|
2024-01-04 09:38:19 +00:00
|
|
|
"react/react-in-jsx-scope": "off",
|
2024-01-04 09:54:58 +00:00
|
|
|
"react-hooks/exhaustive-deps": "off",
|
|
|
|
"react-refresh/only-export-components": "warn",
|
2024-01-04 17:01:18 +00:00
|
|
|
"simple-import-sort/imports": "error",
|
2024-01-04 17:04:09 +00:00
|
|
|
"simple-import-sort/exports": "error",
|
2024-01-05 20:16:09 +00:00
|
|
|
"@typescript-eslint/no-unused-vars": "warn",
|
2023-11-20 11:35:51 +00:00
|
|
|
},
|
2023-02-07 19:47:57 +00:00
|
|
|
root: true,
|
2023-05-15 17:38:26 +00:00
|
|
|
ignorePatterns: ["build/", "*.test.ts", "*.js"],
|
2023-02-07 19:47:57 +00:00
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
worker: true,
|
|
|
|
commonjs: true,
|
2023-05-15 17:38:26 +00:00
|
|
|
node: false,
|
2023-08-26 21:55:21 +00:00
|
|
|
},
|
2023-02-07 19:47:57 +00:00
|
|
|
};
|