snort/packages/app/.eslintrc.cjs

42 lines
1.1 KiB
JavaScript
Raw Normal View History

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"],
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": "error",
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-08 09:24:14 +00:00
"@typescript-eslint/no-unused-vars": "error",
2024-01-11 21:33:24 +00:00
"max-lines": ["warn", { max: 300, skipBlankLines: true, skipComments: true }],
},
2024-01-11 21:33:24 +00:00
overrides: [
{
files: ["*.tsx"],
rules: {
"max-lines": ["warn", { max: 200, skipBlankLines: true, skipComments: true }],
},
},
],
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
};