Skip to content

Commit

Permalink
initial setup boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
fadi committed Dec 22, 2022
1 parent 6a57ff0 commit a6dbade
Show file tree
Hide file tree
Showing 31 changed files with 1,597 additions and 402 deletions.
10 changes: 10 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# don't ever lint node_modules
node_modules
node_modules/*

# don't lint build output (make sure it's set to your correct build folder name)
build

# don't lint nyc coverage output
coverage
src/serviceWorker.ts
37 changes: 37 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jsx-a11y/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint', 'jsx-a11y'],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-non-null-assertion': 'off', // !
'@typescript-eslint/no-extra-non-null-assertion': 'off', // !!
'@typescript-eslint/explicit-module-boundary-types': 'error',
'no-async-promise-executor': 'off',
'no-extra-boolean-cast': 'off',
},
settings: {
react: {
version: 'detect',
},
},
};
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged && npm run lint && npm run test -- --watchAll=false --passWithNoTests
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
coverage
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 80,
"singleQuote": true,
"trailingComma": "all"
}
Loading

0 comments on commit a6dbade

Please sign in to comment.