mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
linting: add commonjs globals override for *.cjs files
This commit is contained in:
parent
8e61451f12
commit
ae83f079da
@ -225,6 +225,19 @@ export default tseslint.config(
|
||||
},
|
||||
},
|
||||
|
||||
// CommonJS configuration files (e.g., postcss.config.cjs)
|
||||
// Provides Node.js globals (module, require, etc.) that were previously
|
||||
// included via eslint-config-standard in ESLint v8
|
||||
{
|
||||
files: ['**/*.cjs'],
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.node,
|
||||
},
|
||||
sourceType: 'commonjs',
|
||||
},
|
||||
},
|
||||
|
||||
// Prettier recommended config (should be last to override other formatting rules)
|
||||
eslintPluginPrettierRecommended,
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user