generated from cfpb/open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from cfpb/3-copy-base-app
[Setup] Copy over base Filing app from Prototype
- Loading branch information
Showing
1,298 changed files
with
44,575 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "cz-conventional-changelog" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,196 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es2021": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": ["react-prefer-function-component"], | ||
"extends": [ | ||
"eslint:all", | ||
"plugin:@typescript-eslint/all", | ||
"plugin:import/recommended", | ||
"plugin:import/typescript", | ||
"plugin:react/all", | ||
"plugin:jsx-a11y/recommended", | ||
"airbnb", | ||
"airbnb-typescript", | ||
"airbnb/hooks", | ||
"plugin:react/jsx-runtime", | ||
"plugin:unicorn/all", | ||
"plugin:react-prefer-function-component/recommended", | ||
"prettier" | ||
], | ||
"rules": { | ||
"no-dupe-else-if": "error", | ||
"no-promise-executor-return": "error", | ||
"no-unreachable-loop": "error", | ||
"no-useless-backreference": "error", | ||
"require-atomic-updates": "error", | ||
"default-case-last": "error", | ||
"grouped-accessor-pairs": "error", | ||
"no-constructor-return": "error", | ||
"no-implicit-coercion": "error", | ||
"prefer-regex-literals": "error", | ||
"capitalized-comments": "error", | ||
"no-restricted-syntax": [ | ||
"error", | ||
{ | ||
"selector": "ForInStatement", | ||
"message": "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array." | ||
}, | ||
{ | ||
"selector": "LabeledStatement", | ||
"message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand." | ||
}, | ||
{ | ||
"selector": "WithStatement", | ||
"message": "`with` is disallowed in strict mode because it makes code impossible to predict and optimize." | ||
} | ||
], | ||
"no-void": "off", | ||
|
||
"@typescript-eslint/padding-line-between-statements": "off", | ||
"@typescript-eslint/prefer-enum-initializers": "off", | ||
"@typescript-eslint/prefer-readonly-parameter-types": "off", | ||
"@typescript-eslint/prefer-regexp-exec": "off", | ||
"@typescript-eslint/no-magic-numbers": [ | ||
"error", | ||
{ | ||
"ignoreEnums": true, | ||
"ignore": [0], | ||
"enforceConst": true, | ||
"detectObjects": true | ||
} | ||
], | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/init-declarations": "off", | ||
"@typescript-eslint/no-confusing-void-expression": [ | ||
"error", | ||
{ "ignoreArrowShorthand": true } | ||
], | ||
"@typescript-eslint/non-nullable-type-assertion-style": "off", | ||
"@typescript-eslint/strict-boolean-expressions": "off", | ||
"@typescript-eslint/no-implicit-any-catch": "off", | ||
"@typescript-eslint/member-ordering": "off", | ||
"@typescript-eslint/prefer-includes": "off", | ||
"@typescript-eslint/no-restricted-imports": "off", | ||
|
||
"import/no-deprecated": "error", | ||
"import/order": "off", | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
"devDependencies": [ | ||
"cypress.config.ts", | ||
"vite.config.ts", | ||
"src/setupTests.ts", | ||
"src/testUtils.tsx", | ||
"src/mocks/**", | ||
"**/__tests__/*.{ts,tsx}" | ||
] | ||
} | ||
], | ||
|
||
"react/no-did-update-set-state": "off", | ||
"react/no-find-dom-node": "off", | ||
"react/no-is-mounted": "off", | ||
"react/no-redundant-should-component-update": "off", | ||
"react/no-render-return-value": "off", | ||
"react/no-string-refs": "off", | ||
"react/no-this-in-sfc": "off", | ||
"react/no-will-update-set-state": "off", | ||
"react/prefer-es6-class": "off", | ||
"react/no-unused-state": "off", | ||
"react/prefer-stateless-function": "off", | ||
"react/require-render-return": "off", | ||
"react/sort-comp": "off", | ||
"react/state-in-constructor": "off", | ||
"react/static-property-placement": "off", | ||
|
||
"react/boolean-prop-naming": [ | ||
"error", | ||
{ | ||
"validateNested": true | ||
} | ||
], | ||
"react/function-component-definition": [ | ||
"error", | ||
{ | ||
"namedComponents": "function-declaration" | ||
} | ||
], | ||
"react/no-unstable-nested-components": "error", | ||
"react/jsx-handler-names": [ | ||
"error", | ||
{ | ||
"eventHandlerPrefix": "on", | ||
"eventHandlerPropPrefix": "on", | ||
"checkLocalVariables": true, | ||
"checkInlineFunction": true | ||
} | ||
], | ||
"react/jsx-key": "error", | ||
"react/jsx-no-bind": [ | ||
"error", | ||
{ | ||
"ignoreRefs": false, | ||
"allowArrowFunctions": true, | ||
"allowFunctions": true, | ||
"allowBind": false, | ||
"ignoreDOMComponents": false | ||
} | ||
], | ||
"react/jsx-no-constructed-context-values": "error", | ||
"react/jsx-no-script-url": "error", | ||
"react/jsx-no-useless-fragment": "error", | ||
|
||
"unicorn/filename-case": [ | ||
"error", | ||
{ | ||
"cases": { | ||
"camelCase": true, | ||
"pascalCase": true | ||
} | ||
} | ||
], | ||
"unicorn/no-nested-ternary": ["error"] | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["src/**/*.ts?(x)"], | ||
"parserOptions": { | ||
"project": ["./tsconfig.json"] | ||
} | ||
}, | ||
{ | ||
"files": ["vite.config.ts", "cypress.config.ts"], | ||
"parserOptions": { | ||
"project": ["./tsconfig.node.json"] | ||
} | ||
}, | ||
{ | ||
"files": ["**/__tests__/**/*.ts?(x)"], | ||
"extends": ["plugin:testing-library/react"], | ||
"rules": { | ||
"@typescript-eslint/no-magic-numbers": ["off"], | ||
"testing-library/no-await-sync-events": [ | ||
"error", | ||
{ | ||
"eventModules": ["fire-event"] | ||
} | ||
], | ||
"testing-library/no-manual-cleanup": "error", | ||
"testing-library/prefer-explicit-assert": "error", | ||
"testing-library/prefer-user-event": "error", | ||
"testing-library/prefer-wait-for": "error" | ||
} | ||
} | ||
] | ||
} |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @wtchnm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extends": ["config:js-app", "schedule:weekly", "group:allNonMajor"], | ||
"labels": ["dependencies"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
React: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Run React tests | ||
run: yarn test:ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,18 @@ | ||
# Compiled source # | ||
################### | ||
*.com | ||
*.class | ||
*.dll | ||
*.exe | ||
*.o | ||
*.so | ||
_site/ | ||
|
||
# Packages # | ||
############ | ||
# it's better to unpack these files and commit the raw source | ||
# git has its own built in compression methods | ||
*.7z | ||
*.dmg | ||
*.gz | ||
*.iso | ||
*.jar | ||
*.rar | ||
*.tar | ||
*.zip | ||
|
||
# Logs and databases # | ||
###################### | ||
*.log | ||
*.sql | ||
*.sqlite | ||
|
||
# OS generated files # | ||
###################### | ||
node_modules | ||
.DS_Store | ||
.DS_Store? | ||
.Spotlight-V100 | ||
.Trashes | ||
Icon? | ||
ehthumbs.db | ||
Thumbs.db | ||
|
||
# Vim swap files # | ||
################## | ||
*.swp | ||
|
||
# Python # | ||
################# | ||
*.pyc | ||
*.egg-info/ | ||
__pycache__/ | ||
*.py[cod] | ||
.env | ||
.python-version | ||
|
||
# pyenv # | ||
######### | ||
.python-version | ||
|
||
# Django # | ||
################# | ||
*.egg-info | ||
.installed.cfg | ||
|
||
# Unit test / coverage reports | ||
################# | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
|
||
# Front-End # | ||
############# | ||
node_modules/ | ||
bower_components/ | ||
.grunt/ | ||
src/vendor/ | ||
dist/ | ||
dist | ||
dist-ssr | ||
*.local | ||
.eslintcache | ||
coverage | ||
.nyc_output | ||
.stylelintcache | ||
cypress/videos | ||
|
||
.yarn/* | ||
!.yarn/cache | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
pnpm lint-staged |
Oops, something went wrong.