Skip to content

Commit

Permalink
Disable 2 default rules and 1 promise rule
Browse files Browse the repository at this point in the history
- Change version to 1.2.0
  • Loading branch information
victorfsf committed Sep 6, 2019
1 parent fbf5613 commit 0dcd7f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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",
Expand All @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion plugins/promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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'],
},
Expand Down
4 changes: 2 additions & 2 deletions rules/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
},
};

0 comments on commit 0dcd7f6

Please sign in to comment.