代码拉取完成,页面将自动刷新
{
"root": true,
"extends": [
"o2team",
"eslint:recommended",
"plugin:prettier/recommended"
],
"overrides": [
{
"files": [
"packages/**/*.ts",
"packages/**/*.tsx"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"warnOnUnsupportedTypeScriptVersion": true
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"rules": {
"@typescript-eslint/no-explicit-any": [
"off"
],
"@typescript-eslint/member-delimiter-style": [
"off"
],
"class-methods-use-this": "off",
"prefer-rest-params": "off",
"react/jsx-filename-extension": [
2,
{
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
],
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "React"
}
],
"no-console": [
"error",
{
"allow": [
"warn",
"error"
]
}
],
"camelcase": [
"error",
{
"allow": [
"^UNSAFE_"
]
}
]
},
"settings": {
"react": {
"version": "detect"
}
}
},
{
"files": [
"packages/**/*.js",
"packages/**/*.jsx"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2017,
"ecmaFeatures": {
"jsx": true
},
"babelOptions": {
"configFile": "./babel.config.json",
"rootMode": "upward"
}
},
"extends": [
"plugin:import/errors",
"plugin:import/warnings",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"rules": {
"class-methods-use-this": "off",
"prefer-rest-params": "off",
"react/jsx-filename-extension": [
2,
{
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
],
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "React"
}
],
"no-console": [
"error",
{
"allow": [
"warn",
"error"
]
}
],
"camelcase": [
"error",
{
"allow": [
"^UNSAFE_"
]
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx"
]
},
"eslint-import-resolver-custom-alias": {
"alias": {
"@md": "./markdown"
},
"packages": [
"packages/taro-ui-docs"
]
}
},
"react": {
"version": "detect"
}
}
},
{
"files": [
"packages/taro-ui-docs/build/*.js"
],
"rules": {
"no-console": "off",
"no-undefined": "off"
}
},
{
"files": [
"packages/taro-ui-demo/**/*.ts",
"packages/taro-ui-demo/**/*.tsx"
],
"extends": [
"taro/react"
]
},
{
"files": [
"packages/taro-ui-demo/config/*.js",
"packages/taro-ui-demo/babel.config.js"
],
"rules": {
"import/no-commonjs": "off"
}
},
{
"files": [
"packages/**/test/**/*.test.js",
"packages/**/test/**/test.js"
],
"rules": {
"taro/no-stateless-component": "off",
"react/react-in-jsx-scope": "off",
"react/no-find-dom-node": "off",
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "Nerv"
}
]
}
}
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。