方诺官网改正版
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.
 
 
 

39 lines
1019 B

  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true,
  5. browser: true
  6. },
  7. extends: [
  8. "plugin:vue/recommended",
  9. "eslint:recommended",
  10. "prettier/vue",
  11. "plugin:prettier/recommended"
  12. ],
  13. rules: {
  14. "vue/component-name-in-template-casing": ["error", "PascalCase"],
  15. "no-console": process.env.NODE_ENV === "production" ? "error" : "off",
  16. "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
  17. //强制使用单引号
  18. quotes: [0, 'single'],
  19. //强制不使用分号结尾
  20. semi: [0, 'never'],
  21. 'prettier/prettier': [
  22. 0,
  23. {
  24. singleQuote: true,
  25. trailingComma: 'none',
  26. bracketSpacing: true,
  27. jsxBracketSameLine: true,
  28. parser: 'flow',
  29. },
  30. ],
  31. },
  32. globals: {
  33. cash: true,
  34. $nuxt: true
  35. },
  36. parserOptions: {
  37. parser: "babel-eslint"
  38. }
  39. };