diff --git a/package.json b/package.json index 9113289..2b852ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-vinta", - "version": "1.1.1", + "version": "1.2.0", "description": "Vinta's ESLint and Prettier Shareable Configs", "main": "index.js", "scripts": { @@ -34,7 +34,6 @@ ], "prettier": "./prettier", "devDependencies": { - "eslint": "^4.19.1 || ^5.3.0 || ^6.0.1", "babel-eslint": "^10.0.2", "eslint-config-prettier": "^6.0.0", "eslint-plugin-babel": "^5.3.0", @@ -47,6 +46,7 @@ "eslint-plugin-react-hooks": "^1.6.1", "eslint-plugin-sonarjs": "^0.4.0", "eslint-plugin-unicorn": "^9.1.1", + "eslint": "^4.19.1 || ^5.3.0 || ^6.0.1", "prettier": "^1.18.2" }, "peerDependencies": { diff --git a/plugins/promise.js b/plugins/promise.js index a68e04e..16ce9a0 100644 --- a/plugins/promise.js +++ b/plugins/promise.js @@ -3,7 +3,6 @@ module.exports = { rules: { /* Errors */ 'promise/always-return': ['error'], - 'promise/no-native': ['error'], 'promise/no-nesting': ['error'], 'promise/no-new-statics': ['error'], 'promise/no-return-in-finally': ['error'], @@ -16,6 +15,7 @@ module.exports = { /* Disabled */ 'promise/avoid-new': ['off'], 'promise/catch-or-return': ['off'], + 'promise/no-native': ['off'], 'promise/prefer-await-to-callbacks': ['off'], 'promise/prefer-await-to-then': ['off'], }, diff --git a/rules/variables.js b/rules/variables.js index 9561957..123fc0b 100644 --- a/rules/variables.js +++ b/rules/variables.js @@ -6,14 +6,14 @@ module.exports = { 'no-delete-var': ['error'], 'no-label-var': ['error'], 'no-restricted-globals': ['error'].concat(restrictedGlobals), - 'no-shadow': ['error', { hoist: 'never' }], 'no-shadow-restricted-names': ['error'], 'no-undef': ['error'], 'no-undef-init': ['error'], 'no-unused-vars': ['error', { vars: 'all', args: 'after-used', ignoreRestSiblings: true }], - 'no-use-before-define': ['error', { functions: true, classes: true, variables: true }], /* Disabled */ 'init-declarations': ['off'], + 'no-shadow': ['off'], 'no-undefined': ['off'], + 'no-use-before-define': ['off'], }, };