1.1.3 • Published 3 years ago

eslint-plugin-component-filenames v1.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

eslint-plugin-component-filenames

eslint plugin of component filenames

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-component-filenames:

$ npm install eslint-plugin-component-filenames --save-dev

Usage

Add component-filenames to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["component-filenames"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "component-filenames/upper-camel-case": 2
  }
}

If you want to lint vue file, you can override you base config.

{
  "overrides": [
    {
      "plugins": ["component-filenames"],
      "files": ["**/*.vue"],
      "rules": {
        "component-filenames/upper-camel-case": 2
      }
    }
  ]
}

If you want to ignore some filenames, you can config your rules as,

{
  "rules": {
    "component-filenames/upper-camel-case": [2, ["your ignore names"]]
  }
}

Supported Rules

  • Fill in provided rules here
1.1.3

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.1.2

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago