All files / src/constants constants.js

100% Statements 15/15
100% Branches 0/0
100% Functions 0/0
100% Lines 15/15
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 234x 4x     4x 4x 4x 4x   4x 4x 4x   4x   4x   4x 4x 4x   4x  
export const IGNORE_ANNOTATION = 'purgecss ignore'
export const CONFIG_FILENAME = 'purgecss.config.js'
 
// Error Message
export const ERROR_CONFIG_FILE_LOADING = 'Error loading the config file'
export const ERROR_MISSING_CONTENT = 'No content provided.'
export const ERROR_MISSING_CSS = 'No css provided.'
export const ERROR_EXTRACTER_FAILED = 'The extractor has failed to extract the selectors.'
 
export const ERROR_OPTIONS_TYPE = 'Error Type Options: expected an object'
export const ERROR_OUTPUT_TYPE = 'Error Type option output: expected a string'
export const ERROR_EXTRACTERS_TYPE = 'Error Type option extractors: expected an array'
 
export const ERROR_WHITELIST_TYPE = 'Error Type option whitelist: expected an array'
export const ERROR_WHITELIST_PATTERNS_TYPE =
    'Error Type option whitelistPatterns: expected an array'
 
export const ERROR_STDOUT_TYPE = 'Error Type option stdout: expected a boolean'
export const ERROR_INFO_TYPE = 'Error Type option info: expected a boolean'
export const ERROR_REJECTED_TYPE = 'Error Type option rejected: expected a boolean'
 
export const ERROR_LEGACY_TYPE = 'Error Type option legacy: expected a boolean'