.eslintrc.js
703 Bytes
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-11-28 10:33:29
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-11-28 15:44:33
* @FilePath: \rollup_demo\.eslintrc.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
module.exports = {
root: true,
env: {
node: true
},
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 7,
sourceType: 'module'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
}
}