1
1
mirror of https://github.com/primer/css.git synced 2024-12-02 16:13:02 +03:00
css/script/remove-needless-disables
Jon Rohan 9ad951d1ac
Updating stylint config (#1578)
* Updating stylint config

* Remove needless disables
2021-09-07 19:58:09 -07:00

12 lines
223 B
Bash
Executable File

#!/bin/bash
set -e
disables=$(stylelint src --quiet --report-needless-disables -f unix | grep '^/')
while IFS= read -r line; do
case $line in
(*:*:*:*) file=${line%:*}
esac
echo $file
done < <(echo "$disables")