Skip to content

Commit

Permalink
style(eslintrc): Clean up config
Browse files Browse the repository at this point in the history
prefer-destructuring was disabled, so remove the previous duplicate key.
  • Loading branch information
floryst committed Mar 23, 2021
1 parent 3da534d commit fd8f7ea
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var prettierConf = require('./prettier.config.js');
const prettierConf = require('./prettier.config.js');

module.exports = {
extends: ['airbnb', 'prettier'],
Expand All @@ -9,14 +9,7 @@ module.exports = {
'no-multi-spaces': ['error', { exceptions: { ImportDeclaration: true } }],
'no-param-reassign': ['error', { props: false }],
'no-unused-vars': ['error', { args: 'none' }],
'prefer-destructuring': [
'error',
{
VariableDeclarator: { array: false, object: true },
AssignmentExpression: { array: false, object: false },
},
{ enforceForRenamedProperties: false },
],
'prefer-destructuring': 0,
'import/no-extraneous-dependencies': 0, // Needed for tests
// 'no-mixed-operators': 'error', // Wish we can put it back with prettier

Expand All @@ -26,7 +19,6 @@ module.exports = {
'no-plusplus': 0,
'import/no-named-as-default': 0,
'import/no-named-as-default-member': 0,
'prefer-destructuring': 0, // Can have unwanted side effect

// Introduced with new eslint
// and no time to fix them...
Expand Down

0 comments on commit fd8f7ea

Please sign in to comment.