--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid-cjs.cjs --- # Input ```cjs const fs = require('fs'); const path = require('node:path'); ``` # Diagnostics ``` invalid-cjs.cjs:1:20 lint/nursery/noNodejsModules ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Using Node.js modules is forbidden. > 1 │ const fs = require('fs'); │ ^^^^ 2 │ const path = require('node:path'); 3 │ i Can be useful for client-side web projects that do not have access to those modules. i Remove the import module. ``` ``` invalid-cjs.cjs:2:22 lint/nursery/noNodejsModules ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Using Node.js modules is forbidden. 1 │ const fs = require('fs'); > 2 │ const path = require('node:path'); │ ^^^^^^^^^^^ 3 │ i Can be useful for client-side web projects that do not have access to those modules. i Remove the import module. ```