1 Star 0 Fork 3

lord999/nestjs-mysql-api-react

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 1.78 KB
一键复制 编辑 原始数据 按行查看 历史
shuiping.kuang 提交于 2021-04-02 13:54 +08:00 . feat: 定义常量
module.exports = {
root: true,
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
extends: [
'react-app',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:prettier/recommended',
'eslint:recommended',
'plugin:react/recommended',
],
settings: {
react: {
createClass: 'createReactClass', // Regex for Component Factory to use,
// default to "createReactClass"
pragma: 'React', // Pragma to use, default to "React"
fragment: 'Fragment', // Fragment to use (may be a property of <pragma>), default to "Fragment"
version: 'detect', // React version. "detect" automatically picks the version you have installed.
// You can also use `16.0`, `16.3`, etc, if you want to override the detected value.
// default to latest and warns if missing
// It will default to "detect" in the future
flowVersion: '0.53', // Flow version
},
propWrapperFunctions: [
// The names of any function used to wrap propTypes, e.g. `forbidExtraProps`. If this isn't set, any propTypes wrapped in a function will be skipped.
'forbidExtraProps',
{ property: 'freeze', object: 'Object' },
{ property: 'myFavoriteWrapper' },
],
linkComponents: [
// Components used as alternatives to <a> for linking, eg. <Link to={ url } />
'Hyperlink',
{ name: 'Link', linkAttribute: 'to' },
],
},
plugins: ['react', '@typescript-eslint', 'react-hooks', 'prettier'],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
env: {
browser: true,
node: true,
es6: true,
mocha: true,
},
rules: {
'@typescript-eslint/no-inferrable-types': 0,
'no-unused-vars': 0,
'react/prop-types': 0,
"react/display-name": "off",
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/jiujiaowoshangdiba_admin/nestjs-mysql-api-react.git
git@gitee.com:jiujiaowoshangdiba_admin/nestjs-mysql-api-react.git
jiujiaowoshangdiba_admin
nestjs-mysql-api-react
nestjs-mysql-api-react
master

搜索帮助