1 Star 1 Fork 0

linwu-hi/markdown

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
linwu-hi 提交于 2023-09-07 19:14 +08:00 . fix:update
{
"extends": ["airbnb", "plugin:prettier/recommended"], // eslint扩展规则
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"parser": "babel-eslint", // 解决ES6 improt会报错
"env": {
// eg如果不配置browser,window就会被eslint报undefined的错
"es6": true,
"browser": true,
"node": true
},
"plugins": ["react", "jsx-a11y", "import"],
"rules": {
"quotes": [0, "double"],
"class-methods-use-this": 0,
"import/no-named-as-default": 0,
"react/jsx-filename-extension": [
"error",
{
"extensions": [".js", ".jsx"]
}
],
"react/prop-types": 0,
"react/destructuring-assignment": 0,
"react/no-array-index-key": 0,
"no-use-before-define": 0,
"no-restricted-syntax": 0,
"no-var": 0,
"vars-on-top": 0,
"no-plusplus": 0,
"no-continue": 0,
"prefer-template": 0,
"object-shorthand": 0,
"no-else-return": 0,
"no-param-reassign": 0,
"no-unused-vars": 1,
"jsx-a11y/anchor-is-valid": 0,
"react/jsx-props-no-spreading": 0,
"import/no-extraneous-dependencies": 0,
"import/order": 0,
"jsx-a11y/mouse-events-have-key-events": 0,
"no-lonely-if": 0,
"one-var": 0,
"react/prefer-stateless-function": 0,
"react/jsx-wrap-multilines": 0,
"no-unused-expressions": 0,
"react/no-danger": 0,
"no-console": 0,
"camelcase": 0,
"import/no-dynamic-require": 1,
"global-require": 1,
"react/forbid-prop-types": 1,
"jsx-a11y/accessible-emoji": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/linwu-hi/md.git
git@gitee.com:linwu-hi/md.git
linwu-hi
md
markdown
main

搜索帮助