mirror of
https://github.com/techno-tim/littlelink-server.git
synced 2025-02-16 19:11:21 +01:00
chore(style): Added style lint
This commit is contained in:
parent
ed4f10cc7e
commit
81fd3d1bf5
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@ -21,6 +21,7 @@ jobs:
|
||||
run: |
|
||||
yarn install --frozen-lockfile --check-files
|
||||
yarn lint
|
||||
yarn lint:style
|
||||
yarn test
|
||||
env:
|
||||
CI: true
|
||||
|
1
.github/workflows/pull-request.yml
vendored
1
.github/workflows/pull-request.yml
vendored
@ -24,6 +24,7 @@ jobs:
|
||||
run: |
|
||||
yarn install --frozen-lockfile --check-files
|
||||
yarn lint
|
||||
yarn lint:style
|
||||
yarn test
|
||||
env:
|
||||
CI: true
|
35
.stylelintrc
Normal file
35
.stylelintrc
Normal file
@ -0,0 +1,35 @@
|
||||
{
|
||||
"extends": [
|
||||
"stylelint-config-prettier"
|
||||
],
|
||||
"rules": {
|
||||
"block-no-empty": null,
|
||||
"comment-empty-line-before": [
|
||||
"always",
|
||||
{
|
||||
"ignore": [
|
||||
"stylelint-commands",
|
||||
"after-comment"
|
||||
]
|
||||
}
|
||||
],
|
||||
"max-empty-lines": 2,
|
||||
"unit-allowed-list": [
|
||||
"em",
|
||||
"rem",
|
||||
"%",
|
||||
"s",
|
||||
"px",
|
||||
"deg"
|
||||
],
|
||||
"indentation": [
|
||||
2,
|
||||
{
|
||||
"except": [
|
||||
"value"
|
||||
],
|
||||
"severity": "error"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -11,7 +11,8 @@
|
||||
"debug": "yarn start --inspect --inspect-port 9230",
|
||||
"test": "razzle test --env=jsdom",
|
||||
"start:prod": "NODE_ENV=production node build/server.js",
|
||||
"lint": "eslint ."
|
||||
"lint": "eslint .",
|
||||
"lint:style": "stylelint ./src/**/*.css ./public/**/*.css"
|
||||
},
|
||||
"dependencies": {
|
||||
"compression": "^1.7.4",
|
||||
@ -39,6 +40,8 @@
|
||||
"prettier": "^2.3.2",
|
||||
"razzle": "^4.0.6",
|
||||
"razzle-dev-utils": "^4.0.6",
|
||||
"stylelint": "^13.13.1",
|
||||
"stylelint-config-prettier": "^8.0.2",
|
||||
"webpack": "^4.44.1",
|
||||
"webpack-dev-server": "^3.11.2"
|
||||
}
|
||||
|
@ -108,14 +108,14 @@ button:hover,
|
||||
.button.button-messenger {
|
||||
color: #ffffff;
|
||||
background-image: linear-gradient(
|
||||
25deg,
|
||||
#0099ff,
|
||||
#5f5dff,
|
||||
#a033ff,
|
||||
#c740cc,
|
||||
#ff5280,
|
||||
#ff7061
|
||||
);
|
||||
25deg,
|
||||
#0099ff,
|
||||
#5f5dff,
|
||||
#a033ff,
|
||||
#c740cc,
|
||||
#ff5280,
|
||||
#ff7061
|
||||
);
|
||||
}
|
||||
.button.button-messenger:hover,
|
||||
.button.button-messenger:focus {
|
||||
|
@ -176,6 +176,7 @@ hr {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
|
||||
.footer {
|
||||
margin-top: 36px;
|
||||
padding-bottom: 36px;
|
||||
|
@ -1,6 +1,6 @@
|
||||
.avatar {
|
||||
vertical-align: middle;
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
vertical-align: middle;
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
border-radius: 50%;
|
||||
}
|
Loading…
Reference in New Issue
Block a user