Skip to content

Commit aa21cf1

Browse files
committed
chore: add stylelint for linting sass
1 parent 1261d33 commit aa21cf1

35 files changed

+595
-186
lines changed

apps/insights/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
"scripts": {
1010
"build": "next build",
1111
"fix:format": "prettier --write .",
12-
"fix:lint": "eslint --fix .",
12+
"fix:lint:eslint": "eslint --fix .",
13+
"fix:lint:stylelint": "stylelint --fix 'src/**/*.scss'",
1314
"pull:env": "[ $CI ] || VERCEL_ORG_ID=team_BKQrg3JJFLxZyTqpuYtIY0rj VERCEL_PROJECT_ID=prj_TBkf9EyQjQF37gs4Vk0sQKJj97kE vercel env pull",
1415
"start:dev": "next dev --port 3003",
1516
"start:prod": "next start --port 3003",
1617
"test:format": "prettier --check .",
17-
"test:lint": "eslint .",
18+
"test:lint:eslint": "eslint .",
19+
"test:lint:stylelint": "stylelint 'src/**/*.scss'",
1820
"test:types": "tsc"
1921
},
2022
"dependencies": {
@@ -56,6 +58,8 @@
5658
"postcss": "catalog:",
5759
"prettier": "catalog:",
5860
"sass": "catalog:",
61+
"stylelint": "catalog:",
62+
"stylelint-config-standard-scss": "catalog:",
5963
"typescript": "catalog:",
6064
"vercel": "catalog:"
6165
}

apps/insights/src/components/CopyButton/index.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "@pythnetwork/component-library/theme.scss";
1+
@use "@pythnetwork/component-library/theme";
22

33
.copyButton {
44
margin: -#{theme.spacing(0.5)} -0.5em;

apps/insights/src/components/H1/index.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "@pythnetwork/component-library/theme.scss";
1+
@use "@pythnetwork/component-library/theme";
22

33
.h1 {
44
font-size: theme.font-size("2xl");

apps/insights/src/components/Loading/index.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "@pythnetwork/component-library/theme.scss";
1+
@use "@pythnetwork/component-library/theme";
22

33
.loading {
44
@include theme.max-width;

apps/insights/src/components/Overview/index.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "@pythnetwork/component-library/theme.scss";
1+
@use "@pythnetwork/component-library/theme";
22

33
.overview {
44
@include theme.max-width;

apps/insights/src/components/PriceFeeds/epoch-select.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "@pythnetwork/component-library/theme.scss";
1+
@use "@pythnetwork/component-library/theme";
22

33
.epochSelect {
44
display: flex;

apps/insights/src/components/PriceFeeds/index.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "@pythnetwork/component-library/theme.scss";
1+
@use "@pythnetwork/component-library/theme";
22

33
.assetName {
44
display: flex;

apps/insights/src/components/PriceFeeds/layout.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "@pythnetwork/component-library/theme.scss";
1+
@use "@pythnetwork/component-library/theme";
22

33
.priceFeedsLayout {
44
@include theme.max-width;

apps/insights/src/components/PriceFeeds/prices.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "@pythnetwork/component-library/theme.scss";
1+
@use "@pythnetwork/component-library/theme";
22

33
.price {
44
transition: color 100ms linear;

apps/insights/src/components/Publishers/epoch-select.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "@pythnetwork/component-library/theme.scss";
1+
@use "@pythnetwork/component-library/theme";
22

33
.epochSelect {
44
display: flex;

0 commit comments

Comments
 (0)