.eslintrc.js 842 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. };