13 Star 51 Fork 11

凹凸实验室 / Taro-UI

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.json 5.07 KB
一键复制 编辑 原始数据 按行查看 历史
robin 提交于 2023-11-17 10:37 . Feat/3.2.0 (#1697)
{
"root": true,
"extends": [
"o2team",
"eslint:recommended",
"plugin:prettier/recommended"
],
"overrides": [
{
"files": [
"packages/**/*.ts",
"packages/**/*.tsx",
"packages/**/*.d.ts"
],
"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"
],
"import/no-named-as-default": "off",
"class-methods-use-this": "off",
"prefer-rest-params": "off",
"react/jsx-filename-extension": [
2,
{
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "React"
}
],
"@typescript-eslint/no-empty-interface": "off",
"no-console": [
"error",
{
"allow": [
"warn",
"error"
]
}
],
"camelcase": [
"error",
{
"allow": [
"^UNSAFE_"
]
}
],
"@typescript-eslint/ban-ts-comment": "off"
},
"settings": {
"import/ignore": [
"react-native"
],
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx",
".d.ts"
]
}
}
}
},
{
"files": [
"packages/**/*.js",
"packages/**/*.jsx"
],
"parser": "@babel/eslint-parser",
"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",
"packages/taro-ui-demo-rn/**/*.ts",
"packages/taro-ui-demo-rn/**/*.tsx"
],
"extends": [
"taro/react"
]
},
{
"files": [
"packages/taro-ui-demo/config/*.js",
"packages/taro-ui-demo/babel.config.js",
"packages/taro-ui-demo-rn/**/*.ts",
"packages/taro-ui-demo-rn/**/*.tsx"
],
"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"
}
]
}
}
]
}
1
https://gitee.com/o2team/Taro-UI.git
git@gitee.com:o2team/Taro-UI.git
o2team
Taro-UI
Taro-UI
next

搜索帮助

53164aa7 5694891 3bd8fe86 5694891