Skip to content

Commit 25b2aab

Browse files
justin808claude
andcommitted
Fix swc.config.js to match project linting standards
Updated config/swc.config.js to follow project's Prettier/ESLint rules: - Changed double quotes to single quotes (singleQuote: true) - Added trailing commas to all objects/arrays (trailingComma: all) The Shakapacker-generated swc.config.js template uses double quotes and no trailing commas, which violates the project's standard linting rules. Verified with: yarn prettier config/swc.config.js --check 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 8a8453c commit 25b2aab

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

config/swc.config.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
module.exports = {
66
jsc: {
77
parser: {
8-
syntax: "ecmascript",
8+
syntax: 'ecmascript',
99
jsx: true,
1010
dynamicImport: true,
11-
decorators: false
11+
decorators: false,
1212
},
1313
transform: {
1414
react: {
15-
runtime: "automatic"
15+
runtime: 'automatic',
1616
},
1717
// Disable optimizer to preserve class structure for Stimulus
1818
optimizer: {
1919
globals: {
20-
vars: {}
21-
}
22-
}
20+
vars: {},
21+
},
22+
},
2323
},
2424
// Critical for Stimulus: preserve class names and method bindings
2525
keepClassNames: true,
@@ -28,10 +28,10 @@ module.exports = {
2828
// Don't use external helpers
2929
externalHelpers: false,
3030
// Target ES2022 to avoid transforming class features
31-
target: "es2022"
31+
target: 'es2022',
3232
},
3333
// Preserve ES6 module semantics
3434
module: {
35-
type: "es6"
36-
}
35+
type: 'es6',
36+
},
3737
};

0 commit comments

Comments
 (0)