eslint-plugin-a

eslint plugin

Usage no npm install needed!

<script type="module">
  import eslintPluginA from 'https://cdn.skypack.dev/eslint-plugin-a';
</script>

README

A very simple eslint plugin with one very simple rule:

  • a/ngular-module-file-name rule checks consistency module name in angular.module(name /*, something */) with file name. This rule hasn't any configuration. The main difference this rule from angular/file-name - the module name should be the filesystem path of the file from the root (the second argument of this rule) and it works only for angular.module(name /*, something */), not for other angular methods for creation components, in angular/file-name it can't be configured. Available fixing.