Skip to content

Commit

Permalink
Correct placement of parserOptions.ecmaVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
tough-griff committed Apr 15, 2022
1 parent ce2c588 commit 64197a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
// @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: [
// js-specific rules
{
files: ['*.js', '*.cjs', '*.mjs'],
extends: ['plugin:node/recommended'],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
'node/no-deprecated-api': [
'warn',
Expand Down

0 comments on commit 64197a0

Please sign in to comment.