Skip to content

Commit e6e8f7d

Browse files
renovate[bot]trevor-scheer
andauthoredMar 27, 2023
Update to TypeScript 5.x (#88)
As part of the migration from `importsNotUsedAsValues`, incorporate eslint to get the same desired "type-only imports whenever possible" without switching to the new `verbatimModuleSyntax` (which is challenging for commonjs packages such as this, and would require rewriting all imports and exports to use an older style). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Trevor Scheer <trevor.scheer@gmail.com>
1 parent 8e91081 commit e6e8f7d

File tree

7 files changed

+4622
-11110
lines changed

7 files changed

+4622
-11110
lines changed
 

‎.circleci/config.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
steps:
4141
- setup-node:
4242
node-version: <<parameters.node-version>>
43+
- run: npm run build
4344
- run: npm run test:ci
4445
- store_test_results:
4546
path: junit.xml
@@ -51,6 +52,13 @@ jobs:
5152
- setup-node
5253
- run: npm run prettier-check
5354

55+
Lint:
56+
docker:
57+
- image: cimg/base:stable
58+
steps:
59+
- setup-node
60+
- run: npm run lint
61+
5462
Spell Check:
5563
docker:
5664
- image: cimg/base:stable
@@ -71,4 +79,6 @@ workflows:
7179
- "16"
7280
- "18"
7381
- Prettier
74-
- Spell Check
82+
- Lint
83+
- Spell Check
84+

‎.eslintrc.cjs

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
overrides: [
3+
{
4+
files: ['src/**/*.ts'],
5+
parser: '@typescript-eslint/parser',
6+
plugins: ['@typescript-eslint'],
7+
parserOptions: {
8+
project: 'tsconfig.eslint.json',
9+
tsconfigRootDir: __dirname,
10+
},
11+
rules: {
12+
'@typescript-eslint/consistent-type-imports': 'error',
13+
},
14+
},
15+
],
16+
root: true,
17+
};

0 commit comments

Comments
 (0)