mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-02 03:57:36 +08:00
30 lines
518 B
JavaScript
30 lines
518 B
JavaScript
module.exports = {
|
|
root: true,
|
|
parserOptions: {
|
|
parser: require.resolve('babel-eslint'),
|
|
ecmaVersion: 2018,
|
|
sourceType: 'module'
|
|
},
|
|
env: {
|
|
es6: true,
|
|
node: true,
|
|
browser: true
|
|
},
|
|
plugins: [
|
|
"flowtype"
|
|
],
|
|
extends: [
|
|
"eslint:recommended",
|
|
"plugin:flowtype/recommended"
|
|
],
|
|
globals: {
|
|
"__WEEX__": true,
|
|
"WXEnvironment": true
|
|
},
|
|
rules: {
|
|
'no-console': process.env.NODE_ENV !== 'production' ? 0 : 2,
|
|
'no-useless-escape': 0,
|
|
'no-empty': 0
|
|
}
|
|
}
|