recommended-script.js 570 B

123456789101112131415161718192021222324
  1. "use strict"
  2. const { commonGlobals, commonRules } = require("./_commons")
  3. module.exports = {
  4. globals: {
  5. ...commonGlobals,
  6. __dirname: "readonly",
  7. __filename: "readonly",
  8. exports: "writable",
  9. module: "readonly",
  10. require: "readonly",
  11. },
  12. parserOptions: {
  13. ecmaFeatures: { globalReturn: true },
  14. ecmaVersion: 2019,
  15. sourceType: "script",
  16. },
  17. plugins: ["node"],
  18. rules: {
  19. ...commonRules,
  20. "node/no-unsupported-features/es-syntax": ["error", { ignores: [] }],
  21. },
  22. }