UNPKG

@kevinoid/eslint-config

Version:

ESLint shareable config for @kevinoid's style (based on airbnb).

26 lines (20 loc) 673 B
// ESLint common configuration rules for N plugin // https://github.com/weiran-zsd/eslint-plugin-node#-rules "use strict"; module.exports = { "extends": [ "plugin:n/recommended" ], "rules": { // require file extensions in import declarations // https://nodejs.org/api/esm.html#esm_mandatory_file_extensions "n/file-extension-in-import": "error", // allow process.exit() // this rule is redundant with the built-in no-process-exit rule "n/no-process-exit": "off", // disallow unsupported Node.js built-ins, allow experimental "n/no-unsupported-features/node-builtins": ["error", { "allowExperimental": true }] } };