Skip to content

Commit

Permalink
chore(eslint): convert from json to js file format
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed Jun 16, 2020
1 parent 99fe5be commit a6e7f04
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 47 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'
}
};
47 changes: 0 additions & 47 deletions .eslintrc.json

This file was deleted.

0 comments on commit a6e7f04

Please sign in to comment.