mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
18 lines
380 B
JavaScript
18 lines
380 B
JavaScript
module.exports = {
|
|
parser: 'babel-eslint',
|
|
extends: ["eslint:recommended", "plugin:react/recommended"],
|
|
parserOptions: {
|
|
"sourceType": 'module',
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
}
|
|
},
|
|
plugins: [
|
|
"react"
|
|
],
|
|
rules: {
|
|
"indent": ["error", 2, { "SwitchCase": 1 }],
|
|
"react/display-name": ["off"]
|
|
}
|
|
}
|