renovate/.eslintrc.js
Rhys Arkins b4e2341d1e refactor: use prettier instead of eslint-plugin-prettier (#864)
Having eslint flag prettier "errors" in editors can be rather painful. Also chose against linting staged files for prettier because I like to stage partials. Instead:
- Recommended to use plugins for editors to format on save, e.g. `prettier-atom`
- Prettier will be run as part of `npm test`
2017-10-01 07:06:06 +02:00

21 lines
575 B
JavaScript

module.exports = {
env: {
node: true,
},
extends: ['airbnb-base', 'prettier'],
plugins: ['import', 'promise'],
rules: {
'no-use-before-define': 0,
'no-restricted-syntax': 0,
'no-await-in-loop': 0,
'promise/always-return': 'error',
'promise/no-return-wrap': 'error',
'promise/param-names': 'error',
'promise/catch-or-return': 'error',
'promise/no-native': 'off',
'promise/no-nesting': 'warn',
'promise/no-promise-in-callback': 'warn',
'promise/no-callback-in-promise': 'warn',
'promise/avoid-new': 'warn',
},
};