Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

.eslintrc.js 928 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
  1. module.exports = {
  2. env: {
  3. browser: true,
  4. commonjs: true,
  5. es2020: true,
  6. node: true
  7. },
  8. parser: '@babel/eslint-parser',
  9. extends: [
  10. 'eslint:recommended',
  11. 'standard',
  12. 'prettier'
  13. ],
  14. parserOptions: {
  15. ecmaVersion: 11
  16. },
  17. rules: {
  18. 'import/no-extraneous-dependencies': ['error']
  19. },
  20. overrides: [
  21. {
  22. files: [
  23. '**/tests/**/*.js'
  24. ],
  25. env: {
  26. jest: true
  27. }
  28. },
  29. {
  30. files: [
  31. '**/*.tsx', '**/*.ts'
  32. ],
  33. plugins: [
  34. '@typescript-eslint',
  35. 'jsx-a11y'
  36. ],
  37. extends: ['plugin:jsx-a11y/recommended'],
  38. parser: '@typescript-eslint/parser',
  39. rules: {
  40. 'camelcase': 'off',
  41. 'no-unused-vars': 'off',
  42. 'no-undef': 'off',
  43. 'no-use-before-define': 'off',
  44. '@typescript-eslint/no-unused-vars': ['error'],
  45. 'jsx-a11y/no-onchange': 'off',
  46. }
  47. },
  48. ]
  49. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...