Skip to content

Commit

Permalink
Add library prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
klis87 committed Jan 24, 2023
0 parents commit cf5a358
Show file tree
Hide file tree
Showing 40 changed files with 12,621 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/*.snap
**/dist/**
**/es/**
**/lib/**
**/*.html
**/*.hbs
107 changes: 107 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"prettier",
"prettier/react"
],
"plugins": ["import", "react"],
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"jest": true,
"browser": true,
"es6": true,
"node": true
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"camelcase": 2,
"no-lonely-if": 2,
"no-tabs": 2,
"no-unneeded-ternary": 2,
"prefer-exponentiation-operator": 2,
"prefer-object-spread": 2,
"unicode-bom": 2,
"no-useless-rename": 2,
"no-var": 2,
"object-shorthand": 2,
"prefer-const": 2,
"no-useless-constructor": 2,
"no-useless-computed-key": 2,
"no-duplicate-imports": 2,
"prefer-template": 2,
"no-use-before-define": 2,
"no-undef-init": 2,
"no-shadow": 2,
"require-await": 2,
"no-useless-return": 2,
"no-useless-concat": 2,
"no-return-assign": 2,
"no-return-await": 2,
"no-template-curly-in-string": 2,
"no-unreachable-loop": 2,
"require-atomic-updates": 2,
"consistent-return": 2,
"curly": 2,
"eqeqeq": 2,
"no-else-return": 2,
"no-extra-bind": 2,
"no-lone-blocks": 2,
"no-self-compare": 2,
"no-sequences": 2,
"no-console": 1,

"import/no-unresolved": 2,
"import/no-self-import": 2,
"import/first": 2,
"import/newline-after-import": 2,
"import/no-named-default": 2,
"import/dynamic-import-chunkname": 2,
"import/no-unused-modules": [
0,
{
"missingExports": false,
"unusedExports": true,
"ignoreExports": ["**/*/index.js"]
}
],
"import/no-extraneous-dependencies": 2,
"import/order": [
2,
{
"groups": ["builtin", "external", "parent", "sibling", "index"],
"newlines-between": "always"
}
],
"import/named": 2,

"react/prop-types": 0,
"react/no-array-index-key": 0,
"react/button-has-type": 2,
"react/no-access-state-in-setstate": 2,
"react/no-redundant-should-component-update": 2,
"react/no-unsafe": 2,
"react/no-unused-state": 2,
"react/self-closing-comp": 2,
"react/style-prop-object": 2,
"react/jsx-boolean-value": 2,
"react/jsx-fragments": 2,
"react/jsx-no-script-url": 2,
"react/jsx-no-useless-fragment": 2,
"react/jsx-pascal-case": 2,
"react/jsx-filename-extension": 2,

"react-hooks/exhaustive-deps": 0
}
}
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules
yarn-error.log
lerna-debug.log
dist
es
lib
.nyc_output
coverage
*.tgz
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "avoid"
}
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: node_js
node_js:
- node
script:
- yarn run build
- yarn run lint
- yarn run lint-examples
- yarn run test:cover
- yarn run test-types
- yarn run bundlesize
after_success: yarn run coveralls
cache: yarn
# addons:
# apt:
# sources:
# - ubuntu-toolchain-r-test
# packages:
# - g++-4.8
# env:
# - CXX=g++-4.8

2 changes: 2 additions & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
save-prefix ""
workspaces-experimental true
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See https://github.com/klis87/normy/releases
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Konrad Lisiczyński

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit cf5a358

Please sign in to comment.