Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
chore(): init repo
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainCoudour committed Mar 14, 2021
1 parent eecd541 commit 31417f7
Show file tree
Hide file tree
Showing 19 changed files with 7,697 additions and 327 deletions.
9 changes: 9 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
presets: [["babel-preset-jason", { runtime: false }]],
plugins: [["babel-plugin-transform-react-remove-prop-types", { mode: "wrap" }]],
env: {
esm: {
presets: [["babel-preset-jason", { modules: false }]],
},
},
};
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EditorConfig helps developers define and maintain
# consistent coding styles between different editors and IDEs.

root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules
/build
/dist
66 changes: 66 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"root": true,
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"extends": [
"react-app",
"plugin:react/recommended",
"airbnb-base/legacy",
"airbnb/hooks",
"airbnb",
"prettier"
],
"rules": {
"semi": ["warn", "always"],
"quotes": ["warn", "double"],
"max-len": [
"warn",
{
"code": 100,
"tabWidth": 4,
"ignoreUrls": true,
"ignoreTemplateLiterals": true,
"ignoreStrings": true
}
],
"react/jsx-filename-extension": ["off"],
"react/state-in-constructor": ["off"],
"react/prop-types": ["off"],
"react/jsx-props-no-spreading": ["off"],
"react/sort-comp": ["off"],
"react/no-did-update-set-state": ["off"],
"react/jsx-sort-props": [
"warn",
{
"callbacksLast": true,
"shorthandFirst": true,
"shorthandLast": false,
"ignoreCase": true,
"noSortAlphabetically": false,
"reservedFirst": true
}
],
"no-console": ["warn", { "allow": ["off", "error"] }],
"no-restricted-syntax": "off",
"import/no-cycle": "off",
"no-param-reassign": ["warn", { "props": false }],
"no-plusplus": "off",
"no-return-assign": ["error", "except-parens"],
"class-methods-use-this": "off",
"no-case-declarations": "warn",
"import/prefer-default-export": "off",
"no-continue": "off"
}
}
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: ""
assignees: ""
---

**Describe the bug**
A clear and concise description of what the bug is.

**Reproducible test case**
Include a URL (codepen.io, jsfiddle.net, Git repository, codesandbox.io, stackblitz.com, etc.) that demonstrates the problem.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Desktop (please complete the following information):**

- Browser [e.g. chrome, safari]
- Version

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
9 changes: 9 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Amsterdam styled components pull request

Before opening a pull request, please ensure:

- [ ] You've added or updated the [README.md](../blob/master/README.md) if needed
- [ ] Your code has the necessary tests written
- [ ] You have updated the [CHANGELOG.md unreleased sections](../blob/master/CHANGELOG.md)

Be kind to code reviewers, please try to keep pull requests as small and focused as possible :)
19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm"
open-pull-requests-limit: 5
directory: "/"
target-branch: "master"
versioning-strategy: increase-if-necessary
schedule:
interval: "weekly"
day: "sunday"
pull-request-branch-name:
separator: "-"
commit-message:
prefix: "chore(dep-bot):"
reviewers:
- "RomainCoudour"
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI
on: []
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [10.14.x]
react:
[
16.2.x,
16.3.x,
16.4.x,
16.5.x,
16.6.x,
16.7.x,
16.8.x,
16.9.x,
16.10.x,
16.11.x,
16.12.x,
17.0.x,
]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: npm install, build, and test
run: |
npm install
npm run build
npm install react@${{ matrix.react }} react-dom@${{ matrix.react }} react-test-renderer@${{ matrix.react }}
npm list react react-dom react-test-renderer
npm run lint
npm run test
- name: dist
run: |
npm run dist

0 comments on commit 31417f7

Please sign in to comment.