Skip to content

Commit

Permalink
Merge pull request #98 from Fdawgs/chore/eslint-rules
Browse files Browse the repository at this point in the history
Update eslint rules
  • Loading branch information
Fdawgs committed Jun 16, 2020
2 parents bd9fbbf + a6e7f04 commit 2fca155
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 41 deletions.
46 changes: 46 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
module.exports = {
env: {
es6: true,
node: true
},
extends: [
'airbnb-base',
'plugin:promise/recommended',
'plugin:jest/recommended',
'plugin:jsdoc/recommended',
'prettier'
],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
plugins: ['import', 'jest', 'jsdoc', 'json', 'promise'],
rules: {
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true
}
],
'lines-between-class-members': 'error',
'no-console': 'off',
'no-multiple-empty-lines': [
'error',
{
max: 1,
maxBOF: 0,
maxEOF: 0
}
],
'prefer-destructuring': 'off',
'promise/always-return': 'off',
'promise/catch-or-return': [
'error',
{
allowThen: true
}
],
'promise/prefer-await-to-then': 'warn',
'promise/prefer-await-to-callbacks': 'warn'
}
};
39 changes: 0 additions & 39 deletions .eslintrc.json

This file was deleted.

2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable promise/always-return */
/* eslint-disable promise/catch-or-return */
const os = require('os');
const path = require('path');
const { execFile } = require('child_process');
Expand Down

0 comments on commit 2fca155

Please sign in to comment.