.eslintrc.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. module.exports = {
  2. parser: "@typescript-eslint/parser",
  3. parserOptions: {
  4. requireConfigFile: false,
  5. babelOptions: {
  6. babelrc: false,
  7. configFile: false,
  8. cwd: __dirname,
  9. },
  10. },
  11. ignorePatterns: [
  12. '**/*.d.ts',
  13. '**/__mocks__',
  14. '**/node_modules',
  15. '**/build',
  16. '**/dist',
  17. '**/es',
  18. '**/lib',
  19. '**/.codebase',
  20. '**/.changeset',
  21. '**/config',
  22. '**/common/scripts',
  23. '**/output',
  24. 'error-log-str.js',
  25. '*.bundle.js',
  26. '*.min.js',
  27. '*.js.map',
  28. '**/output',
  29. '**/*.log',
  30. '**/tsconfig.tsbuildinfo',
  31. '**/vitest.config.ts',
  32. 'package.json',
  33. '*.json',
  34. ],
  35. rules: {
  36. 'no-console': 'off',
  37. 'react/no-deprecated': 'off',
  38. 'import/prefer-default-export': 'off',
  39. 'lines-between-class-members': 'warn',
  40. 'react/jsx-no-useless-fragment': 'off',
  41. 'no-unused-vars': 'off',
  42. 'no-redeclare': 'off',
  43. 'no-empty-fuNction': 'off',
  44. 'prefer-destructurin': 'off',
  45. 'no-underscore-dangle': 'off',
  46. 'no-empty-function': 'off',
  47. 'no-multi-assign': 'off',
  48. 'arrow-body-style': 'warn',
  49. 'no-useless-constructor': 'off',
  50. 'no-param-reassign': 'off',
  51. 'max-classes-per-file': 'off',
  52. 'grouped-accessor-pairs': 'off',
  53. 'no-plusplus': 'off',
  54. 'no-restricted-syntax': 'off',
  55. 'react/destructuring-assignment': 'off',
  56. 'import/extensions': 'off',
  57. 'consistent-return': 'off',
  58. 'jsx-a11y/no-static-element-interactions': 'off',
  59. 'no-use-before-define': 'off',
  60. 'no-bitwise': 'off',
  61. 'no-case-declarations': 'off',
  62. 'react/no-array-index-key': 'off',
  63. 'react/require-default-props': 'off',
  64. 'no-dupe-class-members': 'off',
  65. 'react/jsx-props-no-spreading': 'off',
  66. 'no-console': 'off',
  67. 'no-shadow': 'off',
  68. 'class-methods-use-this': 'off',
  69. 'default-param-last': 'off',
  70. 'no-unused-vars': 'off',
  71. 'import/prefer-default-export': 'off',
  72. 'import/extensions': 'off',
  73. },
  74. }