@bootcamp-project/eslinttier
Version:
Ready-to-use ESLint & Prettier Configuration with best practice settings by default
51 lines (50 loc) • 1.36 kB
TypeScript
declare const ESLintSecurity: {
plugins: string[];
extends: string[];
env: {
browser: boolean;
node: boolean;
es6: boolean;
es2017: boolean;
};
rules: {
'unicorn/prefer-module': string;
};
ignorePatterns: string[];
} & {
plugins: string[];
extends: string[];
rules: {
'no-unsanitized/method': string;
'no-unsanitized/property': string;
'xss/no-location-href-assign': (string | {
escapeFunc: string;
})[];
'xss/no-mixed-html': (string | {
htmlVariableRules: string[];
htmlFunctionRules: string[];
functions: {
$: {
htmlInput: boolean;
safe: string[];
};
'.html': {
htmlInput: boolean;
htmlOutput: boolean;
};
'.join': {
passthrough: {
obj: boolean;
args: boolean;
};
};
};
})[];
'no-secrets/no-secrets': string;
'pii/no-email': string;
'pii/no-dob': string;
'pii/no-ip': string;
'pii/no-phone-number': string;
};
};
export { ESLintSecurity as ESLintConfig };