eslintrc-base.js 864 B

1234567891011121314151617181920212223242526272829
  1. /* eslint-env node */
  2. module.exports = {
  3. root: true,
  4. extends: [
  5. "eslint:recommended",
  6. "plugin:@typescript-eslint/strict-type-checked",
  7. "plugin:@typescript-eslint/stylistic-type-checked",
  8. ],
  9. plugins: ["@typescript-eslint"],
  10. parserOptions: { project: true },
  11. parser: "@typescript-eslint/parser",
  12. ignorePatterns: [".eslintrc.js"],
  13. rules: {
  14. /* Allow numbers to be used in template literals */
  15. "@typescript-eslint/restrict-template-expressions": [
  16. "error",
  17. {
  18. allowNumber: true,
  19. },
  20. ],
  21. /* Allow void expressions as the entire body of an arrow function */
  22. "@typescript-eslint/no-confusing-void-expression": [
  23. "error",
  24. {
  25. ignoreArrowShorthand: true,
  26. },
  27. ],
  28. },
  29. };