eslint.config.mjs 608 B

1234567891011121314151617181920212223242526272829
  1. import ljharb from '@ljharb/eslint-config/flat';
  2. export default [
  3. ...ljharb,
  4. {
  5. rules: {
  6. 'array-bracket-newline': 'off',
  7. complexity: 'off',
  8. eqeqeq: 'warn',
  9. 'func-style': ['error', 'declaration'],
  10. 'max-depth': 'off',
  11. 'max-lines-per-function': 'off',
  12. 'max-statements': 'off',
  13. 'multiline-comment-style': 'off',
  14. 'no-extra-parens': 'off',
  15. 'no-lonely-if': 'warn',
  16. 'no-negated-condition': 'warn',
  17. 'no-param-reassign': 'warn',
  18. 'no-shadow': 'warn',
  19. 'no-template-curly-in-string': 'off',
  20. },
  21. },
  22. {
  23. files: ['example/**'],
  24. rules: {
  25. 'no-console': 'off',
  26. },
  27. },
  28. ];