Skip to content

Commit 469acda

Browse files
committed
chore: init 3.0.0-beta.1
0 parents  commit 469acda

37 files changed

+1979
-0
lines changed

.commitlintrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-angular'],
3+
rules: {
4+
'type-enum': [
5+
2,
6+
'always',
7+
['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test', 'wip'],
8+
],
9+
},
10+
};

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
charset = utf-8
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
indent_style = space
13+
indent_size = 2
14+
15+
[Makefile]
16+
indent_style = tab
17+
indent_size = 1
18+
19+
[*.md]
20+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist/
3+
test
4+
build/

.eslintrc

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"extends": [
3+
"eslint:recommended",
4+
"plugin:@typescript-eslint/recommended",
5+
"plugin:@typescript-eslint/eslint-recommended",
6+
"prettier"
7+
],
8+
"parser": "@typescript-eslint/parser",
9+
"plugins": ["prettier", "@typescript-eslint", "import"],
10+
"parserOptions": {
11+
"ecmaVersion": 6,
12+
"sourceType": "module",
13+
"impliedStrict": true
14+
},
15+
"rules": {
16+
"no-sparse-arrays": 0,
17+
"no-self-assign": 0,
18+
"no-unused-vars": 0, // @typescript-eslint/no-unused-vars
19+
"no-inner-declarations": 0,
20+
"prettier/prettier": 2,
21+
"@typescript-eslint/no-unused-vars": 1,
22+
"@typescript-eslint/no-non-null-assertion": 0,
23+
"@typescript-eslint/no-explicit-any": 0,
24+
"@typescript-eslint/no-use-before-define": [2, { "functions": false }],
25+
"@typescript-eslint/ban-ts-ignore": 0,
26+
"@typescript-eslint/interface-name-prefix": 0,
27+
"@typescript-eslint/no-empty-interface": 0,
28+
"@typescript-eslint/camelcase": 0,
29+
"@typescript-eslint/no-inferrable-types": 0,
30+
"@typescript-eslint/explicit-function-return-type": 0,
31+
"@typescript-eslint/type-annotation-spacing": 0,
32+
"@typescript-eslint/no-empty-function": 0,
33+
"@typescript-eslint/explicit-module-boundary-types": "off",
34+
"@typescript-eslint/ban-types": "off",
35+
"no-undef": 0,
36+
"@typescript-eslint/no-var-requires": 0,
37+
"import/order": 0,
38+
"import/no-default-export": 0
39+
}
40+
}

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: build
2+
3+
on: ["push", "pull_request"]
4+
5+
jobs:
6+
build:
7+
runs-on: macOS-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- name: Use Node.js 12
11+
uses: actions/setup-node@v1
12+
with:
13+
node-version: 12.10.0
14+
- name: npm install
15+
run: |
16+
npm install
17+
- name: build
18+
run: |
19+
npm run build
20+
env:
21+
CI: true
22+
- name: Coveralls
23+
uses: coverallsapp/github-action@master
24+
with:
25+
github-token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# lock
9+
package-lock.json
10+
11+
# Runtime data
12+
pids
13+
*.pid
14+
*.seed
15+
*.pid.lock
16+
17+
# Directory for instrumented libs generated by jscoverage/JSCover
18+
lib-cov
19+
20+
# Coverage directory used by tools like istanbul
21+
coverage
22+
23+
# nyc test coverage
24+
.nyc_output
25+
26+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
27+
.grunt
28+
29+
# Bower dependency directory (https://bower.io/)
30+
bower_components
31+
32+
# node-waf configuration
33+
.lock-wscript
34+
35+
# Compiled binary addons (http://nodejs.org/api/addons.html)
36+
build/Release
37+
38+
# Dependency directories
39+
node_modules/
40+
jspm_packages/
41+
42+
yarn.lock
43+
44+
# Typescript v1 declaration files
45+
typings/
46+
47+
# Optional npm cache directory
48+
.npm
49+
50+
# Optional eslint cache
51+
.eslintcache
52+
53+
# Optional REPL history
54+
.node_repl_history
55+
56+
# Output of 'npm pack'
57+
*.tgz
58+
59+
# Yarn Integrity file
60+
.yarn-integrity
61+
62+
# dotenv environment variables file
63+
.env
64+
65+
public
66+
build
67+
dist
68+
temp
69+
.DS_Store
70+
.idea
71+
.cache
72+
demos/assets/screenshots
73+
/lib
74+
/esm
75+
/dist
76+
77+
*.sw*
78+
*.un~
79+
80+
.vscode
81+
/stats.json
82+
.umi
83+
.umi-production

.lintmdrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"rules": {
3+
"no-long-code": 1
4+
}
5+
}

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
stats.json
2+
.cache
3+
dist
4+
.umi

.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"trailingComma": "es5",
5+
"bracketSpacing": true,
6+
"printWidth": 120,
7+
"arrowParens": "always",
8+
"endOfLine": "auto"
9+
}

.umirc.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { defineConfig } from 'dumi';
2+
3+
export default defineConfig({
4+
mode: 'site',
5+
title: '\b',
6+
base: '/',
7+
publicPath: process.env.NODE_ENV === 'production' ? '/echarts-for-react/' : '/',
8+
exportStatic: {},
9+
logo: 'https://cdn.jsdelivr.net/gh/apache/echarts-website@asf-site/zh/images/logo.png?_v_=20200710_1',
10+
styles: [
11+
'.__dumi-default-navbar-logo:not([data-plaintext]) { padding-left: 200px!important; }',
12+
'.echarts-for-react.class_1 { height: 400px!important; }',
13+
'.echarts-for-react.class_2 { height: 500px!important; }',
14+
],
15+
navs: [
16+
null,
17+
{ title: '在线文档', path: 'https://github.com/hustcc/echarts-for-react' },
18+
{ title: 'GitHub', path: 'https://github.com/hustcc/echarts-for-react' },
19+
],
20+
analytics: {
21+
},
22+
// more config: https://d.umijs.org/config
23+
});

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 AntV team
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do { so, subject } to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)