eslint-plugin-import-css-path
v3.0.1
Published
A lightweight fork of [eslint-plugin-require-path-exists](https://github.com/BohdanTkachenko/eslint-plugin-require-path-exists) that only checks CSS files.
Downloads
794
Readme
eslint-plugin-import-css-path
A lightweight fork of eslint-plugin-require-path-exists that only checks CSS files.
- Only checks CSS files
- Import path must include file extension
- Supports Typescript custom path mapping
- Minimal dependencies (only uses
tsconfig-paths
)
Usage
- Install
eslint-plugin-require-path-exists
as a dev-dependency:
npm install --save-dev eslint-plugin-import-css-path
- Enable the plugin by adding it to the plugins and start from default (recommended) configuration in extends in .eslintrc:
{
"extends": [
"plugin:import-css-path/recommended"
]
}
Rules
| Name | Description | Default Configuration |
| --- | --- | --- |
| import-css-path/exists | You should only import CSS paths that exist | [ "error" ]
|
License
MIT