Skip to content

Commit

Permalink
nest parserOptions under languageOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed Sep 24, 2024
1 parent 7ab86f7 commit fa4cd9a
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,20 @@ const config = tseslint.config({
},
{
files: ['*.js', '*.cjs'],
parserOptions: {
sourceType: 'script',
ecmaVersion: '2020',
languageOptions: {
parserOptions: {
sourceType: 'script',
ecmaVersion: '2020',
},
},
},
{
files: ['*.ts'],
extends: typescript,
parserOptions: {
project: ['./tsconfig.packages.json'],
languageOptions: {
parserOptions: {
project: ['./tsconfig.packages.json'],
},
},
rules: {
// Enable rules that are disabled in `@metamask/eslint-config-typescript`
Expand All @@ -103,8 +107,10 @@ const config = tseslint.config({
},
{
files: ['tests/setupAfterEnv/matchers.ts'],
parserOptions: {
sourceType: 'script',
languageOptions: {
parserOptions: {
sourceType: 'script',
},
},
},
{
Expand Down

0 comments on commit fa4cd9a

Please sign in to comment.