From 6b78b444d2008d1176e5e73fa62311ea846c7ed5 Mon Sep 17 00:00:00 2001 From: David Disu Date: Thu, 6 Jan 2022 13:11:35 +0100 Subject: [PATCH] Use old eslint config --- .eslintrc | 21 +++++++++++++++++++ .eslintrc.json | 8 ++++++- apps/remix-ide-e2e/.eslintrc | 2 +- apps/remix-ide-e2e/src/local-plugin/.eslintrc | 2 +- libs/remix-analyzer/.eslintrc | 2 +- libs/remix-astwalker/.eslintrc | 2 +- libs/remix-core-plugin/.eslintrc | 2 +- libs/remix-debug/.eslintrc | 2 +- libs/remix-lib/.eslintrc | 2 +- libs/remix-simulator/.eslintrc | 2 +- libs/remix-solidity/.eslintrc | 2 +- libs/remix-tests/.eslintrc | 2 +- libs/remix-ui/clipboard/.eslintrc | 2 +- libs/remix-ui/run-tab/.eslintrc.json | 2 +- libs/remix-url-resolver/.eslintrc | 2 +- libs/remixd/.eslintrc | 2 +- 16 files changed, 42 insertions(+), 15 deletions(-) create mode 100644 .eslintrc diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000000..75aca1f145 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,21 @@ +{ + "root": true, + "parser": "@typescript-eslint/parser", + "parserOptions": { + "ecmaVersion": 2018, + "sourceType": "module", + "project": "./tsconfig.base.json" + }, + "plugins": ["@typescript-eslint", "@nrwl/nx"], + "extends": "standard", + "rules": { + }, + "overrides": [ + { + "files": ["*.tsx"], + "rules": { + "@typescript-eslint/no-unused-vars": "off" + } + } + ] +} \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json index 5fe8155373..6557fb70d1 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -24,7 +24,13 @@ { "files": ["*.ts", "*.tsx"], "extends": ["plugin:@nrwl/nx/typescript"], - "rules": {} + "rules": { + "@typescript-eslint/ban-ts-comment": "off", + "@typescript-eslint/no-this-alias": "off", + "@typescript-eslint/no-empty-function": "off", + "eslint-disable-next-line no-empty": "off", + "no-empty": "off" + } }, { "files": ["*.js", "*.jsx"], diff --git a/apps/remix-ide-e2e/.eslintrc b/apps/remix-ide-e2e/.eslintrc index 6dc2985f30..f21e0fc224 100644 --- a/apps/remix-ide-e2e/.eslintrc +++ b/apps/remix-ide-e2e/.eslintrc @@ -11,6 +11,6 @@ } } ], - "extends": ["../../.eslintrc.json"], + "extends": ["../../.eslintrc"], "ignorePatterns": ["!**/*"] } \ No newline at end of file diff --git a/apps/remix-ide-e2e/src/local-plugin/.eslintrc b/apps/remix-ide-e2e/src/local-plugin/.eslintrc index c24c2102e4..3651dc7a8c 100644 --- a/apps/remix-ide-e2e/src/local-plugin/.eslintrc +++ b/apps/remix-ide-e2e/src/local-plugin/.eslintrc @@ -243,6 +243,6 @@ }, "settings": { "react": { "version": "detect" } }, "plugins": ["import", "jsx-a11y", "react", "react-hooks"], - "extends": ["../../../../.eslintrc.json"], + "extends": ["../../../../.eslintrc"], "ignorePatterns": ["!**/*"] } diff --git a/libs/remix-analyzer/.eslintrc b/libs/remix-analyzer/.eslintrc index 50f8a21c2e..e27a064a6d 100644 --- a/libs/remix-analyzer/.eslintrc +++ b/libs/remix-analyzer/.eslintrc @@ -1,5 +1,5 @@ { - "extends": "../../.eslintrc.json", + "extends": "../../.eslintrc", "rules": { "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-unused-vars": "off", diff --git a/libs/remix-astwalker/.eslintrc b/libs/remix-astwalker/.eslintrc index ec9d5e2769..60e5336d5c 100644 --- a/libs/remix-astwalker/.eslintrc +++ b/libs/remix-astwalker/.eslintrc @@ -1,5 +1,5 @@ { - "extends": "../../.eslintrc.json", + "extends": "../../.eslintrc", "rules": { "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/prefer-namespace-keyword": "off", diff --git a/libs/remix-core-plugin/.eslintrc b/libs/remix-core-plugin/.eslintrc index 3adb97618b..ab8f38339c 100644 --- a/libs/remix-core-plugin/.eslintrc +++ b/libs/remix-core-plugin/.eslintrc @@ -1 +1 @@ -{ "extends": "../../.eslintrc.json", "rules": {}, "ignorePatterns": ["!**/*"] } +{ "extends": "../../.eslintrc", "rules": {}, "ignorePatterns": ["!**/*"] } diff --git a/libs/remix-debug/.eslintrc b/libs/remix-debug/.eslintrc index 90fcc567b4..88ae470657 100644 --- a/libs/remix-debug/.eslintrc +++ b/libs/remix-debug/.eslintrc @@ -1,5 +1,5 @@ { - "extends": "../../.eslintrc.json", + "extends": "../../.eslintrc", "rules": { "@typescript-eslint/no-var-requires": "off", "@typescript-eslint/no-unused-vars": "off", diff --git a/libs/remix-lib/.eslintrc b/libs/remix-lib/.eslintrc index a4229541d6..6ee9d5e4a6 100644 --- a/libs/remix-lib/.eslintrc +++ b/libs/remix-lib/.eslintrc @@ -1,5 +1,5 @@ { - "extends": "../../.eslintrc.json", + "extends": "../../.eslintrc", "rules": { "standard/no-callback-literal": "off", "no-unused-vars": "off", diff --git a/libs/remix-simulator/.eslintrc b/libs/remix-simulator/.eslintrc index 60a8190355..8e04356c00 100644 --- a/libs/remix-simulator/.eslintrc +++ b/libs/remix-simulator/.eslintrc @@ -1,5 +1,5 @@ { - "extends": "../../.eslintrc.json", + "extends": "../../.eslintrc", "rules": { "@typescript-eslint/no-var-requires": "off", "@typescript-eslint/no-empty-function": "off", diff --git a/libs/remix-solidity/.eslintrc b/libs/remix-solidity/.eslintrc index 08bcfe07e1..f57f93144e 100644 --- a/libs/remix-solidity/.eslintrc +++ b/libs/remix-solidity/.eslintrc @@ -1,5 +1,5 @@ { - "extends": "../../.eslintrc.json", + "extends": "../../.eslintrc", "rules": { "dot-notation": "off", "no-unused-vars": "off", diff --git a/libs/remix-tests/.eslintrc b/libs/remix-tests/.eslintrc index 08bcfe07e1..f57f93144e 100644 --- a/libs/remix-tests/.eslintrc +++ b/libs/remix-tests/.eslintrc @@ -1,5 +1,5 @@ { - "extends": "../../.eslintrc.json", + "extends": "../../.eslintrc", "rules": { "dot-notation": "off", "no-unused-vars": "off", diff --git a/libs/remix-ui/clipboard/.eslintrc b/libs/remix-ui/clipboard/.eslintrc index 6d5b6d952d..977f139a09 100644 --- a/libs/remix-ui/clipboard/.eslintrc +++ b/libs/remix-ui/clipboard/.eslintrc @@ -243,6 +243,6 @@ }, "settings": { "react": { "version": "detect" } }, "plugins": ["import", "jsx-a11y", "react", "react-hooks"], - "extends": ["../../../.eslintrc.json"], + "extends": ["../../../.eslintrc"], "ignorePatterns": ["!**/*"] } diff --git a/libs/remix-ui/run-tab/.eslintrc.json b/libs/remix-ui/run-tab/.eslintrc.json index 50e59482cf..8e85d48d01 100644 --- a/libs/remix-ui/run-tab/.eslintrc.json +++ b/libs/remix-ui/run-tab/.eslintrc.json @@ -1,5 +1,5 @@ { - "extends": ["plugin:@nrwl/nx/react", "../../../.eslintrc.json"], + "extends": ["plugin:@nrwl/nx/react", "../../../.eslintrc"], "ignorePatterns": ["!**/*"], "overrides": [ { diff --git a/libs/remix-url-resolver/.eslintrc b/libs/remix-url-resolver/.eslintrc index 61ac553a30..4177c24ed7 100644 --- a/libs/remix-url-resolver/.eslintrc +++ b/libs/remix-url-resolver/.eslintrc @@ -1,5 +1,5 @@ { - "extends": "../../.eslintrc.json", + "extends": "../../.eslintrc", "rules": {}, "env": { "browser": true, diff --git a/libs/remixd/.eslintrc b/libs/remixd/.eslintrc index 3adb97618b..ab8f38339c 100644 --- a/libs/remixd/.eslintrc +++ b/libs/remixd/.eslintrc @@ -1 +1 @@ -{ "extends": "../../.eslintrc.json", "rules": {}, "ignorePatterns": ["!**/*"] } +{ "extends": "../../.eslintrc", "rules": {}, "ignorePatterns": ["!**/*"] }