UNPKG

eslint-plugin-filenames-simple

Version:

An ESLint plugin to check filenames with simple configuration

7 lines (6 loc) 552 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAllowedExtensions = void 0; const defaultAllowedExtensions = ['.js', '.cjs', '.mjs', '.jsx', '.d.ts', '.ts', '.tsx', '.vue']; const getAllowedExtensions = (context) => { var _a, _b, _c; return (_c = (_b = (_a = context.settings) === null || _a === void 0 ? void 0 : _a['filenames-simple']) === null || _b === void 0 ? void 0 : _b.allowedExtensions) !== null && _c !== void 0 ? _c : defaultAllowedExtensions; }; exports.getAllowedExtensions = getAllowedExtensions;