chore: cloudcmd: actions: lint ☘️

This commit is contained in:
coderaiser 2026-07-16 09:28:42 +00:00
parent 0638ca32cb
commit cd4a2cec76

View file

@ -31,28 +31,25 @@ const noParse = (a) => a.endsWith('.spec.js');
// Rspack's native SWC transform, so client/sw/sw.js (the only file that // Rspack's native SWC transform, so client/sw/sw.js (the only file that
// uses it) keeps going through babel-loader. Everything else uses // uses it) keeps going through babel-loader. Everything else uses
// Rspack's built-in SWC loader, which is the main source of the speedup. // Rspack's built-in SWC loader, which is the main source of the speedup.
const rules = [ const rules = [{
{ test: /sw\/sw\.js$/,
test: /sw\/sw\.js$/, exclude: /node_modules/,
exclude: /node_modules/, loader: 'babel-loader',
loader: 'babel-loader', }, {
}, test: /\.[mc]?js$/,
{ exclude: [/node_modules/, /sw\/sw\.js$/],
test: /\.[mc]?js$/, loader: 'builtin:swc-loader',
exclude: [/node_modules/, /sw\/sw\.js$/], options: {
loader: 'builtin:swc-loader', jsc: {
options: { parser: {
jsc: { syntax: 'ecmascript',
parser: {
syntax: 'ecmascript',
},
},
env: {
targets: 'defaults',
}, },
}, },
env: {
targets: 'defaults',
},
}, },
]; }];
const plugins = [ const plugins = [
new NormalModuleReplacementPlugin(/^node:/, (resource) => { new NormalModuleReplacementPlugin(/^node:/, (resource) => {