2
0
Yuki Takei 4 жил өмнө
parent
commit
f39d8709c6

+ 8 - 3
packages/app/.eslintrc.js

@@ -3,6 +3,7 @@ module.exports = {
   extends: [
     'weseek',
     'weseek/react',
+    'weseek/typescript',
     "plugin:jest/recommended",
   ],
   env: {
@@ -21,7 +22,13 @@ module.exports = {
     "jest",
   ],
   rules: {
-    'indent': [
+    'import/prefer-default-export': 'off',
+    'no-restricted-imports': ['error', {
+      name: 'axios',
+      message: 'Please use src/utils/axios instead.',
+    }],
+    '@typescript-eslint/no-explicit-any': 'off',
+    indent: [
       'error',
       2,
       {
@@ -32,7 +39,5 @@ module.exports = {
         FunctionExpression: { body: 1, parameters: 2 },
       },
     ],
-    // eslint-plugin-import rules
-    'import/no-unresolved': [2, { ignore: ['^@'] }], // ignore @alias/..., @commons/..., ...
   },
 };