Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joephela committed Jul 10, 2024
1 parent 241aa91 commit 9a648db
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions packages/eslint-config-widen/src/index.js
Original file line number Diff line number Diff line change
@@ -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'

Check warning on line 3 in packages/eslint-config-widen/src/index.js

View workflow job for this annotation

GitHub Actions / lint

Imports should be sorted
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',
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-widen/src/react.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-widen/test/jsx-fragments.spec.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-widen/test/jsx-import.spec.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-widen/test/patterns-18.spec.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down

0 comments on commit 9a648db

Please sign in to comment.