back-projet-bUT3/.eslintrc
2024-03-07 11:45:33 +01:00

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"
}
}