Skip to content

Commit

Permalink
feat: upgrade to TypeScript v4
Browse files Browse the repository at this point in the history
- migrate to eslint
- migrate to npm build
- rewrite modules

BREAKING CHANGE: remove module function
BREAKING CHANGE: remove polyfill from utils
  • Loading branch information
SomaticIT committed Nov 8, 2020
1 parent 166a4ed commit 81419c6
Show file tree
Hide file tree
Showing 33 changed files with 7,375 additions and 2,130 deletions.
34 changes: 34 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
parser: "@typescript-eslint/parser"
parserOptions:
project:
- ./tsconfig.json

env:
node: true

plugins:
- "@typescript-eslint"

extends:
- "eslint:recommended"
- "plugin:@typescript-eslint/eslint-recommended"
- "plugin:@typescript-eslint/recommended"

rules:
"@typescript-eslint/no-explicit-any":
- "off"

"@typescript-eslint/no-use-before-define":
- error
- functions: false
classes: false
typedefs: false

"@typescript-eslint/explicit-function-return-type":
- error
- allowExpressions: true

"@typescript-eslint/array-type":
- error
- default: "array-simple"
readonly: "array-simple"
63 changes: 0 additions & 63 deletions .gitattributes

This file was deleted.

181 changes: 9 additions & 172 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,178 +1,15 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.sln.docstates
*.sln
*.*proj

# Build results
[Dd]ebug/
[Rr]elease/
x64/
[Bb]in/
[Oo]bj/
[Dd]ist/
nuget/*.nupkg
.tscache/

# Dependencies
node_modules/
bower_components/
typings/

# Ignore development files
*.js.map
# Built result
*.d.ts
*.js
!build/*.*
!_definitions.d.ts
!Gruntfile.js
!dist/*.js
!dist/*.d.ts
!polyfill/promise.d.ts
!src/base.d.ts
!tests/**/tests.d.ts
!*.config.js

# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
!packages/*/build/
# Test results
coverage/
tests/generated/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# Dependencies
node_modules/

*_i.c
*_p.c
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
# Temp files
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.log
*.scc
*.dat

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
*.ncrunch*
.*crunch*.local.xml

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.Publish.xml

# NuGet Packages Directory
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
#packages/

# Windows Azure Build Output
csx
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.[Pp]ublish.xml
*.pfx
*.publishsettings

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
App_Data/*.mdf
App_Data/*.ldf


#LightSwitch generated files
GeneratedArtifacts/
_Pvt_Extensions/
ModelManifest.xml

# =========================
# Windows detritus
# =========================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Mac desktop service store files
.DS_Store
*.log
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 81419c6

Please sign in to comment.