19 Commits

Author SHA1 Message Date
James Beard
948f57e8c6
Upgrading all project dependencies (except monorepolint - troublesome) to latest versions. Some code changes required though only to utility and test scripts, and then only function name changes e.g. load.sync() is now loadJsonFileSync() in the latest version. Removing chroma-js as a turf-isobands devDependency as it doesn't seem to be used. (#2532) 2023-11-10 09:09:26 -05:00
mfedderly
96f0c2cb06
Enable more lint rules (#2108)
* @typescript-eslint/ban-types

* @typescript-eslint/no-empty-function

* @typescript-eslint/no-inferrable-types

* @typescript-eslint/no-this-alias

* no-case-declarations

* no-cond-assign

* no-dupe-else-if

* no-empty

* no-explicit-any

* no-prototype-builtins

* no-undef

* no-unreachable

* no-useless-escape

* prefer-spread

* comment the eslintrc

* Almost had it

* clearly my js trivia is not good enough today

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2021-06-22 18:42:21 -04:00
mfedderly
5a029b206c
Only include ES5 code, remove some ES6 that had crept in (#1984)
* Move @turf/polygonize to typescript instead of its own custom rollup

* validate-es5-dependencies -> es-check

* @turf/buffer const -> var

* polygon-clipping dependency from 0.14.3 -> 0.15.2 to swap es6 code for es5 code

* @turf/turf - Change rollup config to better support tree shaking, remove buble reference

* Remove deprecated exports from @turf/helpers, they are still covered in @turf/turf:

- radians2degrees
- degrees2radians
- distanceToDegrees
- distanceToRadians
- radiansToDistance
- bearingToAngle
- convertDistance

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
2020-12-17 08:36:56 -05:00
diachedelic
eafb76cab8
Node ESM support (#1942)
Writes a package.json to each dist/es/ directory, which ensures that
Node loads adjacent files as ES modules.

close #1940

Co-authored-by: mfedderly <mdfedderly@mdfedderly.com>
2020-11-17 09:08:31 -05:00
Denis
669315b522
Merge branch 'master' into turf-angle 2017-12-11 23:49:14 -08:00
Denis
b25199d766 Update create new module 2017-12-11 23:48:39 -08:00
Denis
9abd42c453 Updat create new module 2017-12-11 23:42:05 -08:00
Denis
ed929512ab Update create new module 2017-12-10 13:52:55 -08:00
Denis
d4d8714cfe
Merge pull request #1136 from Turfjs/update-create-new-module
Correct test.js boilerplate on create-new-module.
2017-11-27 21:48:41 -08:00
Moacir P. de Sá Pereira
1f425793d2 Correct test.js boilerplate on create-new-module. 2017-11-27 23:38:41 -05:00
Denis
bb49f24f1d Clean up scripts 2017-11-26 21:31:18 -08:00
Moacir P. de Sá Pereira
6d6d5c4dc6 ES6ify bench.js and test.js boilerplate. 2017-11-25 13:23:47 -05:00
Moacir P. de Sá Pereira
093fa4328d Update TypeScript boilerplate to the best of my ability. 2017-11-19 22:03:05 -05:00
Moacir P. de Sá Pereira
264b04e6e7 Update package.json boilerplate to look like modern modules 2017-11-19 22:02:16 -05:00
Moacir P. de Sá Pereira
b331206c88 Change index.js to use ES6 module export default syntax. 2017-11-19 22:01:05 -05:00
Denis
bf99fe221e Update create-new-module
Comment: https://github.com/Turfjs/turf/issues/861#issuecomment-318290356
2017-07-27 11:26:15 -04:00
Denis
df6986ec0a
Fixes #861 copy license file 2017-07-26 15:06:01 -04:00
stebogit
7d8604b3d9 referenced create-new-module in CONTRIBUTING.md;
added README and test files creation in create-new-module.js;
2017-07-07 01:02:00 -07:00
Denis
00d306019b Create-new-module script (#823)
* Create-new-module script

* Update create test.js

* Update create test.js comment
2017-06-30 11:50:02 -04:00