You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.eslintrc.js 1.1KB

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