From 9a648db0b8d59f6c219cbe2d0d9ff00a6496ecdf Mon Sep 17 00:00:00 2001 From: Joseph Phelan Date: Wed, 10 Jul 2024 17:45:57 -0500 Subject: [PATCH] fix lint --- packages/eslint-config-widen/src/index.js | 14 +++++++------- packages/eslint-config-widen/src/react.js | 2 +- .../eslint-plugin-widen/test/jsx-fragments.spec.js | 2 +- .../eslint-plugin-widen/test/jsx-import.spec.js | 2 +- .../eslint-plugin-widen/test/patterns-18.spec.js | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/eslint-config-widen/src/index.js b/packages/eslint-config-widen/src/index.js index 628fca2..079fc5c 100644 --- a/packages/eslint-config-widen/src/index.js +++ b/packages/eslint-config-widen/src/index.js @@ -1,26 +1,26 @@ import js from '@eslint/js' import sort from 'eslint-plugin-sort' -import babelParser from '@babel/eslint-parser' -import globals from 'globals' import widen from 'eslint-plugin-widen' +import globals from 'globals' +import babelParser from '@babel/eslint-parser' export default [ { languageOptions: { - parser: babelParser, - parserOptions: { - requireConfigFile: false, - }, globals: { ...globals.browser, ...globals.es6, ...globals.jest, ...globals.node, }, + parser: babelParser, + parserOptions: { + requireConfigFile: false, + }, }, plugins: { - widen, sort, + widen, }, rules: { 'default-param-last': 'error', diff --git a/packages/eslint-config-widen/src/react.js b/packages/eslint-config-widen/src/react.js index adaf6fc..545b5b9 100644 --- a/packages/eslint-config-widen/src/react.js +++ b/packages/eslint-config-widen/src/react.js @@ -1,6 +1,6 @@ +import eslintJsxA11y from 'eslint-plugin-jsx-a11y' import eslintReact from 'eslint-plugin-react' import eslintReactHooks from 'eslint-plugin-react-hooks' -import eslintJsxA11y from 'eslint-plugin-jsx-a11y' export default [ eslintReact.configs.recommended, diff --git a/packages/eslint-plugin-widen/test/jsx-fragments.spec.js b/packages/eslint-plugin-widen/test/jsx-fragments.spec.js index aaceaf4..2be99d5 100644 --- a/packages/eslint-plugin-widen/test/jsx-fragments.spec.js +++ b/packages/eslint-plugin-widen/test/jsx-fragments.spec.js @@ -1,7 +1,7 @@ +import tsParser from '@typescript-eslint/parser' import { RuleTester } from 'eslint' import heredoc from 'tsheredoc' import rule from '../src/rules/jsx-fragments' -import tsParser from '@typescript-eslint/parser' RuleTester.setDefaultConfig({ languageOptions: { diff --git a/packages/eslint-plugin-widen/test/jsx-import.spec.js b/packages/eslint-plugin-widen/test/jsx-import.spec.js index e4cf88b..e2fb555 100644 --- a/packages/eslint-plugin-widen/test/jsx-import.spec.js +++ b/packages/eslint-plugin-widen/test/jsx-import.spec.js @@ -1,7 +1,7 @@ +import tsParser from '@typescript-eslint/parser' import { RuleTester } from 'eslint' import heredoc from 'tsheredoc' import rule from '../src/rules/jsx-import' -import tsParser from '@typescript-eslint/parser' RuleTester.setDefaultConfig({ languageOptions: { diff --git a/packages/eslint-plugin-widen/test/patterns-18.spec.js b/packages/eslint-plugin-widen/test/patterns-18.spec.js index 7dc30a8..93f3e9d 100644 --- a/packages/eslint-plugin-widen/test/patterns-18.spec.js +++ b/packages/eslint-plugin-widen/test/patterns-18.spec.js @@ -1,6 +1,6 @@ +import tsParser from '@typescript-eslint/parser' import { RuleTester } from 'eslint' import rule from '../src/rules/patterns-18' -import tsParser from '@typescript-eslint/parser' RuleTester.setDefaultConfig({ languageOptions: {