You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. module.exports = {
  2. root: true,
  3. plugins: ["node"],
  4. extends: ["../.eslintrc.js", "plugin:node/recommended"],
  5. env: {
  6. node: true,
  7. es6: true,
  8. jest: true
  9. },
  10. parserOptions: { ecmaVersion: 2017, sourceType: "module" },
  11. rules: {
  12. "node/no-unsupported-features": ["error", { version: 6 }],
  13. "node/no-deprecated-api": "error",
  14. "node/no-missing-import": "error",
  15. "node/no-missing-require": [
  16. "error",
  17. {
  18. resolvePaths: ["./packages"],
  19. allowModules: [
  20. "webpack",
  21. "@webpack-cli/generators",
  22. "@webpack-cli/init",
  23. "@webpack-cli/migrate",
  24. "@webpack-cli/utils",
  25. "@webpack-cli/generate-loader",
  26. "@webpack-cli/generate-plugin",
  27. "@webpack-cli/webpack-scaffold"
  28. ]
  29. }
  30. ],
  31. "node/no-unpublished-bin": "error",
  32. "node/no-unpublished-require": [
  33. "error",
  34. {
  35. allowModules: [
  36. "webpack",
  37. "webpack-dev-server",
  38. "@webpack-cli/generators",
  39. "@webpack-cli/init",
  40. "@webpack-cli/migrate",
  41. "@webpack-cli/utils",
  42. "@webpack-cli/generate-loader",
  43. "@webpack-cli/generate-plugin",
  44. "@webpack-cli/webpack-scaffold"
  45. ]
  46. }
  47. ],
  48. "node/no-extraneous-require": [
  49. "error",
  50. {
  51. allowModules: [
  52. "@webpack-cli/migrate",
  53. "@webpack-cli/generators",
  54. "@webpack-cli/utils",
  55. "@webpack-cli/generate-loader",
  56. "@webpack-cli/generate-plugin",
  57. "@webpack-cli/webpack-scaffold"
  58. ]
  59. }
  60. ],
  61. "node/process-exit-as-throw": "error"
  62. }
  63. };