mirror of
https://github.com/primer/css.git
synced 2024-12-28 08:31:58 +03:00
be518b8023
* Updating deprecations.js file to be more straightforward * Create poor-coins-fix.md * Remove tests * Adding more info about the deprecation to the doc * Title section * Moving data to deprecations.json * Moving data to deprecations.json * Lint only scss files
25 lines
859 B
JavaScript
25 lines
859 B
JavaScript
/**
|
|
Deprecated Selectors
|
|
-------------------------
|
|
These are deprecated selectors and should not be used. They include a replacement value,
|
|
which can be an array or null.
|
|
|
|
* 'deprecated-selector': 'replacement-selector' <-- Replace with this selector.
|
|
* 'deprecated-selector': ['replacement-1', 'replacement-2'] <-- Replace with one of these selectors.
|
|
* 'deprecated-selector': null <-- No option available, remove selector.
|
|
*/
|
|
|
|
import fs from 'fs'
|
|
|
|
const deprecations = JSON.parse(fs.readFileSync('./dist/deprecations.json'))
|
|
|
|
const deprecatedSelectors = deprecations['selectors']
|
|
const deprecatedSassVariables = deprecations['variables']
|
|
const deprecatedSassMixins = deprecations['mixins']
|
|
|
|
export {
|
|
deprecatedSelectors,
|
|
deprecatedSassVariables,
|
|
deprecatedSassMixins
|
|
}
|