bigint-crypto-utils/node_modules/eslint-plugin-node/lib/configs/recommended-module.js

28 lines
590 B
JavaScript
Raw Normal View History

"use strict"
const { commonGlobals, commonRules } = require("./_commons")
module.exports = {
globals: {
...commonGlobals,
__dirname: "off",
__filename: "off",
exports: "off",
module: "off",
require: "off",
},
parserOptions: {
ecmaFeatures: { globalReturn: false },
ecmaVersion: 2019,
sourceType: "module",
},
plugins: ["node"],
rules: {
...commonRules,
"node/no-unsupported-features/es-syntax": [
"error",
{ ignores: ["modules"] },
],
},
}