Skip to content

Commit f8ebd01

Browse files
committed
remove ts, use babel
1 parent 2dad384 commit f8ebd01

File tree

277 files changed

+83740
-63165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

277 files changed

+83740
-63165
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.json
2+
*.md
3+
*.css
4+
*.d.ts

.eslintrc.js

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
module.exports = {
2+
plugins: ['prettier'],
3+
extends: ['eslint:recommended', 'prettier'],
4+
parser: 'babel-eslint',
5+
parserOptions: {
6+
ecmaVersion: 11,
7+
sourceType: 'module',
8+
ecmaFeatures: {
9+
jsx: true
10+
}
11+
},
12+
env: {
13+
es6: true,
14+
browser: true,
15+
node: true,
16+
jest: true
17+
},
18+
rules: {
19+
'no-debugger': 2,
20+
'no-alert': 2,
21+
'no-await-in-loop': 0,
22+
'no-prototype-builtins': 0,
23+
'no-return-assign': ['error', 'except-parens'],
24+
'no-restricted-syntax': [
25+
2,
26+
'ForInStatement',
27+
'LabeledStatement',
28+
'WithStatement'
29+
],
30+
'no-unused-vars': [
31+
0,
32+
{
33+
ignoreSiblings: true,
34+
argsIgnorePattern: 'React|res|next|^_'
35+
}
36+
],
37+
'prefer-const': [
38+
'error',
39+
{
40+
destructuring: 'all'
41+
}
42+
],
43+
'no-unused-expressions': [
44+
2,
45+
{
46+
allowTaggedTemplates: true
47+
}
48+
],
49+
'no-console': 1,
50+
'comma-dangle': 2,
51+
'jsx-quotes': [2, 'prefer-double'],
52+
'linebreak-style': ['error', 'unix'],
53+
quotes: [
54+
2,
55+
'single',
56+
{
57+
avoidEscape: true,
58+
allowTemplateLiterals: true
59+
}
60+
],
61+
'prettier/prettier': [
62+
'error',
63+
{
64+
trailingComma: 'none',
65+
singleQuote: true,
66+
printWidth: 80
67+
}
68+
]
69+
}
70+
};

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto
2+
*.js text eol=lf

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
node_modules
21
.DS_Store
2+
.eslintcache
33
*.log
4+
**/node_modules
5+
coverage
6+
packages/**/build
7+
packages/**/main
8+
packages/**/module

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
scripts-prepend-node-path=true

.stylelintrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
processors: ['stylelint-processor-styled-components'],
3+
extends: [
4+
'stylelint-config-recommended',
5+
'stylelint-config-styled-components'
6+
],
7+
rules: {
8+
'property-no-vendor-prefix': null
9+
}
10+
};
11+

.vscode/settings.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"[javascriptreact]": {
4+
"editor.formatOnSave": false
5+
},
6+
"[javascript]": {
7+
"editor.formatOnSave": false
8+
},
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll.eslint": true
11+
},
12+
"eslint.validate": [
13+
"javascript",
14+
"javascriptreact"
15+
]
16+
}

.yarnrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
registry "https://registry.npmjs.org/"
2+
workspaces-experimental true
3+
save-prefix false
4+
save-exact true

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
MIT License
1+
The MIT License (MIT)
22

3-
Copyright (c) 2018-present, Dan Lynch
3+
Copyright (c) 2020 Dan Lynch <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

babel.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
babelrcRoots: 'packages/*',
3+
presets: ['@pyramation/env'],
4+
};

core/latex2js-macros/build/index.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

core/latex2js-macros/build/index.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

core/latex2js-macros/build/types/index.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

core/latex2js-macros/package.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)