Skip to content

Commit

Permalink
chore: project init
Browse files Browse the repository at this point in the history
repo fork form https://github.com/mdnice/markdown-nice
reset HEAD to master 0c04c91b9c2aa3f67583479beb3ac71c19a44b56
  • Loading branch information
whaoa committed Jan 11, 2022
0 parents commit 8f5205c
Show file tree
Hide file tree
Showing 199 changed files with 33,216 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/config/
/scripts/
*.test.*
/main.js
*.d.ts
62 changes: 62 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"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
}
}
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: 提交 Bug
about: 提交 Bug 用于改进本项目
title: ''
labels: bug
assignees: guanpengchn

---

**运行环境:**

|操作系统|浏览器|
|---|---|
|macOS|Chrome|

**Markdown文本内容:**

例如:

```md
- 默认文本1
- 默认文本2
- 默认文本3
```

**错误详情:**

例如:块级公式转换错误,控制台报错A is undefined
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: 新特性
about: 有新特性的需要
title: ''
labels: feature
assignees: guanpengchn

---

**新特性描述:**
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

dist
package-lock.json
lib
16 changes: 16 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
build
config
dist
node_modules
public
scripts
src
.eslintrc
.gitignore
.prettierrc
logo.png
main.js
package.json
package-lock.json
yarn.lock
.npmignore
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": false,
"jsxSingleQuote": false,
"trailingComma": "all",
"bracketSpacing": false,
"jsxBracketSameLine": false,
"arrowParens": "always"
}
6 changes: 6 additions & 0 deletions .storybook/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": [
"@babel/env",
"@babel/preset-react"
]
}
8 changes: 8 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { configure } from '@storybook/react';

function loadStories() {
require('../stories/index.js');
// You can require as many stories as you need.
}

configure(loadStories, module);
Loading

0 comments on commit 8f5205c

Please sign in to comment.