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 1.0 KB

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. root: true,
  3. parserOptions: {
  4. ecmaVersion: 2018,
  5. sourceType: 'module'
  6. },
  7. plugins: [
  8. 'ember'
  9. ],
  10. extends: [
  11. 'eslint:recommended',
  12. 'plugin:ember/recommended'
  13. ],
  14. env: {
  15. browser: true
  16. },
  17. rules: {
  18. },
  19. overrides: [
  20. // node files
  21. {
  22. files: [
  23. '.eslintrc.js',
  24. '.template-lintrc.js',
  25. 'ember-cli-build.js',
  26. 'testem.js',
  27. 'blueprints/*/index.js',
  28. 'config/**/*.js',
  29. 'lib/*/index.js',
  30. 'server/**/*.js'
  31. ],
  32. parserOptions: {
  33. sourceType: 'script'
  34. },
  35. env: {
  36. browser: false,
  37. node: true
  38. },
  39. plugins: ['node'],
  40. rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
  41. // add your custom rules and overrides for node files here
  42. // this can be removed once the following is fixed
  43. // https://github.com/mysticatea/eslint-plugin-node/issues/77
  44. 'node/no-unpublished-require': 'off'
  45. })
  46. }
  47. ]
  48. };
Tip!

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

Comments

Loading...