-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(TypeScript): Bump up typescript to latest (#3009)
* chore(package): bump up typescript to latest * chore(typings): remove deprecated typings * chore(spec): remove redundant reference * fix(error): custom error inherits via setPrototypeof BREAKING CHANGE: IE10 and lower will need to polyfill `Object.setPrototypeOf`
- Loading branch information
Showing
14 changed files
with
138 additions
and
48 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,107 @@ | ||
{ | ||
"forbidden": [ | ||
{ | ||
"name": "not-to-spec", | ||
"comment": "Don't allow dependencies from outside the spec folder to spec", | ||
"severity": "error", | ||
"from": { | ||
"pathNot": "^spec" | ||
}, | ||
"to": { | ||
"path": "^spec" | ||
} | ||
}, | ||
{ | ||
"name": "not-to-spec", | ||
"comment": "Don't allow dependencies to (typescript/ javascript/ coffeescript) spec files", | ||
"severity": "error", | ||
"from": {}, | ||
"to": { | ||
"path": "\\.spec\\.[js|ts|ls|coffee|litcoffee|coffee\\.md]$" | ||
} | ||
}, | ||
{ | ||
"name": "no-deprecated-core", | ||
"comment": "Warn about dependencies on deprecated core modules.", | ||
"severity": "warn", | ||
"from": {}, | ||
"to": { | ||
"dependencyTypes": [ | ||
"core" | ||
], | ||
"path": "^(punycode|domain)$" | ||
} | ||
}, | ||
{ | ||
"name": "no-deprecated-npm", | ||
"comment": "These npm modules are deprecated - find an alternative.", | ||
"severity": "warn", | ||
"from": {}, | ||
"to": { | ||
"dependencyTypes": [ | ||
"deprecated" | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "not-to-dev-dep", | ||
"severity": "error", | ||
"comment": "Don't allow dependencies from src/app/lib to a development only package", | ||
"from": { | ||
"path": "^(src|app|lib)" | ||
}, | ||
"to": { | ||
"dependencyTypes": [ | ||
"npm-dev" | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "no-non-package-json", | ||
"severity": "error", | ||
"comment": "Don't allow dependencies to packages not in package.json (except from within node_modules)", | ||
"from": { | ||
"pathNot": "^node_modules" | ||
}, | ||
"to": { | ||
"dependencyTypes": [ | ||
"undetermined", | ||
"npm-no-pkg", | ||
"npm-unknown" | ||
], | ||
"pathNot": "^electron" | ||
} | ||
}, | ||
{ | ||
"name": "peer-deps-used", | ||
"comment": "Error about the use of a peer dependency (peer dependencies are deprecated).", | ||
"severity": "error", | ||
"from": {}, | ||
"to": { | ||
"dependencyTypes": [ | ||
"npm-peer" | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "no-duplicate-dep-types", | ||
"comment": "Warn if a dependency occurs in your package.json more than once (technically: has more than one dependency type)", | ||
"severity": "warn", | ||
"from": {}, | ||
"to": { | ||
"moreThanOneDependencyType": true | ||
} | ||
}, | ||
{ | ||
"name": "no-circular", | ||
"severity": "error", | ||
"comment": "Error in case we have circular dependencies", | ||
"from": { | ||
"path": "^src" | ||
}, | ||
"to": { | ||
"circular": true | ||
} | ||
} | ||
] | ||
} |
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
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
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
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
This file was deleted.
Oops, something went wrong.