@shayanthenerd/eslint-config
Version:
A modern, flexible ESLint configuration for enforcing best practices and maintaining a consistent coding style
19 lines (17 loc) • 480 B
JavaScript
import { globs } from "../utils/globs.js";
//#region src/configs/restrictedExports.ts
function getRestrictedExports() {
const restrictedExportsConfig = {
name: "shayanthenerd/restricted-exports",
files: [globs.restrictedExports],
rules: { "no-restricted-exports": ["error", { restrictDefaultExports: {
named: true,
direct: true,
namedFrom: true,
namespaceFrom: true
} }] }
};
return restrictedExportsConfig;
}
//#endregion
export { getRestrictedExports };