1 Star 0 Fork 0

轻云吻雪/taro-ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.json 4.38 KB
一键复制 编辑 原始数据 按行查看 历史
{
"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"
}
]
}
}
]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/light_clouds_kiss_snow/taro-ui.git
git@gitee.com:light_clouds_kiss_snow/taro-ui.git
light_clouds_kiss_snow
taro-ui
taro-ui
next

搜索帮助

0d507c66 1850385 C8b1a773 1850385