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.

31 lines
803 B

3 years ago
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. 'prettier/vue'
  13. ],
  14. rules: {
  15. 'no-console': 'off',
  16. 'no-restricted-syntax': [
  17. 'error',
  18. {
  19. selector: "CallExpression[callee.object.name='console'][callee.property.name!=/^(log|warn|error|info|trace)$/]",
  20. message: 'Unexpected property on console object was called'
  21. }
  22. ],
  23. 'vue/valid-template-root': 'off',
  24. 'space-before-function-paren': ['error', 'never'],
  25. 'no-useless-constructor': 'off',
  26. '@typescript-eslint/no-useless-constructor': 'off',
  27. 'no-unused-vars': 'off',
  28. '@typescript-eslint/no-unused-vars': 'off',
  29. camelcase: 'off'
  30. }
  31. }