UNPKG

eslint-config-niieani

Version:

Reusable ESLint config for Beemo configured projects.

28 lines 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const config = { plugins: ['promise'], rules: { 'promise/param-names': 'error', 'promise/valid-params': 'error', // Avoid complicated or problematic patterns 'promise/no-promise-in-callback': 'error', 'promise/no-new-statics': 'error', // Ensure proper control flow 'promise/catch-or-return': 'error', 'promise/no-return-wrap': ['error', { allowReject: true }], 'promise/no-nesting': 'error', 'promise/no-return-in-finally': 'error', // Returning isnt always necessary 'promise/always-return': 'off', // Prefer modern APIs 'promise/no-native': 'off', 'promise/avoid-new': 'off', 'promise/prefer-await-to-then': 'off', 'promise/prefer-await-to-callbacks': 'off', // Useful for patching old Node.js APIs 'promise/no-callback-in-promise': 'off', }, }; module.exports = config; //# sourceMappingURL=async.js.map