25 lines
570 B
JavaScript
25 lines
570 B
JavaScript
|
"use strict"
|
||
|
|
||
|
const { commonGlobals, commonRules } = require("./_commons")
|
||
|
|
||
|
module.exports = {
|
||
|
globals: {
|
||
|
...commonGlobals,
|
||
|
__dirname: "readonly",
|
||
|
__filename: "readonly",
|
||
|
exports: "writable",
|
||
|
module: "readonly",
|
||
|
require: "readonly",
|
||
|
},
|
||
|
parserOptions: {
|
||
|
ecmaFeatures: { globalReturn: true },
|
||
|
ecmaVersion: 2019,
|
||
|
sourceType: "script",
|
||
|
},
|
||
|
plugins: ["node"],
|
||
|
rules: {
|
||
|
...commonRules,
|
||
|
"node/no-unsupported-features/es-syntax": ["error", { ignores: [] }],
|
||
|
},
|
||
|
}
|