rem引入报错error 'rem' is defined but never used no-unused-vars

227 阅读1分钟
1.import rem from "../assets/rem"
    改成
    import "../assets/rem"
2.在package.json文件内加入如下代码:
    "rules": {
	"generator-star-spacing": "off",
	"no-tabs":"off",
	"no-unused-vars":"off",
	"no-console":"off",
	"no-irregular-whitespace":"off",
	"no-debugger": "off"
}
3.在安装项目的时候不安装ESLint:

    Use ESLint to lint your code? NO