Skip to content

Commit

Permalink
feat: Initial setup (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
mircostraessle authored and buehler committed Dec 18, 2019
1 parent 8f93085 commit cc34471
Show file tree
Hide file tree
Showing 12 changed files with 2,119 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"rules": {
"react/prop-types": 0,
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "off"
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
}
},
"plugins": ["react", "@typescript-eslint", "prettier", "react-hooks"]
}
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

.cache/
coverage/
dist/
node_modules/
*.log
.env

# OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
12 changes: 12 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
include:
- project: 'smartive/ci-templates'
ref: v1.2.2
file: '/github/defaults/npm.yml'

variables:
REPO: 'smartive/react-pwa-toolbox'

create release:
before_script:
- npm ci
- npm run build
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
src/
/*.*
!package.json
!LICENCE
!README.md
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package.json
package-lock.json
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
singleQuote: true
printWidth: 125
trailingComma: 'all'
arrowParens: 'always'
jsxBracketSameLine: true
Loading

0 comments on commit cc34471

Please sign in to comment.