-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* replace mocha with jest * example updated to run in vite * update packages * Add example for padding to docs * remove decorators back into main class (due to issues with typescript conversion)
- Loading branch information
Showing
53 changed files
with
32,443 additions
and
23,035 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,57 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"extends": ["standard", "standard-react", "prettier", "eslint:recommended"], | ||
"env": { | ||
"es6": true, | ||
"jest": true | ||
}, | ||
"plugins": ["react", "prettier"], | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaVersion": 2018, | ||
"ecmaFeatures": { | ||
"impliedStrict": true, | ||
"jsx": true, | ||
"arrowFunctions": true, | ||
"blockBindings": true, | ||
"defaultParams": true, | ||
"destructuring": true, | ||
"forOf": true, | ||
"generators": true, | ||
"objectLiteralComputedProperties": true, | ||
"objectLiteralShorthandMethods": true, | ||
"objectLiteralShorthandProperties": true, | ||
"experimentalObjectRestSpread": true, | ||
"restParams": true, | ||
"spread": true, | ||
"templateStrings": true, | ||
"modules": true, | ||
"classes": true | ||
} | ||
}, | ||
"rules": { | ||
"react/jsx-no-bind": "off", | ||
"space-before-function-paren": 0, | ||
"react/jsx-boolean-value": 0, | ||
"max-len": [2, { "code": 120, "ignoreComments": true }], | ||
"newline-per-chained-call": 0, | ||
"no-trailing-spaces": ["error"], | ||
"quotes": ["error", "single", { "avoidEscape": true }], | ||
"comma-dangle": ["error", "never"], | ||
"no-template-curly-in-string": "off", | ||
"semi": ["error", "always"], | ||
"object-curly-spacing": ["error", "always"], | ||
"quote-props": ["error", "consistent"], | ||
"no-var": ["error"] | ||
} | ||
} | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"extends": [ | ||
// "standard", | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react/recommended" | ||
], | ||
"env": { | ||
//error with "es2021": true | ||
"es6": true, | ||
"jest": true, | ||
"node": true, | ||
"browser": true | ||
}, | ||
"plugins": ["@typescript-eslint", "react", "react-hooks"], | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
"sourceType": "module", | ||
"requireConfigFile": false, | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"rules": { | ||
"react/jsx-uses-react": "off", | ||
"react/react-in-jsx-scope": "off", | ||
"react/prop-types": "off", | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "warn", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"react/jsx-no-bind": [ | ||
"warn", | ||
{ | ||
"ignoreRefs": true | ||
} | ||
], | ||
"space-before-function-paren": 0, | ||
"react/jsx-boolean-value": 0, | ||
"max-len": [2, { "code": 120, "ignoreComments": true }], | ||
"newline-per-chained-call": 0, | ||
"no-trailing-spaces": ["error"], | ||
"quotes": ["error", "single", { "avoidEscape": true }], | ||
"comma-dangle": ["error", "never"], | ||
"no-template-curly-in-string": "off", | ||
"semi": ["error", "always"], | ||
"object-curly-spacing": ["error", "always"], | ||
"quote-props": ["error", "consistent"], | ||
"no-var": ["error"], | ||
"indent": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Node.js CI | ||
|
||
on: | ||
push: | ||
branches: [master, wip/react-18] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'yarn' | ||
- run: yarn install | ||
- run: yarn test | ||
- name: Semantic release | ||
uses: cycjimmy/semantic-release-action@v3 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn commitlint --edit $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn pretest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
// Specify "require" for CommonJS | ||
"require": "ts-node/register", | ||
// Specify "loader" for native ESM | ||
"loader": "ts-node/esm", | ||
"extensions": ["ts", "tsx"], | ||
"spec": ["test/**/*.spec.*"], | ||
"watch-files": ["src"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
// prettier.config.js or .prettierrc.js | ||
module.exports = { | ||
singleQuote: true, | ||
trailingComma: "none", | ||
trailingComma: 'none', | ||
tabWidth: 2, | ||
printWidth: 80, | ||
semi: true, | ||
bracketSpacing: true, | ||
jsxBracketSameLine: false, | ||
endOfLine: "lf" | ||
endOfLine: 'lf' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/changelog", | ||
"@semantic-release/npm", | ||
"@semantic-release/git" | ||
], | ||
"ci": true, | ||
"debug": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"extends": "stylelint-config-standard", | ||
"ignoreFiles": [ | ||
"src/decorators/*.js" | ||
] | ||
"extends": "stylelint-config-standard-scss", | ||
"ignoreFiles": ["src/decorators/*.js", "src/*.jsx", "**/*.js"], | ||
"rules": { | ||
"selector-class-pattern": null | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
nodeLinker: node-modules | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs | ||
spec: '@yarnpkg/plugin-interactive-tools' | ||
|
||
yarnPath: .yarn/releases/yarn-3.2.0.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = { extends: ['@commitlint/config-conventional'] }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="src/favicon.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite React TypeScript Tailwind Starter</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/index.tsx"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.