Skip to content

Commit

Permalink
tests: setup unit tests, and add firsts
Browse files Browse the repository at this point in the history
  • Loading branch information
p6te committed Jan 3, 2024
1 parent 58f1f05 commit c560cc7
Show file tree
Hide file tree
Showing 13 changed files with 3,960 additions and 248 deletions.
21 changes: 11 additions & 10 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
env: { browser: true, es2021: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"prettier",
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parser: "@typescript-eslint/parser",
plugins: ["react", "react-refresh", "prettier"],
rules: {
'react-refresh/only-export-components': [
'warn',
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
},
}
};
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ lerna-debug.log*
node_modules
dist
dist-ssr
coverage
*.local

# Editor directories and files
Expand All @@ -23,4 +24,4 @@ dist-ssr
*.sln
*.sw?

.env
.env
8 changes: 8 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const config = {
trailingComma: 'es5',
tabWidth: 2,
semi: true,
singleQuote: false,
};

module.exports = config;
Loading

0 comments on commit c560cc7

Please sign in to comment.