rnx-kit/scripts/eslint.config.js

35 строки
752 B
JavaScript

import js from "@eslint/js";
// We keep a separate ESLint config to avoid circular dependency
// eslint-disable-next-line no-restricted-exports
export default [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: {
__dirname: "readonly",
console: "readonly",
module: "readonly",
process: "readonly",
require: "readonly",
},
},
rules: {
"no-restricted-exports": [
"error",
{
restrictDefaultExports: {
direct: true,
named: true,
defaultFrom: true,
namedFrom: true,
namespaceFrom: true,
},
},
],
},
},
];