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:
8
lib/package-json.d.ts
vendored
Normal file
8
lib/package-json.d.ts
vendored
Normal 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
4
lib/package-json.js.flow
Normal file
@@ -0,0 +1,4 @@
|
||||
declare var PACKAGE_JSON: {
|
||||
name: string;
|
||||
version: string;
|
||||
};
|
||||
Reference in New Issue
Block a user