Skip to content
Snippets Groups Projects
Commit 9c4b8702 authored by Max Frederiksen's avatar Max Frederiksen Committed by Max Frederiksen
Browse files

Disable TS mockAPI.ts and handlers.ts

parent 7b6d0dbf
No related branches found
No related tags found
2 merge requests!612Release 5.0.0,!590CE-3429: Convert to typescript
src/store/deployApi.ts src/store/deployApi.ts
src/mocks/handlers.ts
src/mocks/mockAPI.ts
...@@ -24,10 +24,7 @@ ...@@ -24,10 +24,7 @@
"version": "detect" "version": "detect"
}, },
"import/parsers": { "import/parsers": {
"@typescript-eslint/parser": [ "@typescript-eslint/parser": [".ts", ".tsx"]
".ts",
".tsx"
]
}, },
"import/resolver": { "import/resolver": {
"typescript": { "typescript": {
...@@ -59,12 +56,12 @@ ...@@ -59,12 +56,12 @@
], ],
"import/no-named-as-default": "error", "import/no-named-as-default": "error",
"import/no-named-as-default-member": "error", "import/no-named-as-default-member": "error",
"import/no-unresolved": ["error", { "caseSensitive": false, "commonjs": true, "amd": true }], "import/no-unresolved": [
"import/no-duplicates": "error",
"consistent-this": [
"error", "error",
"self" { "caseSensitive": false, "commonjs": true, "amd": true }
], ],
"import/no-duplicates": "error",
"consistent-this": ["error", "self"],
"default-case": "error", "default-case": "error",
"dot-notation": "error", "dot-notation": "error",
"eqeqeq": [ "eqeqeq": [
...@@ -77,12 +74,7 @@ ...@@ -77,12 +74,7 @@
"no-console": [ "no-console": [
"error", "error",
{ {
"allow": [ "allow": ["warn", "error", "info", "debug"]
"warn",
"error",
"info",
"debug"
]
} }
], ],
"no-eval": "error", "no-eval": "error",
...@@ -96,10 +88,7 @@ ...@@ -96,10 +88,7 @@
"no-sequences": "error", "no-sequences": "error",
"no-undef-init": "error", "no-undef-init": "error",
"no-unused-expressions": "error", "no-unused-expressions": "error",
"operator-assignment": [ "operator-assignment": ["error", "always"],
"error",
"always"
],
"quotes": [ "quotes": [
"error", "error",
"double", "double",
...@@ -120,16 +109,11 @@ ...@@ -120,16 +109,11 @@
"react/prefer-es6-class": "warn", "react/prefer-es6-class": "warn",
"react/self-closing-comp": "error", "react/self-closing-comp": "error",
"react-refresh/only-export-components": "warn", "react-refresh/only-export-components": "warn",
"curly": [ "curly": ["error", "all"]
"error",
"all"
]
}, },
"overrides": [ "overrides": [
{ {
"files": [ "files": ["**/*.stories.*"],
"**/*.stories.*"
],
"rules": { "rules": {
"import/no-anonymous-default-export": "off", "import/no-anonymous-default-export": "off",
"@typescript-eslint/no-var-requires": "off", "@typescript-eslint/no-var-requires": "off",
...@@ -137,17 +121,13 @@ ...@@ -137,17 +121,13 @@
} }
}, },
{ {
"files": [ "files": ["**/mocks/mockAPI.js", "**/index.js", "cypress.config.js"],
"**/mocks/mockAPI.js",
"**/index.js",
"cypress.config.js"
],
"rules": { "rules": {
"@typescript-eslint/no-unused-vars": "off", "@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-var-requires": "off", "@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-require-imports": "off" "@typescript-eslint/no-require-imports": "off"
} }
} , },
{ {
"files": [ "files": [
"**/*.spec.js", "**/*.spec.js",
...@@ -164,5 +144,4 @@ ...@@ -164,5 +144,4 @@
] ]
} }
] ]
} }
...@@ -30,5 +30,10 @@ ...@@ -30,5 +30,10 @@
] ]
}, },
"include": ["src", "cypress.d.ts", "./global.d.ts", "declaration.d.ts"], "include": ["src", "cypress.d.ts", "./global.d.ts", "declaration.d.ts"],
"exclude": ["node_modules", "build"] "exclude": [
"node_modules",
"build",
"src/mocks/handlers.ts",
"src/mocks/mockAPI.ts"
]
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment