Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mririgoyen/jest-runner-sasslint
Sass Lint runner for Jest
https://github.com/mririgoyen/jest-runner-sasslint
jest jest-plugin linter sass
Last synced: about 1 month ago
JSON representation
Sass Lint runner for Jest
- Host: GitHub
- URL: https://github.com/mririgoyen/jest-runner-sasslint
- Owner: mririgoyen
- License: mit
- Created: 2018-06-07T18:25:15.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-07-18T23:50:14.000Z (over 1 year ago)
- Last Synced: 2024-10-05T10:16:12.562Z (about 1 month ago)
- Topics: jest, jest-plugin, linter, sass
- Language: JavaScript
- Size: 82 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
## Usage
### Install
Install `jest` _(Jest 21+)_ and `jest-runner-sasslint`
```bash
yarn add --dev jest jest-runner-sasslint
```### Add it to your Jest config
In your `package.json`
```json
{
"jest": {
"runner": "jest-runner-sasslint",
"displayName": "Sass Lint",
"testMatch": ["/src/**/*.scss"],
"moduleFileExtensions": ["scss"]
}
}
```Or in `jest.config.js`
```js
module.exports = {
runner: 'jest-runner-sasslint',
displayName: 'Sass Lint',
testMatch: ['/src/**/*.scss'],
moduleFileExtensions: ['scss']
}
```### Run Jest
```bash
yarn jest
```