1 Star 1 Fork 0

gplove/miot-plugin-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.json 4.31 KB
一键复制 编辑 原始数据 按行查看 历史
{
"root": true,
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/recommended"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".android.js", ".ios.js"]
}
}
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"__DEV__": "readonly",
"setImmediate": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react",
"mihome-plugin"
],
"parser": "babel-eslint",
"rules": {
"mihome-plugin/no-deprecated-comment": "warn",
"mihome-plugin/console-warn-only-dev": "warn",
"no-unused-vars": "warn",
"no-console": "off",
"no-undef": "error",
"no-unreachable": "error",
"no-extra-semi": "error",
"no-regex-spaces": "warn",
"no-mixed-spaces-and-tabs": "warn",
"no-inner-declarations": "error",
"no-empty": "off",
"no-constant-condition": "warn",
"no-useless-escape": "off",
"no-case-declarations": "error",
"no-extra-boolean-cast": "warn",
"no-prototype-builtins": "off",
"spaced-comment": ["warn", "always", {
"block": {
"balanced": true
}
}],
"no-param-reassign": "off",
"comma-dangle": ["warn", "never"],
"prefer-promise-reject-errors": "off",
"arrow-parens": ["warn", "always"],
"prefer-template": "warn",
"max-len": "off",
"no-shadow": "off",
"no-else-return": "off",
"object-curly-newline": "off",
"no-underscore-dangle": "off",
"no-use-before-define": ["error", {
"functions": false,
"classes": false,
"variables": false
}],
"class-methods-use-this": "off",
"brace-style": ["warn", "1tbs", {
"allowSingleLine": true
}],
"no-unused-expressions": ["warn", {
"allowShortCircuit": true,
"allowTernary": true
}],
"padded-blocks": "off",
"consistent-return": "off",
"array-callback-return": ["error", {
"allowImplicit": true
}],
"no-plusplus": "off",
"guard-for-in": "off",
"new-cap": ["warn", {
"newIsCap": true,
"capIsNew": false
}],
"indent": ["warn", 2, {
"SwitchCase": 1
}],
"jsx-quotes": ["warn", "prefer-double"],
"key-spacing": ["warn", {
"beforeColon": false,
"afterColon": true,
"mode": "strict"
}],
"new-parens": ["error"],
"no-whitespace-before-property": ["warn"],
"no-restricted-syntax": ["error", "WithStatement"],
"func-call-spacing": ["warn", "never"],
"comma-spacing": ["warn", {
"before": false,
"after": true
}],
"computed-property-spacing": ["warn", "never"],
"semi": ["warn", "always"],
"no-var": ["warn"],
"prefer-rest-params": ["error"],
"object-curly-spacing": ["warn", "always"],
"arrow-spacing": ["warn", {
"before": true,
"after": true
}],
"rest-spread-spacing": ["error", "never"],
"template-curly-spacing": ["warn", "always"],
"space-before-blocks": ["warn", "always"],
"space-before-function-paren": ["warn", "never"],
"space-in-parens": ["warn", "never"],
"space-infix-ops": ["warn"],
"space-unary-ops": ["warn", {
"words": true,
"nonwords": false
}],
"semi-spacing": ["warn", {
"before": false,
"after": true
}],
"keyword-spacing": ["warn", {
"before": true,
"after": true
}],
"block-spacing": ["warn", "always"],
"array-bracket-spacing": ["warn", "never"],
"no-multi-spaces": "warn",
"no-duplicate-imports": "warn",
"import/no-duplicates": "off",
"import/no-extraneous-dependencies": ["warn", {
"packageDir": "./"
}],
"import/default": "off",
"import/no-cycle": "warn",
"import/no-named-as-default-member": "warn",
"react/forbid-prop-types": "off",
"react/require-default-props": "off",
"react/sort-comp": "off",
"react/display-name": "off",
"react/destructuring-assignment": "off",
"react/prop-types": ["warn", {
"ignore": ["children", "key", "ref", "navigation"]
}],
"react/jsx-filename-extension": "off",
"react/no-deprecated": "warn",
"react/no-string-refs": "error",
"react/no-direct-mutation-state": "error"
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gplove1111/miot-plugin-sdk.git
git@gitee.com:gplove1111/miot-plugin-sdk.git
gplove1111
miot-plugin-sdk
miot-plugin-sdk
master

搜索帮助