Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions examples/tanstack/start/src/external-stores/ReduxToolkit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
},
});

Expand Down
10 changes: 5 additions & 5 deletions examples/tanstack/start/ui/AnimationSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
7 changes: 7 additions & 0 deletions packages/config/eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand All @@ -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 }],
},
Expand Down
8 changes: 4 additions & 4 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions packages/webpack/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
}

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down