Avoid importing .json files (#12759)

* Avoid importing `.json` files

* Use ESold in babel.config.json

* Use `import/extensions` eslint plugin
This commit is contained in:
Nicolò Ribaudo
2021-02-05 23:34:36 +01:00
committed by GitHub
parent 87f264cc7b
commit e735266dee
28 changed files with 101 additions and 42 deletions

8
lib/package-json.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
// NOTE: This global .d.ts file can be included with
// /// <reference path="../../../lib/package-json.d.ts" />
// in .ts files using the PACKAGE_JSON macro.
declare const PACKAGE_JSON: {
name: string;
version: string;
};

4
lib/package-json.js.flow Normal file
View File

@@ -0,0 +1,4 @@
declare var PACKAGE_JSON: {
name: string;
version: string;
};