yapi/.eslintrc.js
2017-10-05 09:12:44 +08:00

30 lines
648 B
JavaScript
Executable File

module.exports = {
env: {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
extends: ["eslint:recommended", "plugin:react/recommended"],
parser: "babel-eslint",
parserOptions: {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
plugins: [
"react",
"import"
],
rules: {
"indent": ["off", 2],
"react/display-name": ["off"],
"react/jsx-indent": ["error", 2],
"comma-dangle": ["error", "never"],
"no-console": ["off"],
"import/no-unresolved": ["off"]
}
};