Skip to content

Commit

Permalink
Initialize repository
Browse files Browse the repository at this point in the history
  • Loading branch information
dlguswo333 committed Jul 24, 2023
0 parents commit 6ea0892
Show file tree
Hide file tree
Showing 16 changed files with 8,499 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:react-hooks/recommended'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
root: true,
ignorePatterns: ['*.js', '*.cjs', '*.d.ts'],
rules: {
'indent': ['error', 2],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'jsx-quotes': ['error', 'prefer-single'],
'space-infix-ops': 'error',
'keyword-spacing': 'error',
'eol-last': 'error',
'comma-dangle': ['error', {
'arrays': 'never',
'objects': 'only-multiline',
'imports': 'never',
'exports': 'never',
'functions': 'never'
}],
'object-curly-spacing': 'error',
'space-before-function-paren': ['error', 'always'],
'space-before-blocks': ['error', 'always'],
'arrow-spacing': 'error',
'@typescript-eslint/type-annotation-spacing': ['error', {
before: false,
after: true,
overrides: {
arrow: {before: true, after: true}
}
}],
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
}
};
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# dependencies
# Ignore workspace node_modules because of vite cache.
# https://stackoverflow.com/a/74665163/20140921
node_modules

# production
/package/dist
/preview/dist

# editor
/.vscode

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

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

0 comments on commit 6ea0892

Please sign in to comment.