From 65742f786f36972cea38271fe2c215fd923fe635 Mon Sep 17 00:00:00 2001 From: yikai <15270421125@163.com> Date: Mon, 8 May 2023 22:33:27 +0800 Subject: [PATCH] eslint --- hippo4j-ui-new/{.esintrc.js => .eslintrc.js} | 62 ++++++++++---------- 1 file changed, 31 insertions(+), 31 deletions(-) rename hippo4j-ui-new/{.esintrc.js => .eslintrc.js} (96%) diff --git a/hippo4j-ui-new/.esintrc.js b/hippo4j-ui-new/.eslintrc.js similarity index 96% rename from hippo4j-ui-new/.esintrc.js rename to hippo4j-ui-new/.eslintrc.js index b6cbcb9f..3d64b436 100644 --- a/hippo4j-ui-new/.esintrc.js +++ b/hippo4j-ui-new/.eslintrc.js @@ -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, + }, +};