.eslintrc.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. module.exports = {
  2. env: {
  3. node: true,
  4. es6: true,
  5. mocha: true,
  6. },
  7. rules: {
  8. 'import/no-commonjs': 'off', // remove after converting to TS.
  9. // Disabling Rules because of monorepo environment:
  10. // https://github.com/benmosher/eslint-plugin-import/issues/1174
  11. 'import/no-extraneous-dependencies': 'off',
  12. 'import/no-nodejs-modules': 'off', // nodejs project
  13. 'no-console': 'off', // we use console in the project
  14. '@typescript-eslint/no-var-requires': 'warn',
  15. '@typescript-eslint/naming-convention': 'off',
  16. },
  17. overrides: [
  18. {
  19. files: [
  20. '**/test/ranges.js',
  21. '**/test/lru.js',
  22. '**/test/fs/walk.js',
  23. '**/test/storage.js',
  24. '**/test/identities.js',
  25. '**/test/balances.js',
  26. '**/test/assets.js',
  27. ],
  28. rules: {
  29. // Disabling Rules because of used chai lib:
  30. // https://stackoverflow.com/questions/45079454/no-unused-expressions-in-mocha-chai-unit-test-using-standardjs
  31. 'no-unused-expressions': 'off',
  32. },
  33. },
  34. ],
  35. }