Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor & upgrade #171

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 0 additions & 87 deletions .all-contributorsrc

This file was deleted.

4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

42 changes: 42 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
jsxPragma: "null",
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
extraFileExtensions: [],
},
ignorePatterns: ["**/lib", "**/dist", "**/*.json"],
extends: [
"react-app", // provides @typescript-eslint DO NOT added it twice
"react-app/jest",
"plugin:jsx-a11y/recommended",
"prettier",
],
// @see https://eslint.org/docs/latest/user-guide/configuring/rules
// @see https://typescript-eslint.io/rules/some-rule-name-here
// 0 off
// 1 warn
// 2 error
rules: {
// use what makes sense
"@typescript-eslint/prefer-nullish-coalescing": 0,
// force error
"@typescript-eslint/restrict-template-expressions": 2,
// too many false positives/TSC does it better
"@typescript-eslint/await-thenable": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-unnecessary-condition": 0,
"@typescript-eslint/no-unnecessary-type-assertion": 0,
"@typescript-eslint/no-unsafe-argument": 1,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/no-unsafe-return": 0,
},
};
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
* text=auto
*.js text eol=lf
bun.lockb binary
bun.lockb linguist-generated=true
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

42 changes: 0 additions & 42 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
node_modules
coverage
dist
styleguide
.opt-in
.opt-out
Expand All @@ -12,3 +11,7 @@ styleguide
package-lock.json
yarn.lock
yarn-error.log

# cosmos
cosmos.imports.ts
build/
2 changes: 0 additions & 2 deletions .npmrc

This file was deleted.

20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

4 changes: 0 additions & 4 deletions CHANGELOG.md

This file was deleted.

72 changes: 0 additions & 72 deletions CONTRIBUTING.md

This file was deleted.

Loading