26 lines
763 B
Plaintext
26 lines
763 B
Plaintext
{
|
|
"env": {
|
|
"node": true,
|
|
"es6": true,
|
|
"browser": true,
|
|
"jest": true
|
|
},
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest"
|
|
},
|
|
"extends": ["eslint:recommended", "plugin:node/recommended"],
|
|
"parser": "@babel/eslint-parser",
|
|
"rules": {
|
|
"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",
|
|
"no-console": "warn"
|
|
}
|
|
}
|