Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade deps including stylelint peerDep #57

Merged
merged 3 commits into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions .eslintrc.json

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![NPM version](http://img.shields.io/npm/v/stylelint-config-suitcss.svg)](https://www.npmjs.com/package/stylelint-config-suitcss) [![Build Status](https://github.com/suitcss/stylelint-config-suitcss/actions/workflows/ci.yml/badge.svg)](https://github.com/suitcss/stylelint-config-suitcss/actions/workflows/ci.yml)

> SUIT CSS shareable config for stylelint.
> SUIT CSS shareable config for Stylelint.

Configuration rules to ensure your CSS code is compliant with [SUIT CSS's code style](https://github.com/suitcss/suit/blob/master/doc/STYLE.md).

Expand All @@ -14,7 +14,7 @@ $ npm install stylelint-config-suitcss

## Usage

Set your stylelint config to:
Set your Stylelint config to:

```json
{
Expand Down
7 changes: 3 additions & 4 deletions __tests__/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import config from "../";
import fs from "fs";
import stylelint from "stylelint";
const config = require("../");
const fs = require("fs");
const stylelint = require("stylelint");

const validCss = fs.readFileSync(`${__dirname}/valid.css`, "utf-8");

const invalidCss = (
`a {}
`);
Expand Down
35 changes: 23 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "stylelint-config-suitcss",
"version": "19.0.0",
"description": "SUIT CSS config for stylelint",
"description": "SUIT CSS config for Stylelint",
"keywords": [
"stylelint",
"stylelint-config",
Expand All @@ -24,23 +24,34 @@
},
"scripts": {
"lint": "eslint . --ignore-path .gitignore",
"pretest": "yarn run lint",
"pretest": "yarn lint",
"test": "jest"
},
"eslintConfig": {
"extends": [
"stylelint",
"stylelint/jest"
],
"globals": {
"module": true,
"require": true
}
},
"dependencies": {
"stylelint-order": "^6.0.3",
"stylelint-suitcss": "^5.0.0"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/preset-env": "^7.21.4",
"babel-jest": "^29.5.0",
"eslint": "^8.39.0",
"eslint-config-stylelint": "^18.0.0",
"jest": "^29.5.0",
"stylelint": "^15.6.0"
},
"peerDependencies": {
"stylelint": "^14.2.0"
"stylelint": "^15.0.0"
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@babel/preset-env": "^7.22.9",
"babel-jest": "^29.6.1",
"eslint": "^8.45.0",
"eslint-config-stylelint": "^19.0.0",
"eslint-plugin-jest": "^27.2.3",
"jest": "^29.6.1",
"stylelint": "^15.10.2"
}
}
Loading
Loading