You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
783 B

4 years ago
4 years ago
4 years ago
  1. module.exports = {
  2. root: true,
  3. env: {
  4. browser: true,
  5. node: true
  6. },
  7. extends: [
  8. '@nuxtjs',
  9. 'plugin:nuxt/recommended',
  10. '@nuxtjs/eslint-config-typescript',
  11. 'prettier'
  12. ],
  13. rules: {
  14. 'no-console': 'off',
  15. 'no-restricted-syntax': [
  16. 'error',
  17. {
  18. selector: "CallExpression[callee.object.name='console'][callee.property.name!=/^(log|warn|error|info|trace)$/]",
  19. message: 'Unexpected property on console object was called'
  20. }
  21. ],
  22. 'vue/valid-template-root': 'off',
  23. 'space-before-function-paren': ['error', 'never'],
  24. 'no-useless-constructor': 'off',
  25. '@typescript-eslint/no-useless-constructor': 'off',
  26. 'no-unused-vars': 'off',
  27. '@typescript-eslint/no-unused-vars': 'off',
  28. camelcase: 'off'
  29. }
  30. }