vue ts总是提示 not in camel case
2021-04-12 14:57:26
vue ts总是提示 not in camel case,你问我为什么要关? 因为后台的sql的数据表字段使用的下划线
解决方案:
修改vue文件目录下的 .eslintrc.js
rules: { indent: ["off", 2], "space-before-function-paren": 0, "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", 'camelcase': 'off', '@typescript-eslint/camelcase': 0, "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off" }
添加了
'camelcase': 'off', '@typescript-eslint/camelcase': 0,