Skip to content

Commit ce29b1b

Browse files
committed
Update to TypeScript 5.2
1 parent fcf0641 commit ce29b1b

6 files changed

+1419
-2819
lines changed

.eslintrc.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const forOfStatementRuleIndex = baseStyleRules['no-restricted-syntax'].findIndex
88

99
// Rules that apply to both TypeScript and JavaScript
1010
const commonRules = {
11-
// Allow to use braces if desired
11+
// Allow braces in arrow functions if desired
1212
'arrow-body-style': 0,
1313

1414
// Generally makes sense, but too strict to enforce
@@ -91,13 +91,13 @@ module.exports = {
9191
'airbnb-base',
9292
],
9393
overrides: [
94-
// Enable TypeScript ESLint only for TS files
94+
// Enable typescript-eslint only for TypeScript source files
9595
{
9696
files: ['./**/*.ts'],
9797
parser: '@typescript-eslint/parser',
9898
parserOptions: {
9999
tsconfigRootDir: __dirname,
100-
project: 'tsconfig.eslint.json',
100+
project: true,
101101
},
102102
plugins: [
103103
'@typescript-eslint',
@@ -109,7 +109,7 @@ module.exports = {
109109
},
110110
],
111111
parserOptions: {
112-
ecmaVersion: 2019,
112+
ecmaVersion: 2020,
113113
},
114114
rules: jsRules,
115115
};

build/rollup.config.ts

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const outputOptions: OutputOptions[] = [
3333
preserveModules: true,
3434
dir: resolvePath('../dist/cjs'),
3535
entryFileNames: '[name].cjs',
36-
exports: 'auto', // Gets rid of a warning. All library exports are named so we're fine.
3736
},
3837
{
3938
...commonOutputOptions,

0 commit comments

Comments
 (0)