.eslintrc.js 842 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. 'use strict';
  2. module.exports = {
  3. root: true,
  4. extends: ['eslint:recommended', 'prettier'],
  5. parserOptions: {
  6. ecmaVersion: 2018,
  7. },
  8. env: {
  9. es6: true,
  10. },
  11. globals: {
  12. exports: true,
  13. module: true,
  14. require: true,
  15. window: true,
  16. },
  17. plugins: ['prettier'],
  18. rules: {
  19. 'prettier/prettier': [
  20. 'warn',
  21. {
  22. printWidth: 100,
  23. singleQuote: true,
  24. trailingComma: 'es5',
  25. },
  26. ],
  27. strict: ['warn', 'global'],
  28. },
  29. overrides: [
  30. {
  31. files: ['lib/implementedProperties.js', 'lib/properties.js'],
  32. rules: {
  33. 'prettier/prettier': 'off',
  34. },
  35. },
  36. {
  37. files: 'scripts/**/*',
  38. rules: {
  39. 'no-console': 'off',
  40. },
  41. },
  42. {
  43. files: ['scripts/**/*', 'tests/**/*'],
  44. env: {
  45. node: true,
  46. },
  47. },
  48. ],
  49. };