From 64197a0788381b14c3c6e613cd65b091f7417a96 Mon Sep 17 00:00:00 2001 From: Griffin Yourick Date: Fri, 15 Apr 2022 13:34:13 -0400 Subject: [PATCH] Correct placement of `parserOptions.ecmaVersion` --- lib/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/index.js b/lib/index.js index 4cc48af..a952060 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,15 +1,12 @@ // @ts-check 'use strict'; -/** @typedef {import('eslint').Linter.Config} Config} */ +/** @type {import('eslint').Linter.Config} */ const config = { root: true, env: { node: true, }, - parserOptions: { - ecmaVersion: 2020 - }, extends: ['eslint:recommended'], rules: require('./rules/base'), overrides: [ @@ -17,6 +14,9 @@ const config = { { files: ['*.js', '*.cjs', '*.mjs'], extends: ['plugin:node/recommended'], + parserOptions: { + ecmaVersion: 2020, + }, rules: { 'node/no-deprecated-api': [ 'warn',