Last active
July 25, 2021 18:54
-
-
Save lahin31/656c2d9a2e60b0252d23a200128442cb to your computer and use it in GitHub Desktop.
Node.js eslint configuration.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"commonjs": true, | |
"es6": true, | |
"node": true, | |
"mocha": true | |
}, | |
"plugins": [ | |
"security" | |
], | |
"extends": [ | |
"eslint:recommended", | |
"plugin:node/recommended", | |
"plugin:security/recommended" | |
], | |
"globals": { | |
"Atomics": "readonly", | |
"SharedArrayBuffer": "readonly" | |
}, | |
"parserOptions": { | |
"ecmaVersion": 2020 | |
}, | |
"rules": { | |
"no-undef": 0, | |
"no-shadow": "off", | |
"no-else-return": "error", | |
"no-empty": "error", | |
"no-lonely-if": "error", | |
"node/no-unpublished-require": 0, | |
"node/exports-style": [ | |
"error", | |
"module.exports" | |
], | |
"node/file-extension-in-import": [ | |
"error", | |
"always" | |
], | |
"node/prefer-global/buffer": [ | |
"error", | |
"always" | |
], | |
"node/prefer-global/console": [ | |
"error", | |
"always" | |
], | |
"node/prefer-global/process": [ | |
"error", | |
"always" | |
], | |
"node/prefer-global/url-search-params": [ | |
"error", | |
"always" | |
], | |
"node/prefer-global/url": [ | |
"error", | |
"always" | |
], | |
"node/prefer-promises/dns": "error", | |
"node/prefer-promises/fs": "error" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment