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.

25 lines
543 B

  1. module.exports = {
  2. root: true,
  3. env: {
  4. browser: true,
  5. node: true
  6. },
  7. parserOptions: {
  8. parser: 'babel-eslint'
  9. },
  10. extends: [
  11. '@nuxtjs',
  12. 'plugin:nuxt/recommended'
  13. ],
  14. // add your custom rules here
  15. rules: {
  16. "no-console": "off",
  17. "no-restricted-syntax": [
  18. "error",
  19. {
  20. "selector": "CallExpression[callee.object.name='console'][callee.property.name!=/^(log|warn|error|info|trace)$/]",
  21. "message": "Unexpected property on console object was called"
  22. }
  23. ]
  24. }
  25. }