mirror of https://github.com/longtai-cn/hippo4j
parent
5c148f0096
commit
65742f786f
@ -1,31 +1,31 @@
|
||||
module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
es6: true,
|
||||
node: true,
|
||||
},
|
||||
extends: ["airbnb", "prettier"],
|
||||
parser: "babel-eslint",
|
||||
parserOptions: {
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
},
|
||||
},
|
||||
plugins: ["react"],
|
||||
rules: {
|
||||
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||
"react/prefer-stateless-function": 0, // 关闭react默认的props-type验证
|
||||
"react/prop-types": [0],
|
||||
"react/jsx-closing-bracket-location": "off",
|
||||
"consistent-return": "off",
|
||||
// 关闭使用解构赋值的检测
|
||||
"react/destructuring-assignment": [0, "always"],
|
||||
// 解决require报错问题
|
||||
"import/no-extraneous-dependencies": ["error", { devDependencies: true }],
|
||||
"react/jsx-wrap-multilines": "off",
|
||||
"global-require": 0,
|
||||
"jsx-a11y/no-static-element-interactions": 0,
|
||||
"jsx-a11y/click-events-have-key-events": 0,
|
||||
},
|
||||
};
|
||||
module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
es6: true,
|
||||
node: true,
|
||||
},
|
||||
extends: ["airbnb", "prettier"],
|
||||
parser: "babel-eslint",
|
||||
parserOptions: {
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
},
|
||||
},
|
||||
plugins: ["react"],
|
||||
rules: {
|
||||
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
||||
"react/prefer-stateless-function": 0, // 关闭react默认的props-type验证
|
||||
"react/prop-types": [0],
|
||||
"react/jsx-closing-bracket-location": "off",
|
||||
"consistent-return": "off",
|
||||
// 关闭使用解构赋值的检测
|
||||
"react/destructuring-assignment": [0, "always"],
|
||||
// 解决require报错问题
|
||||
"import/no-extraneous-dependencies": ["error", { devDependencies: true }],
|
||||
"react/jsx-wrap-multilines": "off",
|
||||
"global-require": 0,
|
||||
"jsx-a11y/no-static-element-interactions": 0,
|
||||
"jsx-a11y/click-events-have-key-events": 0,
|
||||
},
|
||||
};
|
Loading…
Reference in new issue