.eslintrc.js 631 B

123456789101112131415161718192021
  1. module.exports = {
  2. env: {
  3. mocha: true,
  4. },
  5. parserOptions: {
  6. project: './tsconfig.json'
  7. },
  8. extends: [
  9. // The oclif rules have some code-style/formatting rules which may conflict with
  10. // our prettier global settings. Disabling for now
  11. // I suggest to only add essential rules absolutely required to make the cli work with oclif
  12. // at the end of this file.
  13. // "oclif",
  14. // "oclif-typescript",
  15. ],
  16. rules: {
  17. 'no-unused-vars': 'off', // Required by the typescript rule below
  18. '@typescript-eslint/no-unused-vars': ['error'],
  19. '@typescript-eslint/no-floating-promises': 'error',
  20. },
  21. }