Skip to content

Commit e72df33

Browse files
committed
Modernise
1 parent 345f7a6 commit e72df33

File tree

111 files changed

+10096
-7859
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+10096
-7859
lines changed

.babelrc

Lines changed: 0 additions & 32 deletions
This file was deleted.

.eslintignore

Lines changed: 0 additions & 10 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 72 deletions
This file was deleted.

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@ analysis.json
66
analysis.out
77
analysis.md
88
tmp
9+
10+
.pnp.*
11+
.yarn/*
12+
!.yarn/patches
13+
!.yarn/plugins
14+
!.yarn/releases
15+
!.yarn/sdks
16+
!.yarn/versions

.vscode/settings.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
11
{
2-
"typescript.tsdk": "node_modules\\typescript\\lib"
2+
"typescript.tsdk": "node_modules\\typescript\\lib",
3+
"cSpell.words": [
4+
"analyse",
5+
"Annalyns",
6+
"approvable",
7+
"appuser",
8+
"autoloading",
9+
"elyses",
10+
"exercism",
11+
"gigasecond",
12+
"markdownify",
13+
"OPTIMISE",
14+
"Optimised",
15+
"Outputable",
16+
"quasis",
17+
"recognises",
18+
"REPRESENTER",
19+
"spawnable",
20+
"templatable",
21+
"TSES",
22+
"whomst"
23+
]
324
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/index.cjs b/index.cjs
2+
index 09b2b05459a1bab29283e5a1f4b5887b87bcc7a0..9f22f7c8f439c20348bcb67afb50117aa9689ef3 100644
3+
--- a/index.cjs
4+
+++ b/index.cjs
5+
@@ -7,6 +7,7 @@ module.exports = function (_api, opts = {}) {
6+
targets: {
7+
node: 'current',
8+
},
9+
+ modules: false,
10+
useBuiltIns: 'usage',
11+
corejs: opts['corejs'] || '3.43',
12+
},
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
diff --git a/index.cjs b/index.cjs
2+
index 9f22f7c8f439c20348bcb67afb50117aa9689ef3..a20b57a8a28236df5cb2a92ea5b0e8e77065f1a1 100644
3+
--- a/index.cjs
4+
+++ b/index.cjs
5+
@@ -12,7 +12,12 @@ module.exports = function (_api, opts = {}) {
6+
corejs: opts['corejs'] || '3.43',
7+
},
8+
],
9+
- require('@babel/preset-typescript'),
10+
+ [
11+
+ require('@babel/preset-typescript'),
12+
+ {
13+
+ "rewriteImportExtensions": true
14+
+ }
15+
+ ]
16+
],
17+
plugins: [],
18+
};

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

babel.config.cjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
presets: [['@exercism/babel-preset-typescript', { corejs: '3.43' }]],
3+
plugins: [
4+
[
5+
'module-resolver',
6+
{
7+
alias: {
8+
'~src': './src',
9+
'~test': './test',
10+
},
11+
},
12+
],
13+
],
14+
}

docs/snapshot-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ is better, but too many is not good) fixture numbers to be tested.
2323

2424
```typescript
2525
import { SlugAnalyzer } from '~src/analyzers/<type>/<slug>'
26-
import { makeTestGenerator } from '~test/helpers/snapshot'
26+
import { makeTestGenerator } from '~test/helpers/snapshot.js'
2727

2828
const snapshotTestsGenerator = makeTestGenerator(
2929
'<slug>',

0 commit comments

Comments
 (0)