eslint.deprecated.config.js 639 B

1234567891011121314151617181920212223242526
  1. import tseslint from 'typescript-eslint';
  2. import reactHooks from 'eslint-plugin-react-hooks';
  3. export default [
  4. { ignores: ['node_modules/**', '../web/dist/**', 'src/generated/**'] },
  5. {
  6. files: ['**/*.{ts,tsx}'],
  7. plugins: {
  8. '@typescript-eslint': tseslint.plugin,
  9. 'react-hooks': reactHooks,
  10. },
  11. languageOptions: {
  12. parser: tseslint.parser,
  13. parserOptions: {
  14. projectService: true,
  15. tsconfigRootDir: import.meta.dirname,
  16. },
  17. },
  18. rules: {
  19. '@typescript-eslint/no-deprecated': 'warn',
  20. },
  21. linterOptions: {
  22. reportUnusedDisableDirectives: 'off',
  23. },
  24. },
  25. ];