From 55f20bf34c82aa4e7bc79756572bc9ee38be0857 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Wed, 19 Jul 2023 16:37:56 +0300 Subject: [PATCH] configs: fix parser error --- graphql.js | 3 --- json.js | 3 --- package.json | 2 +- react.js | 1 + testing.js | 1 + zod.js | 1 + 6 files changed, 4 insertions(+), 7 deletions(-) diff --git a/graphql.js b/graphql.js index 11417d9..f9f3392 100644 --- a/graphql.js +++ b/graphql.js @@ -4,9 +4,6 @@ module.exports = { es2022: true, node: true, }, - parserOptions: { - ecmaVersion: 2022, - }, overrides: [ { diff --git a/json.js b/json.js index 6bd05fd..6c3ddad 100644 --- a/json.js +++ b/json.js @@ -4,9 +4,6 @@ module.exports = { es2022: true, node: true, }, - parserOptions: { - ecmaVersion: 2022, - }, overrides: [ { extends: ['canonical/json'], diff --git a/package.json b/package.json index 1bfc394..baecbb7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vchikalkin/eslint-config-awesome", - "version": "1.0.2", + "version": "1.0.3", "license": "MIT", "main": "index.js", "devDependencies": { diff --git a/react.js b/react.js index 7d26448..0b71421 100644 --- a/react.js +++ b/react.js @@ -7,6 +7,7 @@ module.exports = { parserOptions: { ecmaVersion: 2022, }, + parser: '@typescript-eslint/parser', overrides: [ { extends: ['canonical/react', 'canonical/typescript'], diff --git a/testing.js b/testing.js index 91c1379..6cc0480 100644 --- a/testing.js +++ b/testing.js @@ -7,6 +7,7 @@ module.exports = { parserOptions: { ecmaVersion: 2022, }, + parser: '@typescript-eslint/parser', overrides: [ { files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'], diff --git a/zod.js b/zod.js index f2c0442..3dd5515 100644 --- a/zod.js +++ b/zod.js @@ -7,6 +7,7 @@ module.exports = { parserOptions: { ecmaVersion: 2022, }, + parser: '@typescript-eslint/parser', overrides: [ { extends: ['canonical/zod'],