title: Is there a library for checking if css rules are written in a certain format?
body: <p>In my project, I have this convention of writing my css files like </p>
  
  <pre><code>.some_name_APP_CONTAINER &lt;sub css rules...&gt; {
  
  }
  .some_name_APP_CONTAINER &lt;sub css rules...&gt; {
  
  }
  .some_name_APP_CONTAINER &lt;sub css rules...&gt; {
  
  }
  etc...
  </code></pre>
  
  <p>So in the css file, I want to ensure that all the rules (including ones in media query) start with <code>.some_name_APP_CONTAINER</code> (is a class), and the substring <code>some_name</code> can be whatever class name but should be the same for all rules in the css file. So this is valid for example:</p>
  
  <pre><code>.some_name_APP_CONTAINER .table {
  
  }
  .some_name_APP_CONTAINER div {
  
  }
  .some_name_APP_CONTAINER div:hover {
  
  }
  </code></pre>
  
  <p>and this is not valid</p>
  
  <pre><code>.some_name_APP_CONTAINER .table {
  
  }
  .some_name_APP_CONTAINER div {
  
  }
  div:hover {
  
  }
  </code></pre>
  
  <p>So this is mainly for maintenance reasons, so that everything gets encapsulated under the class <code>some_name_APP_CONTAINER</code>. Is there some library anyone uses for validation of css rules?</p>
  
  <p>Also I prefer node.js library as that would work best.</p>
  
  <p>Thanks</p>