Skip to content

Commit

Permalink
Update to TypeScript 5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
berniegp committed Nov 24, 2023
1 parent fcf0641 commit ce29b1b
Show file tree
Hide file tree
Showing 6 changed files with 1,419 additions and 2,819 deletions.
8 changes: 4 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const forOfStatementRuleIndex = baseStyleRules['no-restricted-syntax'].findIndex

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

// Generally makes sense, but too strict to enforce
Expand Down Expand Up @@ -91,13 +91,13 @@ module.exports = {
'airbnb-base',
],
overrides: [
// Enable TypeScript ESLint only for TS files
// Enable typescript-eslint only for TypeScript source files
{
files: ['./**/*.ts'],
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: 'tsconfig.eslint.json',
project: true,
},
plugins: [
'@typescript-eslint',
Expand All @@ -109,7 +109,7 @@ module.exports = {
},
],
parserOptions: {
ecmaVersion: 2019,
ecmaVersion: 2020,
},
rules: jsRules,
};
1 change: 0 additions & 1 deletion build/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const outputOptions: OutputOptions[] = [
preserveModules: true,
dir: resolvePath('../dist/cjs'),
entryFileNames: '[name].cjs',
exports: 'auto', // Gets rid of a warning. All library exports are named so we're fine.
},
{
...commonOutputOptions,
Expand Down
Loading

0 comments on commit ce29b1b

Please sign in to comment.