Constnium/node_modules/eslint-plugin-n/lib/configs/recommended-module.js

28 lines
584 B
JavaScript
Raw Normal View History

2022-06-23 02:27:43 +02:00
"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: ["n"],
rules: {
...commonRules,
"n/no-unsupported-features/es-syntax": [
"error",
{ ignores: ["modules"] },
],
},
}