Skip to content

Commit

Permalink
initial set-up
Browse files Browse the repository at this point in the history
  • Loading branch information
doinel1a committed Feb 21, 2023
0 parents commit 9b639ca
Show file tree
Hide file tree
Showing 37 changed files with 5,322 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
last 3 versions
> 0.2%
not dead
68 changes: 68 additions & 0 deletions .dependency-cruiser.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/** @type {import('dependency-cruiser').IConfiguration} */
module.exports = {
options: {
doNotFollow: {
dependencyTypes: [
'npm',
'npm-dev',
'npm-optional',
'npm-peer',
'npm-bundled',
'npm-no-pkg'
]
},

includeOnly: '^src',
exclude: ['^src/server', '^src/env', '^src/utils', '^src/types'],

tsPreCompilationDeps: false,

tsConfig: {
fileName: './tsconfig.json'
},

/* How to resolve external modules - use "yarn-pnp" if you're using yarn's Plug'n'Play.
otherwise leave it out (or set to the default, which is 'node_modules')
*/
externalModuleResolutionStrategy: 'yarn-pnp',

progress: { type: 'performance-log' },

reporterOptions: {
archi: {
collapsePattern:
'^src/app/[^/]+|^src/pages/[^/]+|^src/features/.+|^src/ui-kit/[^/]+',

theme: {
modules: [
{
criteria: { collapsed: true },
attributes: { shape: 'tab' }
},
{
criteria: { source: '^src/app/[^/]+' },
attributes: { fillcolor: '#ffbdbd' }
},
{
criteria: { source: '^src/pages/[^/]+' },
attributes: { fillcolor: '#ffd9a3' }
},
{
criteria: { source: '^src/features/[^/]+' },
attributes: { fillcolor: '#aedaff' }
},
{
criteria: { source: '^src/ui-kit/[^/]+' },
attributes: { fillcolor: '#efefef' }
}
],
graph: {
splines: 'ortho',
rankdir: 'TB',
ranksep: '1'
}
}
}
}
}
};
37 changes: 37 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage
/test-results/
/playwright-report/
/playwright/.cache/

# production
/dist

# various
high-level-dependencies.html

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
vite.config.ts
vite-env.d.ts
90 changes: 90 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"plugins": [
"prettier",
"import",
"simple-import-sort",
"promise",
"sonarjs",
"unicorn",
"jsx-a11y",
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:import/recommended",
"plugin:promise/recommended",
"plugin:sonarjs/recommended",
"plugin:unicorn/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"node": {
"extensions": [".ts", ".tsx"],
"moduleDirectory": ["node_modules", "src/"]
},
"typescript": {
"alwaysTryTypes": true
}
},
"react": {
"pragma": "React",
"version": "detect"
}
},
"ignorePatterns": ["**/*.html"],
"rules": {
// base
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "windows"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
// end

// prettier
"arrow-body-style": "off",
"prefer-arrow-callback": "off",
"prettier/prettier": [
"error",
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "none",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "always",
"endOfLine": "crlf"
}
],
// end prettier

// simple-import-sort
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error"
// end simple-import-sort
}
}
42 changes: 42 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage
/test-results/
/playwright-report/
/playwright/.cache/

# production
/dist
/dist-ssr

# various
/playwright-report
high-level-dependencies.html
TODO.md

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit ${1}
37 changes: 37 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage
/test-results/
/playwright-report/
/playwright/.cache/

# production
/dist

# various
high-level-dependencies.html

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
vite.config.ts
vite-env.d.ts
14 changes: 14 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "none",
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "always",
"endOfLine": "crlf",
"plugins": ["prettier-plugin-tailwindcss"]
}
Loading

1 comment on commit 9b639ca

@vercel
Copy link

@vercel vercel bot commented on 9b639ca Feb 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.