mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
42 lines
805 B
JavaScript
42 lines
805 B
JavaScript
|
module.exports = {
|
||
|
"env": {
|
||
|
"browser": true,
|
||
|
"commonjs": true,
|
||
|
"es6": true,
|
||
|
"node": true
|
||
|
},
|
||
|
"extends": "eslint:recommended",
|
||
|
"parser": "babel-eslint",
|
||
|
"parserOptions": {
|
||
|
"ecmaFeatures": {
|
||
|
"experimentalObjectRestSpread": true,
|
||
|
"jsx": true
|
||
|
},
|
||
|
"sourceType": "module"
|
||
|
},
|
||
|
"plugins": [
|
||
|
"react"
|
||
|
],
|
||
|
"rules": {
|
||
|
"indent": [
|
||
|
"error",
|
||
|
4,
|
||
|
{
|
||
|
"SwitchCase": 1
|
||
|
}
|
||
|
],
|
||
|
"linebreak-style": [
|
||
|
"error",
|
||
|
"unix"
|
||
|
],
|
||
|
"quotes": [
|
||
|
"error",
|
||
|
"single"
|
||
|
],
|
||
|
"semi": [
|
||
|
"error",
|
||
|
"always"
|
||
|
],
|
||
|
"strict": 0
|
||
|
}
|
||
|
};
|