9 Star 0 Fork 1

OpenHarmony-SIG/rntpc_react-native-pdfview

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.json 1.83 KB
一键复制 编辑 原始数据 按行查看 历史
Maksym Rusynyk 提交于 2022-06-21 19:30 . Migrate to TypeScript
{
"env": {
"browser": true,
"es2021": true,
"es6": true,
"jasmine": true
},
"extends": [
"plugin:react/recommended",
"airbnb"
],
"globals": {
"jest": false,
"__DEV__": false
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint"
],
"rules": {
"import/no-extraneous-dependencies": 0,
"react/destructuring-assignment": 0,
"operator-linebreak": 0,
"react/sort-comp": 0,
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 0 }],
"no-underscore-dangle": 0,
"class-methods-use-this": 0,
"import/extensions": 0,
"no-plusplus": 0,
"no-await-in-loop": 0,
"max-classes-per-file": 0,
"global-require": 0,
"react/jsx-filename-extension": 0,
"react/require-default-props": 0,
"no-use-before-define": 0,
"react/jsx-props-no-spreading": 0,
"react/static-property-placement": 0,
"@typescript-eslint/no-use-before-define": ["error"]
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser",
"rules": {
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/consistent-type-imports": [
2,
{ "prefer": "type-imports" }
]
}
}
]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony-sig/rntpc_react-native-pdfview.git
[email protected]:openharmony-sig/rntpc_react-native-pdfview.git
openharmony-sig
rntpc_react-native-pdfview
rntpc_react-native-pdfview
master

搜索帮助