Skip to content

Commit

Permalink
feat: update eslint-plugin-unicorn
Browse files Browse the repository at this point in the history
BREAKING CHANGE: new eslint rules https://github.com/sindresorhus/eslint-plugin-unicorn/releases/tag/v8.0.0 that will require eslint fixes

closes #27
  • Loading branch information
Rob McGuinness committed Apr 25, 2019
1 parent 768724c commit 4d7c38d
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 176 deletions.
26 changes: 17 additions & 9 deletions base.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
module.exports = {
parser: 'babel-eslint',

extends: ['airbnb-base', 'plugin:promise/recommended', 'plugin:jest/recommended', 'plugin:unicorn/recommended', 'prettier'],
extends: [
'airbnb-base',
'plugin:promise/recommended',
'plugin:jest/recommended',
'plugin:unicorn/recommended',
'prettier',
],

plugins: ['promise', 'jest', 'unicorn'],

Expand All @@ -20,19 +26,21 @@ module.exports = {
'no-param-reassign': 0,
'arrow-parens': ['error', 'as-needed'],
'class-methods-use-this': 0,
"unicorn/import-index": "off",
"unicorn/filename-case": "off",
'unicorn/import-index': 'off',
'unicorn/filename-case': 'off',
'unicorn/prefer-includes': 'off',
'unicorn/prefer-node-remove': 'off',
'unicorn/prevent-abbreviations': 'off',
'import/no-extraneous-dependencies': 0,
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'no-underscore-dangle': 0,
'promise/avoid-new': 0,
'prefer-destructuring': [
"error",
'error',
{
'object': true,
'array': false
}
]

object: true,
array: false,
},
],
},
};

0 comments on commit 4d7c38d

Please sign in to comment.