Skip to content

Commit b92ee39

Browse files
committed
support create table syntax, format code
1 parent 5ecbbe2 commit b92ee39

33 files changed

+2971
-598
lines changed

.babelrc

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"presets": [
3+
[
4+
"env",
5+
{
6+
"targets": {
7+
"node": "10.16.3"
8+
},
9+
"modules": "commonjs",
10+
"useBuiltIns": true,
11+
"debug": false
12+
}
13+
]
14+
],
15+
"plugins": [
16+
"transform-object-rest-spread"
17+
]
18+
}

.eslintrc

+4-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"no-underscore-dangle": 0,
107107
"no-plusplus": 0,
108108
"no-console": [
109-
2,
109+
0,
110110
{
111111
"allow": [
112112
"warn",
@@ -124,6 +124,8 @@
124124
"argsIgnorePattern": "next|receiver"
125125
}
126126
],
127-
"import/no-dynamic-require": 1
127+
"import/no-dynamic-require": 1,
128+
"import/no-cycle": 0,
129+
"import/prefer-default-export": 0
128130
}
129131
}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules/
22
build/
33
coverage/
4+
lib/
5+
index.d.ts

.npmignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ test/
88
.eslintrc
99
.eslintrcignore
1010
.editorconfig
11-
.travis.yml
11+
.travis.yml
12+
src

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Parser = require('./lib/parser')
1+
const Parser = require('./lib/parser').default
22
const util = require('./lib/util')
33

44
module.exports = {

0 commit comments

Comments
 (0)