You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
518 B
30 lines
518 B
6 years ago
|
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
|
||
|
}
|
||
|
}
|