@cspell/eslint-plugin
Version:
34 lines • 1.04 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultOptions = exports.defaultCheckOptions = void 0;
exports.normalizeOptions = normalizeOptions;
exports.defaultCheckOptions = {
checkComments: true,
checkIdentifiers: true,
checkJSXText: true,
checkStrings: true,
checkStringTemplates: true,
configFile: '',
cspellOptionsRoot: '',
cspell: {
words: [],
flagWords: [],
ignoreWords: [],
},
customWordListFile: undefined,
ignoreImportProperties: true,
ignoreImports: true,
checkScope: [],
};
exports.defaultOptions = {
...exports.defaultCheckOptions,
numSuggestions: 8,
generateSuggestions: true,
autoFix: false,
};
function normalizeOptions(opts, cwd) {
const cspellOptionsRoot = opts?.cspellOptionsRoot || 'eslint-configuration-file';
const options = Object.assign({}, exports.defaultOptions, opts || {}, { cspellOptionsRoot, cwd });
return options;
}
//# sourceMappingURL=defaultCheckOptions.cjs.map