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.cjs 888 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
  1. module.exports = {
  2. root: true,
  3. parser: "@typescript-eslint/parser",
  4. extends: [
  5. "eslint:recommended",
  6. "plugin:@typescript-eslint/recommended",
  7. "plugin:svelte/recommended",
  8. "prettier",
  9. ],
  10. plugins: ["@typescript-eslint"],
  11. ignorePatterns: ["*.cjs"],
  12. overrides: [
  13. {
  14. files: ["*.svelte"],
  15. parser: "svelte-eslint-parser",
  16. parserOptions: {
  17. parser: "@typescript-eslint/parser",
  18. },
  19. },
  20. ],
  21. parserOptions: {
  22. sourceType: "module",
  23. ecmaVersion: 2020,
  24. extraFileExtensions: [".svelte"],
  25. },
  26. rules: {
  27. "no-shadow": ["error"],
  28. "@typescript-eslint/no-explicit-any": "error",
  29. "@typescript-eslint/no-non-null-assertion": "error",
  30. "@typescript-eslint/no-unused-vars": [
  31. // prevent variables with a _ prefix from being marked as unused
  32. "error",
  33. {
  34. argsIgnorePattern: "^_",
  35. },
  36. ],
  37. },
  38. env: {
  39. browser: true,
  40. es2017: true,
  41. node: true,
  42. },
  43. };
Tip!

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

Comments

Loading...