From 3604e7d4b380cc8691e9347674e17d6f2ce3e2db Mon Sep 17 00:00:00 2001 From: AlexAlexandre Date: Thu, 19 Aug 2021 20:55:32 -0300 Subject: [PATCH] [improve] - adding the last rules for ts and js --- .eslintrc.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index b1ecf22dc..f253f3cf2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -63,6 +63,12 @@ module.exports = { "jsx-a11y/aria-role": 0, "import/prefer-default-export": 0, "import/no-cycle": 0, + "import/order":[ + "error", + { + "newlines-between": "ignore", + } + ], "camelcase": 0, "no-underscore-dangle": 0, "no-return-assign": 0, @@ -146,23 +152,14 @@ module.exports = { "react/jsx-one-expression-per-line": 0, "require-await": 2, "func-names": 0, - "react/sort-comp": ["error", { - "order": [ - "static-variables", - "static-methods", - "lifecycle", - "everything-else", - "render" - ] - }], "react/static-property-placement": [0], "arrow-parens": ["error", "as-needed", { requireForBlockBody: true }], - // "react/jsx-props-no-spreading": [1], "react/jsx-curly-newline": [0], "react/state-in-constructor": [0], "no-async-promise-executor": [0], "max-classes-per-file": [0], - "no-multiple-empty-lines": [0] + "no-multiple-empty-lines": [0], + "no-sequences": "off", }, "globals": { "__DEV__": true @@ -209,6 +206,8 @@ module.exports = { "@typescript-eslint" ], "rules": { + "@typescript-eslint/no-var-requires": "off", + "@typescript-eslint/no-empty-function": [0], "@typescript-eslint/ban-types": [0], "func-call-spacing": "off", "jsx-quotes": [ @@ -216,6 +215,7 @@ module.exports = { "prefer-single" ], "indent": "off", + "no-return-assign": 0, "no-dupe-class-members": "off", "no-extra-parens": "off", "no-spaced-func": "off",