Skip to content

Commit ff77b66

Browse files
committed
feat: rewrote and refactored for browser support
1 parent 9c8961b commit ff77b66

File tree

118 files changed

+16956
-10520
lines changed

Some content is hidden

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

118 files changed

+16956
-10520
lines changed

.browserslistrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Browsers that we support
2+
3+
> 1%
4+
last 2 versions

.commitlintrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"@commitlint/config-conventional"
4+
]
5+
}

.dist.babelrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"presets": [
3+
["@babel/env", {
4+
"targets": {
5+
"browsers": [ "> 1%", "last 2 versions" ]
6+
}
7+
}]
8+
]
9+
}

.dist.eslintrc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"extends": ["eslint:recommended"],
3+
"env": {
4+
"node": false,
5+
"browser": true,
6+
"amd": true,
7+
"es6": true,
8+
"commonjs": true
9+
},
10+
"plugins": ["compat"],
11+
"rules": {
12+
"no-unused-vars": "warn",
13+
"no-cond-assign": "warn"
14+
},
15+
"globals": {
16+
},
17+
"settings": {
18+
"polyfills": [
19+
]
20+
}
21+
}

.gitignore

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# OS #
2+
###################
3+
.DS_Store
4+
.idea
5+
Thumbs.db
6+
tmp/
7+
temp/
8+
9+
10+
# Node.js #
11+
###################
112
node_modules
2-
src-cov
3-
later-cov.js
13+
14+
15+
# NYC #
16+
###################
17+
coverage
18+
*.lcov
19+
.nyc_output
20+
21+
22+
# Files #
23+
###################
24+
*.log
25+
lib
26+
dist

.lib.babelrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"presets": [
3+
["@babel/env", {
4+
"targets": {
5+
"node": "6.4.0",
6+
"browsers": [ "> 1%", "last 2 versions" ]
7+
}
8+
}]
9+
],
10+
"sourceMaps": "both"
11+
}

.lib.eslintrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": ["eslint:recommended", "plugin:node/recommended"],
3+
"env": { "browser": true" },
4+
"plugins": ["compat"],
5+
"rules": {
6+
"no-cond-assign": "warn"
7+
},
8+
"settings": {
9+
"polyfills": []
10+
}
11+
}

.lintstagedrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
"*.md,!test/**/*.md": [
3+
filenames => filenames.map(filename => `remark ${filename} -qfo`)
4+
],
5+
'package.json': 'fixpack',
6+
'*.js': 'xo --fix'
7+
};

.nycrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extension": [
3+
".js"
4+
],
5+
"report-dir": "./coverage",
6+
"temp-dir": "./.nyc_output",
7+
"reporter": ["lcov", "html", "text"],
8+
"check-coverage": true,
9+
"lines": 100,
10+
"functions": 100,
11+
"branches": 100
12+
}

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"bracketSpacing": true,
4+
"trailingComma": "none"
5+
}

0 commit comments

Comments
 (0)