* Bump @typescript-eslint/typescript-estree from 2.6.0 to 2.6.1 Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 2.6.0 to 2.6.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/typescript-estree/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v2.6.1/packages/typescript-estree) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * add shim for path.extname
6 lines
141 B
JavaScript
6 lines
141 B
JavaScript
export function extname(path) {
|
|
const dotIndex = path.lastIndexOf(".");
|
|
if (dotIndex === -1) return "";
|
|
return path.slice(dotIndex);
|
|
}
|