Skip to content

Commit

Permalink
convert to TS and ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
planttheidea committed Dec 16, 2023
1 parent ef5ea80 commit bfbe224
Show file tree
Hide file tree
Showing 23 changed files with 1,682 additions and 2,004 deletions.
16 changes: 16 additions & 0 deletions .babelrc
@@ -0,0 +1,16 @@
{
"plugins": [
"babel-plugin-macros",
[
"@babel/plugin-transform-runtime",
{
"absoluteRuntime": false,
"corejs": false,
"helpers": true,
"regenerator": false,
"useESModules": false
}
]
],
"presets": ["@babel/preset-env", "@babel/preset-typescript"]
}
7 changes: 5 additions & 2 deletions .eslintrc
Expand Up @@ -2,9 +2,12 @@
"env": {
"node": true
},
"extends": "eslint:recommended",
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "commonjs"
}
},
"plugins": ["@typescript-eslint"],
"root": true
}
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

@@ -1,3 +1,3 @@
import { findLastIndex } from '../../../../src/inline-loops.macro.js';
import { findLastIndex } from '../../../../src/inline-loops.macro';

const firstEven = findLastIndex(array, (value) => value % 2 === 0);

0 comments on commit bfbe224

Please sign in to comment.