Skip to content

Commit

Permalink
chore: downgrade eslint to v8
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrojcm committed Dec 10, 2024
1 parent 4b20b52 commit 1d2c9b4
Show file tree
Hide file tree
Showing 12 changed files with 151 additions and 197 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,12 @@ export const SourceCodeSnippet = ({
setColorScheme(
value?.startsWith('dark') ? 'dark' : 'light',
);
value === 'darkDark'
? setDarkDark(true)
: setDarkDark(false);

if (value === 'darkDark') {
setDarkDark(true);
} else {
setDarkDark(false);
}
plausible(`toggle-theme-${value}-mode`);
}}
className={classes.colorSchemeSelect}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Box, Text } from '@mantine/core';
import { SourceCodeSnippet } from '../mdx/SourceCodeSnippet';
// eslint-disable-next-line @typescript-eslint/no-require-imports
const TS = require('!!raw-loader!./CellInstanceAPIsTable.tsx').default;

const ExampleTable = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Box, Text } from '@mantine/core';
import { SourceCodeSnippet } from '../mdx/SourceCodeSnippet';
// eslint-disable-next-line @typescript-eslint/no-require-imports
const TS = require('!!raw-loader!./ColumnInstanceAPIsTable.tsx').default;

const ExampleTable = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Box, Text } from '@mantine/core';
import { SourceCodeSnippet } from '../mdx/SourceCodeSnippet';
// eslint-disable-next-line @typescript-eslint/no-require-imports
const TS = require('!!raw-loader!./ColumnOptionsTable.tsx').default;

const ExampleTable = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Box, Text } from '@mantine/core';
import { SourceCodeSnippet } from '../mdx/SourceCodeSnippet';
// eslint-disable-next-line @typescript-eslint/no-require-imports
const TS = require('!!raw-loader!./RowInstanceAPIsTable.tsx').default;

const ExampleTable = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Box, Text } from '@mantine/core';
import { SourceCodeSnippet } from '../mdx/SourceCodeSnippet';
// eslint-disable-next-line @typescript-eslint/no-require-imports
const TS = require('!!raw-loader!./StateOptionsTable.tsx').default;

const ExampleTable = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Box, Text } from '@mantine/core';
import { SourceCodeSnippet } from '../mdx/SourceCodeSnippet';
// eslint-disable-next-line @typescript-eslint/no-require-imports
const TS = require('!!raw-loader!./TableInstanceAPIsTable.tsx').default;

const ExampleTable = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Box, Text } from '@mantine/core';
import { SourceCodeSnippet } from '../mdx/SourceCodeSnippet';
// eslint-disable-next-line @typescript-eslint/no-require-imports
const TS = require('!!raw-loader!./TableOptionsTable.tsx').default;

const ExampleTable = () => {
Expand Down
2 changes: 1 addition & 1 deletion apps/mantine-react-table-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@types/react-dom": "^18.3.1",
"@typescript-eslint/eslint-plugin": "^8.8.1",
"@typescript-eslint/parser": "^8.8.1",
"eslint": "9.12.0",
"eslint": "^8.57.0",
"eslint-config-next": "14.2.15",
"next-plausible": "^3.12.2",
"postcss": "^8.4.47",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/mantine-react-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"@vitejs/plugin-react": "^4.3.2",
"clsx": "^2.1.1",
"dayjs": "^1.11.13",
"eslint": "^9.12.0",
"eslint": "^8.57.0",
"eslint-plugin-perfectionist": "^3.8.0",
"mantine-contextmenu": "^7.12.2",
"postcss": "^8.4.47",
Expand Down
Loading

0 comments on commit 1d2c9b4

Please sign in to comment.