diff --git a/examples/tanstack/start/src/external-stores/Redux.tsx b/examples/tanstack/start/src/external-stores/Redux.tsx index d7e70f8..96b5317 100644 --- a/examples/tanstack/start/src/external-stores/Redux.tsx +++ b/examples/tanstack/start/src/external-stores/Redux.tsx @@ -1,5 +1,4 @@ /* eslint-disable perfectionist/sort-switch-case */ -/* eslint-disable perfectionist/sort-union-types */ import * as stylex from '@stylexjs/stylex'; import { createFileRoute } from '@tanstack/react-router'; import { useState } from 'react'; diff --git a/packages/config/eslint.js b/packages/config/eslint.js index 8e83dc9..302fa0f 100755 --- a/packages/config/eslint.js +++ b/packages/config/eslint.js @@ -234,16 +234,19 @@ function unicorn() { } function stylistic() { + const config = stylistic_plugin.configs.customize({ + indent: 2, + quotes: 'single', + semi: true, + jsx: true, + braceStyle: '1tbs', + }); + return [ - stylistic_plugin.configs.customize({ - indent: 2, - quotes: 'single', - semi: true, - jsx: true, - braceStyle: '1tbs', - }), { + plugins: { '@stylistic': stylistic_plugin }, rules: { + ...config.rules, '@stylistic/indent': ['error', 2, { ignoredNodes: ['TSUnionType', 'TSIntersectionType'], SwitchCase: 1, @@ -309,6 +312,7 @@ function perfectionist() { 'perfectionist/sort-sets': 'warn', 'perfectionist/sort-switch-case': 'warn', 'perfectionist/sort-union-types': ['warn', { + type: 'unsorted', groups: ['unknown', 'named', 'nullish'], }], },