2020-07-17 16:03:38 +08:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
2020-08-01 18:34:56 +08:00
|
|
|
"es2020": true,
|
2024-03-01 13:18:34 +08:00
|
|
|
"node": true,
|
|
|
|
"jest": true
|
2020-07-17 16:03:38 +08:00
|
|
|
},
|
2023-02-05 00:59:52 +08:00
|
|
|
"parser": "@typescript-eslint/parser",
|
2020-07-17 16:03:38 +08:00
|
|
|
"parserOptions": {
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
},
|
|
|
|
"ecmaVersion": 11,
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
2022-08-29 11:20:54 +08:00
|
|
|
"settings": {
|
|
|
|
"import/resolver": {
|
2023-12-15 06:01:58 +08:00
|
|
|
"node": {
|
|
|
|
"moduleDirectory": ["node_modules", "src/"]
|
2022-08-29 11:20:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2024-03-01 13:18:34 +08:00
|
|
|
"extends": [
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"eslint:recommended",
|
|
|
|
"plugin:prettier/recommended",
|
|
|
|
"plugin:import/errors",
|
|
|
|
"plugin:import/typescript",
|
|
|
|
"plugin:css-modules/recommended",
|
2024-03-02 07:56:18 +08:00
|
|
|
"plugin:cypress/recommended",
|
2024-03-01 13:18:34 +08:00
|
|
|
"prettier",
|
|
|
|
"next"
|
|
|
|
],
|
2024-03-02 07:56:18 +08:00
|
|
|
"plugins": ["@typescript-eslint", "prettier", "promise", "css-modules", "cypress"],
|
2020-07-17 16:03:38 +08:00
|
|
|
"rules": {
|
2022-08-29 11:20:54 +08:00
|
|
|
"no-console": "error",
|
2020-08-23 10:05:07 +08:00
|
|
|
"react/display-name": "off",
|
2024-02-03 14:20:13 +08:00
|
|
|
"react-hooks/exhaustive-deps": "off",
|
2020-07-30 15:06:29 +08:00
|
|
|
"react/react-in-jsx-scope": "off",
|
2022-03-11 11:01:33 +08:00
|
|
|
"react/prop-types": "off",
|
2022-07-16 14:53:31 +08:00
|
|
|
"import/no-anonymous-default-export": "off",
|
2023-04-22 03:43:37 +08:00
|
|
|
"import/no-named-as-default": "off",
|
2023-02-08 08:29:25 +08:00
|
|
|
"@next/next/no-img-element": "off",
|
|
|
|
"@typescript-eslint/no-empty-function": "off",
|
2023-03-24 05:01:15 +08:00
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
2023-08-11 04:26:33 +08:00
|
|
|
"@typescript-eslint/no-var-requires": "off",
|
2023-08-19 12:52:59 +08:00
|
|
|
"@typescript-eslint/no-empty-interface": "off",
|
|
|
|
"@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true }]
|
2020-07-17 16:03:38 +08:00
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"React": "writable"
|
|
|
|
}
|
|
|
|
}
|