Skip to content

Commit 1614294

Browse files
Merge branch 'master'
2 parents cc8fc8d + 2fc0905 commit 1614294

18 files changed

+15561
-5
lines changed

.babelrc.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'use strict';
2+
3+
const output = process.env.BABEL_OUTPUT;
4+
const modules = output == null ? false : output;
5+
const options = {
6+
presets: [['@babel/env', { loose: true, modules }]],
7+
env: {
8+
test: {
9+
// extra configuration for process.env.NODE_ENV === 'test'
10+
presets: ['@babel/env'], // overwrite env-config from above with transpiled module syntax
11+
},
12+
},
13+
};
14+
15+
module.exports = options;

.eslintrc.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"es6": true,
6+
"node": true,
7+
"jest": true
8+
},
9+
"extends": [
10+
"eslint:recommended",
11+
"plugin:prettier/recommended"
12+
],
13+
"settings": {
14+
"react": {
15+
"version": "detect"
16+
}
17+
},
18+
"parser": "@babel/eslint-parser",
19+
"parserOptions": {
20+
"ecmaFeatures": {
21+
"jsx": true
22+
},
23+
"ecmaVersion": 12,
24+
"sourceType": "module",
25+
"allowImportExportEverywhere": false
26+
},
27+
"plugins": [
28+
"eslint-plugin-prettier"
29+
],
30+
"rules": {
31+
"prettier/prettier": [
32+
"error",
33+
{
34+
"endOfLine": "auto"
35+
}
36+
]
37+
}
38+
}

.gitignore

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
1-
node_modules
2-
build
3-
dist
4-
lib
5-
sandbox
1+
#ide
2+
3+
# dependencies
4+
/node_modules
5+
example/node_modules
6+
/.pnp
7+
.pnp.js
8+
9+
# testing
10+
/coverage
11+
/sandbox
12+
13+
# production
14+
/build
15+
/lib
16+
/dist
17+
18+
# demo
19+
/demo
20+
21+
# misc
22+
.DS_Store
23+
.env.local
24+
.env.development.local
25+
.env.test.local
26+
.env.production.local
27+
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*

.npmignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#ide
2+
/.vscode
3+
4+
# dependencies
5+
/node_modules
6+
/.pnp
7+
.pnp.js
8+
9+
# production
10+
webpack*
11+
rollup*
12+
.babelrc.js
13+
14+
#development
15+
/build
16+
/sandbox
17+
18+
#demo
19+
/example
20+
index.html
21+
/demo
22+
23+
# testing
24+
/coverage
25+
26+
# misc
27+
.DS_Store
28+
.env.local
29+
.env.development.local
30+
.env.test.local
31+
.env.production.local
32+
33+
npm-debug.log*
34+
yarn-debug.log*
35+
yarn-error.log*

.prettierignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#ide
2+
/.vscode
3+
4+
# dependencies
5+
/node_modules
6+
example/node_modules
7+
/.pnp
8+
.pnp.js
9+
10+
# testing
11+
/coverage
12+
13+
# production
14+
/build
15+
/lib
16+
/dist
17+
18+
# demo
19+
/demo
20+
21+
# misc
22+
.DS_Store
23+
.env.local
24+
.env.development.local
25+
.env.test.local
26+
.env.production.local
27+
28+
npm-debug.log*
29+
yarn-debug.log*
30+
yarn-error.log*

.prettierrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"arrowParens": "always",
3+
"bracketSpacing": false,
4+
"jsxBracketSameLine": true,
5+
"printWidth": 120,
6+
"semi": true,
7+
"singleQuote": true,
8+
"tabWidth": 2,
9+
"trailingComma": "all",
10+
"useTabs": false,
11+
"proseWrap": "never"
12+
}

CHANGELOG.md

Whitespace-only changes.

CODE_OF_CONDUCT.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Contributing
2+
3+
## Semantic Versioning
4+
5+
`more-tabs` follows semantic versioning. We release patch versions for critical bugfixes, minor versions for new features or non-essential changes, and major versions for any breaking changes.
6+
7+
## Proposing a Change
8+
9+
Patches for bugfixes are always welcome. Please accompany pull requests for bugfixes with a test case that is fixed by the PR. If you want to implement a new feature, It is advised to open an issue first in the GitHub.
10+
11+
## Before submitting a pull request, please make sure the following is done:
12+
13+
- Fork the repository and create your branch from master.
14+
- If you’ve fixed a bug or added code that should be tested, add tests.
15+
- Ensure the test suite passes : `$ npm run test`
16+
- Format your code with prettier.
17+
- Make sure you don't check-in any ESLint violations : `$ npm run lint`
18+
- Update README with appropriate docs.
19+
- Commit and PR

0 commit comments

Comments
 (0)