Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
smeijer committed Sep 11, 2021
0 parents commit 3dcb805
Show file tree
Hide file tree
Showing 29 changed files with 11,973 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.cache
dist
cypress

/.coverage
/.next
/dist
/build
43 changes: 43 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['eslint-plugin-simple-import-sort'],
extends: [
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended',
],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
rules: {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'prefer-const': [
'error',
{
destructuring: 'all',
},
],
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
// '@typescript-eslint/no-unnecessary-condition': 'error',
curly: ['error', 'multi-line', 'consistent'],
},

overrides: [
{
files: [
'__tests__/**/*.{ts,js}',
'**/*.test.{ts,tsx}',
'./scripts/*.{js,ts,tsx}',
],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-var-requires': 'off',
isolatedModules: 'off',
},
},
],
};
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/node_modules
/coverage
/lib

# misc
.DS_Store
*.pem

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

# local env files
.env.*
10 changes: 10 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
'**/*.{js,jsx}': (files) => [`eslint --quiet --fix ${files.join(' ')}`],
'**/*.{ts,tsx}': (files) => [
`tsc --noEmit`,
`eslint --quiet --fix ${files.join(' ')}`,
],
'**/*.{md,js,json,yml,html,css,pcss}': (files) => [
`prettier --write ${files.join(' ')}`,
],
};
Empty file added .npmignore
Empty file.
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.cache
dist
cypress

/.coverage
/.next
/dist
/build
15 changes: 15 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
semi: true,
trailingComma: 'all',
singleQuote: true,
printWidth: 80,
tabWidth: 2,
overrides: [
{
files: '*.html',
options: {
printWidth: 120,
},
},
],
};
3 changes: 3 additions & 0 deletions .unimportedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"entry": ["src/*.{ts,tsx}"]
}
Empty file added README.md
Empty file.
6 changes: 6 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
Loading

0 comments on commit 3dcb805

Please sign in to comment.