This reverts commit fdcc5d68a2.
Unfortunately, this requires us to move exports to the bottom.
This in turn causes circular dep issues and also access of
exports.GLOBAL_VAR in the global context
22 lines
425 B
JavaScript
22 lines
425 B
JavaScript
const js = require('@eslint/js');
|
|
const globals = require('globals');
|
|
|
|
module.exports = [
|
|
js.configs.recommended,
|
|
{
|
|
files: ["**/*.js"],
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node,
|
|
},
|
|
ecmaVersion: 13,
|
|
sourceType: "commonjs"
|
|
},
|
|
rules: {
|
|
semi: "error",
|
|
"prefer-const": "error"
|
|
}
|
|
}
|
|
];
|
|
|