max": 100 }],
"no-mixed-spaces-and-tabs": [0],
//不能使用console
"no-console": 'off',
//未定义变量不能使用..."no-undef": 0,
//一行结束后面不要有空格
"no-trailing-spaces": 1,
//强制驼峰法命名
"camelcase": 2,...对象字面量项尾不能有逗号
"comma-dangle": [2, "never"],
//this别名
"consistent-this": [2, "that"],
}
};
说明:
"no-undef...": 0,和"no-undef": 'off',一样,表示关闭该功能
"no-undef": 1, 表示仅提示
"no-undef": 2, 表示报错
配置信息(完整版)
见下一篇文章