Skip to content

Commit

Permalink
update eslint to 9.8.0 (#3066)
Browse files Browse the repository at this point in the history
* update eslint to 9.8.0

* vite
  • Loading branch information
dimaMachina authored Jul 26, 2024
1 parent 5c874dd commit 0d175b4
Show file tree
Hide file tree
Showing 5 changed files with 128 additions and 242 deletions.
12 changes: 6 additions & 6 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ module.exports = {
],
plugins: ['import', 'unicorn', 'sonarjs'],
rules: {
// 'no-extra-boolean-cast': [
// 'error',
// { enforceForInnerExpressions: true }
// ],
'no-extra-boolean-cast': [
'error',
{ enforceForInnerExpressions: true }
],
'prefer-object-has-own': 'error',
'logical-assignment-operators': [
'error',
Expand Down Expand Up @@ -81,8 +81,8 @@ module.exports = {
extends: [
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
'plugin:@next/next/recommended'
'plugin:react-hooks/recommended'
// 'plugin:@next/next/recommended'
],
rules: {
'react/prop-types': 'off',
Expand Down
1 change: 0 additions & 1 deletion examples/swr-site/theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ const config: DocsThemeConfig = {
},
toc: {
extraContent: (
// eslint-disable-next-line @next/next/no-img-element -- ignore since url is external and dynamic
<img alt="placeholder cat" src="https://placekitten.com/g/300/200" />
),
float: true
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dev:theme-blog": "turbo run dev --filter=example-blog... --filter=!docs",
"dev:theme-docs": "turbo run dev --filter=swr-site... --filter=!docs",
"dev:website": "turbo run dev --filter=docs...",
"lint": "eslint --cache --ignore-path .gitignore --max-warnings 0 .",
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint --cache --ignore-path .gitignore --max-warnings 0 .",
"lint:prettier": "prettier --cache --check --ignore-path .gitignore --ignore-path .prettierignore .",
"prettier": "pnpm lint:prettier --write",
"release": "changeset publish",
Expand All @@ -28,11 +28,11 @@
"@rollup/plugin-alias": "^5.0.0",
"@typescript-eslint/eslint-plugin": "7.17.0",
"@typescript-eslint/parser": "7.17.0",
"eslint": "8.57.0",
"eslint": "9.8.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-react": "7.35.0",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-react-hooks": "5.1.0-rc-14a4699f-20240725",
"eslint-plugin-sonarjs": "^1.0.4-alpha.1",
"eslint-plugin-tailwindcss": "3.17.3",
"eslint-plugin-typescript-sort-keys": "3.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/nextra/src/client/components/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function isTabObjectItem(item: unknown): item is TabObjectItem {
return !!item && typeof item === 'object' && 'label' in item
}

function _Tabs({
function Tabs_({
items,
selectedIndex: _selectedIndex,
defaultIndex = 0,
Expand Down Expand Up @@ -124,4 +124,4 @@ function Tab({
)
}

export const Tabs = Object.assign(_Tabs, { displayName: 'Tabs', Tab })
export const Tabs = Object.assign(Tabs_, { displayName: 'Tabs', Tab })
Loading

0 comments on commit 0d175b4

Please sign in to comment.