2017-01-27 02:20:22 -09:00
|
|
|
{
|
2019-08-26 03:17:39 -08:00
|
|
|
"root": true,
|
2017-01-27 02:20:22 -09:00
|
|
|
"env": {
|
|
|
|
|
"browser": true,
|
2023-02-27 07:42:41 -09:00
|
|
|
"es2022": true
|
2017-01-27 02:20:22 -09:00
|
|
|
},
|
2022-02-17 00:06:57 -09:00
|
|
|
"extends": [
|
|
|
|
|
"eslint:recommended", "standard", "standard-jsx", "standard-react",
|
|
|
|
|
"plugin:jsx-a11y/recommended"
|
|
|
|
|
],
|
2017-01-27 02:20:22 -09:00
|
|
|
"parserOptions": {
|
2023-02-27 07:42:41 -09:00
|
|
|
"ecmaVersion": "2022"
|
2017-01-27 02:20:22 -09:00
|
|
|
},
|
2022-02-17 00:13:59 -09:00
|
|
|
"plugins": ["react", "react-hooks"],
|
2017-01-27 02:20:22 -09:00
|
|
|
"rules": {
|
2018-04-24 04:17:32 -08:00
|
|
|
"indent": ["error", 4,
|
|
|
|
|
{
|
|
|
|
|
"ObjectExpression": "first",
|
|
|
|
|
"CallExpression": {"arguments": "first"},
|
2018-04-25 22:30:35 -08:00
|
|
|
"MemberExpression": 2,
|
|
|
|
|
"ignoredNodes": [ "JSXAttribute" ]
|
2018-04-24 04:17:32 -08:00
|
|
|
}],
|
2022-03-28 02:18:48 -08:00
|
|
|
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 3 }],
|
2018-07-20 02:35:37 -08:00
|
|
|
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
|
2018-05-14 11:37:25 -08:00
|
|
|
"prefer-promise-reject-errors": ["error", { "allowEmptyReject": true }],
|
2021-09-21 21:32:17 -08:00
|
|
|
"no-var": "error",
|
2018-05-04 04:50:36 -08:00
|
|
|
"react/jsx-indent": ["error", 4],
|
2026-06-03 10:14:52 -08:00
|
|
|
"react/no-danger": "error",
|
2018-07-26 11:58:41 -08:00
|
|
|
"semi": ["error", "always", { "omitLastInOneLineBlock": true }],
|
2018-04-16 01:18:14 -08:00
|
|
|
|
2019-10-17 23:24:38 -08:00
|
|
|
"react-hooks/rules-of-hooks": "error",
|
|
|
|
|
"react-hooks/exhaustive-deps": "error",
|
|
|
|
|
|
2018-04-16 01:18:14 -08:00
|
|
|
"camelcase": "off",
|
|
|
|
|
"comma-dangle": "off",
|
|
|
|
|
"curly": "off",
|
2018-11-22 12:59:07 -09:00
|
|
|
"no-template-curly-in-string": "off",
|
2018-04-16 01:18:14 -08:00
|
|
|
"jsx-quotes": "off",
|
2018-05-04 04:50:36 -08:00
|
|
|
"no-console": "off",
|
2018-04-16 01:18:14 -08:00
|
|
|
"quotes": "off",
|
2018-05-04 04:50:36 -08:00
|
|
|
"react/jsx-curly-spacing": "off",
|
|
|
|
|
"react/jsx-indent-props": "off",
|
2019-08-27 23:49:37 -08:00
|
|
|
"react/jsx-handler-names": "off",
|
|
|
|
|
"react/jsx-closing-bracket-location": "off",
|
|
|
|
|
"react/jsx-closing-tag-location": "off",
|
|
|
|
|
"react/jsx-curly-newline": "off",
|
|
|
|
|
"react/jsx-first-prop-new-line": "off",
|
2024-04-22 06:44:04 -08:00
|
|
|
"react/jsx-no-useless-fragment": "error",
|
2018-05-04 04:50:36 -08:00
|
|
|
"react/prop-types": "off",
|
2018-04-16 01:18:14 -08:00
|
|
|
"space-before-function-paren": "off",
|
2018-05-14 11:18:14 -08:00
|
|
|
"standard/no-callback-literal": "off",
|
2018-05-04 04:50:36 -08:00
|
|
|
|
2026-10-30 02:34:27 -08:00
|
|
|
"eqeqeq": ["error", "smart"],
|
2019-01-10 23:32:25 -09:00
|
|
|
"react/jsx-no-bind": "off",
|
2022-02-17 01:09:17 -09:00
|
|
|
"react/jsx-wrap-multilines": "off"
|
2017-01-27 02:20:22 -09:00
|
|
|
},
|
|
|
|
|
"globals": {
|
2024-05-19 03:34:11 -08:00
|
|
|
"require": "readonly",
|
|
|
|
|
"module": "readonly"
|
2018-09-24 23:19:25 -08:00
|
|
|
},
|
2024-04-10 00:52:19 -08:00
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"files": ["**/*.ts", "**/*.tsx"],
|
|
|
|
|
"plugins": [
|
|
|
|
|
"@typescript-eslint"
|
|
|
|
|
],
|
2024-07-15 17:49:44 -08:00
|
|
|
"extends": "plugin:@typescript-eslint/recommended",
|
2024-04-10 00:52:19 -08:00
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
|
"parserOptions": {
|
2024-11-11 02:15:51 -09:00
|
|
|
"projectService": ["./tsconfig.json"]
|
2024-07-15 17:49:44 -08:00
|
|
|
},
|
|
|
|
|
"rules": {
|
|
|
|
|
// https://typescript-eslint.io/rules/no-use-before-define
|
|
|
|
|
// Note: you must disable the base rule as it can report incorrect errors
|
|
|
|
|
"no-use-before-define": "off",
|
2024-11-13 22:24:56 -09:00
|
|
|
"@typescript-eslint/no-use-before-define": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"functions": false
|
|
|
|
|
}
|
|
|
|
|
],
|
2024-07-15 17:49:44 -08:00
|
|
|
// as recommended by https://typescript-eslint.io/rules/no-unused-vars/
|
|
|
|
|
"@typescript-eslint/no-unused-vars": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"args": "all",
|
|
|
|
|
"argsIgnorePattern": "^_",
|
|
|
|
|
"caughtErrors": "all",
|
|
|
|
|
"caughtErrorsIgnorePattern": "^_",
|
|
|
|
|
"destructuredArrayIgnorePattern": "^_",
|
|
|
|
|
"varsIgnorePattern": "^_",
|
|
|
|
|
"ignoreRestSiblings": true
|
|
|
|
|
}
|
|
|
|
|
]
|
2024-04-10 00:52:19 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
2018-09-24 23:19:25 -08:00
|
|
|
"settings": {
|
|
|
|
|
"react": {
|
2019-08-29 00:55:01 -08:00
|
|
|
"version": "detect"
|
2018-09-24 23:19:25 -08:00
|
|
|
}
|
2017-01-27 02:20:22 -09:00
|
|
|
}
|
|
|
|
|
}
|