diff --git a/examples/tanstack/start/src/external-stores/ReduxToolkit.tsx b/examples/tanstack/start/src/external-stores/ReduxToolkit.tsx index 06fa417..cce7fd2 100644 --- a/examples/tanstack/start/src/external-stores/ReduxToolkit.tsx +++ b/examples/tanstack/start/src/external-stores/ReduxToolkit.tsx @@ -72,23 +72,23 @@ const counter_slice = createSlice({ }, extraReducers: (builder) => { builder - .addCase(decrement, (state) => { - state.value -= 1; - }) - .addCase(increment_async_a.pending, (state) => { - state.loading = true; - }) - .addCase(increment_async_a.fulfilled, (state, action) => { - state.value += action.payload; - state.loading = false; - }) - .addCase(increment_async_b.pending, (state) => { - state.loading = true; - }) - .addCase(increment_async_b.rejected, (state) => { - state.value = -1; - state.loading = false; - }); + .addCase(decrement, (state) => { + state.value -= 1; + }) + .addCase(increment_async_a.pending, (state) => { + state.loading = true; + }) + .addCase(increment_async_a.fulfilled, (state, action) => { + state.value += action.payload; + state.loading = false; + }) + .addCase(increment_async_b.pending, (state) => { + state.loading = true; + }) + .addCase(increment_async_b.rejected, (state) => { + state.value = -1; + state.loading = false; + }); }, }); diff --git a/examples/tanstack/start/ui/AnimationSidebar.tsx b/examples/tanstack/start/ui/AnimationSidebar.tsx index 53bf7aa..be50809 100644 --- a/examples/tanstack/start/ui/AnimationSidebar.tsx +++ b/examples/tanstack/start/ui/AnimationSidebar.tsx @@ -104,11 +104,11 @@ function SidebarWAAPI() { animation_ref.current.play(); animation_ref.current.finished - .then(() => { - if (state === 'opening') set_state('opened'); - if (state === 'closing') set_state('closed'); - }) - .catch(() => {}); + .then(() => { + if (state === 'opening') set_state('opened'); + if (state === 'closing') set_state('closed'); + }) + .catch(() => {}); }, [state]); return ( diff --git a/packages/config/eslint.js b/packages/config/eslint.js index 2411298..8e83dc9 100755 --- a/packages/config/eslint.js +++ b/packages/config/eslint.js @@ -244,6 +244,12 @@ function stylistic() { }), { rules: { + '@stylistic/indent': ['error', 2, { + ignoredNodes: ['TSUnionType', 'TSIntersectionType'], + SwitchCase: 1, + MemberExpression: 0, + offsetTernaryExpressions: true, + }], '@stylistic/jsx-one-expression-per-line': ['error', { allow: 'non-jsx' }], '@stylistic/jsx-closing-bracket-location': ['error', { nonEmpty: 'after-props', selfClosing: 'tag-aligned' }], '@stylistic/jsx-wrap-multilines': ['error', { @@ -256,6 +262,7 @@ function stylistic() { prop: 'ignore', propertyValue: 'ignore', }], + '@stylistic/multiline-ternary': ['error', 'never'], '@stylistic/operator-linebreak': ['error', 'after', { overrides: { '?': 'before', ':': 'before', '|': 'before' } }], '@stylistic/quotes': ['error', 'single', { allowTemplateLiterals: 'always', avoidEscape: true }], }, diff --git a/packages/config/package.json b/packages/config/package.json index bf376d2..1d84f89 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -11,24 +11,24 @@ "eslint": "9.39.2", "eslint-config-flat-gitignore": "2.1.0", "eslint-import-resolver-typescript": "4.4.4", - "eslint-plugin-better-tailwindcss": "4.2.0", + "eslint-plugin-better-tailwindcss": "4.3.0", "eslint-plugin-compat": "npm:@cmpx/eslint-plugin-compat@6.0.3", "eslint-plugin-import-x": "4.16.1", "eslint-plugin-jsx-a11y": "6.10.2", "eslint-plugin-perfectionist": "5.5.0", "eslint-plugin-react": "7.37.5", "eslint-plugin-react-hooks": "7.0.1", - "eslint-plugin-react-you-might-not-need-an-effect": "0.8.5", + "eslint-plugin-react-you-might-not-need-an-effect": "0.9.1", "eslint-plugin-unicorn": "63.0.0", "globals": "17.3.0", "lint-staged": "16.2.7", - "oxlint": "1.47.0", + "oxlint": "1.48.0", "postcss-scss": "4.0.9", "postcss-styled-syntax": "0.7.1", "prettier": "3.8.1", "prettier-plugin-java": "2.8.1", "prettier-plugin-packagejson": "3.0.0", - "stylelint": "17.2.0", + "stylelint": "17.3.0", "stylelint-config-recess-order": "7.6.1", "stylelint-config-standard": "40.0.0", "stylelint-order": "7.0.1", diff --git a/packages/webpack/plugins.ts b/packages/webpack/plugins.ts index 4decb5b..b5550ac 100644 --- a/packages/webpack/plugins.ts +++ b/packages/webpack/plugins.ts @@ -49,11 +49,11 @@ export class OptionalModulesPlugin { const logger = compiler.getInfrastructureLogger('OptionalModulesPlugin'); compiler.resolverFactory.hooks.resolver - .for('normal') - .tap('OptionalModulesPlugin', (resolver) => { - const plugin = new OptionalModulesResolverPlugin(logger); - plugin.apply(resolver); - }); + .for('normal') + .tap('OptionalModulesPlugin', (resolver) => { + const plugin = new OptionalModulesResolverPlugin(logger); + plugin.apply(resolver); + }); } } diff --git a/pyproject.toml b/pyproject.toml index a855dec..1efad5e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -89,7 +89,7 @@ dev = [ "pytest-xdist==3.8.0", "ruff==0.15.1", "scalene==1.5.55", - "ty==0.0.16", + "ty==0.0.17", ] [build-system]