Skip to content

Commit

Permalink
Switched over to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
jlkalberer committed Mar 30, 2024
1 parent 0b51188 commit 35d2924
Show file tree
Hide file tree
Showing 172 changed files with 2,056 additions and 26,288 deletions.
16 changes: 0 additions & 16 deletions .babelrc

This file was deleted.

1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
build/*
flow-typed/*
dist/*
82 changes: 49 additions & 33 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,53 +1,69 @@
{
"parser": "babel-eslint",
"root": true,
"parserOptions": {
"project": "./tsconfig.json",
},
"plugins": ["@typescript-eslint", "import", "prettier"],
"extends": [
"airbnb-base",
"plugin:prettier/recommended",
"prettier/flowtype"
"airbnb-typescript/base",
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
],
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true
},
"plugins": ["flowtype", "sorting", "prettier"],
"parser": "@typescript-eslint/parser",
"rules": {
"arrow-parens": 0,
"arrow-body-style": [2, "as-needed"],
"flowtype/define-flow-type": 1,
"flowtype/require-valid-file-annotation": [2, "always"],
"flowtype/sort-keys": 2,
"flowtype/use-flow-type": 1,
"import/extensions": 0,
"eol-last": 2,
"import/first": 0,
"import/newline-after-import": 0,
"import/no-absolute-path": 0,
"import/no-duplicates": 0,
"import/no-dynamic-require": 0,
"import/no-extraneous-dependencies": 0,
"import/no-named-as-default": 0,
"import/no-named-as-default-member": 0,
"import/no-unresolved": [2, { "ignore": ["brewskey.js-api"] }],
"import/order": 0,
"import/no-unresolved": 2,
"import/prefer-default-export": 0,
"newline-per-chained-call": 0,
"no-confusing-arrow": 0,
"no-console": 1,
"no-console": 0,
"no-duplicate-imports": 0,
"no-mixed-operators": 0,
"no-underscore-dangle": 0,
"no-use-before-define": 0,
"prefer-template": 2,
"class-methods-use-this": 0,
"require-yield": 0,
"sorting/sort-object-props": [
"class-methods-use-this": "off",
"no-promise-executor-return": "off",
"quotes": [
2,
"single",
{
"avoidEscape": true,
},
],
"semi": 2,
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn", // or "error"
{
"ignoreCase": true,
"ignoreMethods": false
}
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_",
},
],
"space-unary-ops": 0
}
"@typescript-eslint/naming-convention": [
"error",
{
"selector": ["parameter", "variable"],
"leadingUnderscore": "forbid",
"filter": {
// keep this one open for destructuring
"regex": "_*",
"match": false,
},
"format": null,
},
{
"selector": "parameter",
"leadingUnderscore": "require",
"format": null,
"modifiers": ["unused"],
},
],
},
}
64 changes: 0 additions & 64 deletions .flowconfig

This file was deleted.

4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 80,
"trailingComma": "all"
}
}
108 changes: 0 additions & 108 deletions build/Auth.js

This file was deleted.

Loading

0 comments on commit 35d2924

Please sign in to comment.