diff --git a/.eslintrc.js b/.eslintrc.js index 4907d935..0bf0a168 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,8 +1,18 @@ const config = require('@lobehub/lint').eslint; -config.rules['linebreak-style'] = 0; config.rules['no-undef'] = 0; -config.rules['object-curly-spacing'] = 0; config.rules['unicorn/prefer-add-event-listener'] = 0; +config.rules['unicorn/no-negated-condition'] = 0; +config.rules['unicorn/prefer-type-error'] = 0; +config.rules['unicorn/prefer-logical-operator-over-ternary'] = 0; +config.rules['unicorn/no-null'] = 0; +config.rules['unicorn/no-typeof-undefined'] = 0; +config.rules['unicorn/explicit-length-check'] = 0; +config.rules['unicorn/prefer-code-point'] = 0; +config.rules['no-extra-boolean-cast'] = 0; +config.rules['unicorn/no-useless-undefined'] = 0; +config.rules['react/no-unknown-property'] = 0; +config.rules['unicorn/prefer-ternary'] = 0; +config.rules['unicorn/prefer-spread'] = 0; module.exports = config; diff --git a/javascript/main.js b/javascript/main.js index 7196abc4..1cb06fc5 100644 --- a/javascript/main.js +++ b/javascript/main.js @@ -27,7 +27,19 @@ var U=z,V=Symbol.for("react.element"),G=Symbol.for("react.fragment"),q=Object.pr * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function ve(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n