mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 14:36:25 +00:00
b4e2341d1e
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`
21 lines
575 B
JavaScript
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',
|
|
},
|
|
};
|