This repository has been archived by the owner on Feb 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial TypeScript commit * Replace 'formLeaveGuardMixin' with 'FormGuardMixin' * Deprecate 'FormLeaveGuardMixin' * Fix tests with Typescript * Separate build TS config * Overhaul for additional typescript changes * Update package version Co-authored-by: Kendall Roth <kendall@focus21.io>
- Loading branch information
1 parent
217676a
commit d2586e7
Showing
24 changed files
with
672 additions
and
603 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 |
---|---|---|
@@ -1 +1,3 @@ | ||
#test | ||
coverage | ||
dist | ||
node_modules |
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,19 +1,25 @@ | ||
module.exports = { | ||
parser: "babel-eslint", | ||
extends: "eslint:recommended", | ||
parser: "@typescript-eslint/parser", | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier", | ||
"prettier/@typescript-eslint", | ||
], | ||
plugins: ["@typescript-eslint"], | ||
env: { | ||
jest: true, | ||
node: true, | ||
}, | ||
rules: { | ||
"comma-dangle": ["warn", "always-multiline"], | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/ban-ts-ignore": "off", | ||
"no-console": "warn", | ||
"no-tabs": "warn", | ||
"no-trailing-spaces": "warn", | ||
"no-unused-vars": "error", | ||
"no-unused-vars": "warn", | ||
"no-unreachable": "error", | ||
"prefer-const": "warn", | ||
"prefer-destructuring": "warn", | ||
quotes: ["warn", "double"], | ||
semi: ["warn", "always"], | ||
}, | ||
}; |
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 @@ | ||
* text=auto eol=lf |
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 |
---|---|---|
|
@@ -28,7 +28,7 @@ jspm_packages | |
.node_repl_history | ||
|
||
# Lib | ||
lib | ||
/lib | ||
|
||
# npm package lock | ||
package-lock.json | ||
|
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,4 +1,5 @@ | ||
module.exports = { | ||
singleQuote: false, | ||
endOfLine: "lf", | ||
trailingComma: "es5", | ||
}; |
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
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
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,25 +1,16 @@ | ||
const { BABEL_ENV } = process.env; | ||
|
||
const isProduction = BABEL_ENV === "production"; | ||
|
||
module.exports = { | ||
env: { | ||
development: { | ||
presets: ["@babel/preset-env"], | ||
plugins: ["add-module-exports"], | ||
}, | ||
production: { | ||
presets: ["@babel/preset-env", "minify"], | ||
plugins: ["add-module-exports"], | ||
}, | ||
test: { | ||
presets: [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
targets: { | ||
node: "current", | ||
}, | ||
}, | ||
], | ||
], | ||
plugins: ["add-module-exports"], | ||
}, | ||
}, | ||
presets: [ | ||
"@babel/preset-env", | ||
"@babel/typescript", | ||
isProduction && "minify", | ||
].filter(Boolean), | ||
plugins: [ | ||
["@babel/plugin-proposal-decorators", { legacy: true }], | ||
["@babel/plugin-proposal-class-properties", { loose: true }], | ||
"@babel/proposal-object-rest-spread", | ||
], | ||
}; |
Oops, something went wrong.