A lightweight fork of [eslint-plugin-require-path-exists](https://github.com/BohdanTkachenko/eslint-plugin-require-path-exists) that only checks CSS files.
npm install eslint-plugin-import-css-pathA 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)
1. Install eslint-plugin-require-path-exists as a dev-dependency:
``bash`
npm install --save-dev eslint-plugin-import-css-path
2. Enable the plugin by adding it to the plugins and start from default (recommended) configuration in extends in .eslintrc:
`json`
{
"extends": [
"plugin:import-css-path/recommended"
]
}
| Name | Description | Default Configuration |
| --- | --- | --- |
| import-css-path/exists | You should only import CSS paths that exist | [ "error" ]` |
MIT