-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from riitasointi/linters
Linters
- Loading branch information
Showing
36 changed files
with
3,495 additions
and
1,833 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
{ | ||
"extends": "next/core-web-vitals", | ||
"extends": [ | ||
"plugin:@typescript-eslint/recommended", | ||
"next/core-web-vitals", | ||
"plugin:jsx-a11y/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"plugins": ["@typescript-eslint", "prettier"], | ||
"rules": { | ||
"@next/next/no-img-element": "off" | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-unnecessary-type-constraint": "off", | ||
"@typescript-eslint/ban-types": ["off", { "types": ["{}", "object"] }], | ||
"@next/next/no-img-element": "off", | ||
"prettier/prettier": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
command_exists () { | ||
command -v "$1" >/dev/null 2>&1 | ||
} | ||
|
||
# Workaround for Windows 10, Git Bash and Yarn | ||
if command_exists winpty && test -t 1; then | ||
exec < /dev/tty | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
. "$(dirname "$0")/common.sh" | ||
|
||
yarn pre-commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"plugins": ["stylelint-prettier"], | ||
"extends": ["stylelint-config-standard-scss"], | ||
"rules": { | ||
"scss/at-import-no-partial-leading-underscore": null, | ||
"length-zero-no-unit": null, | ||
"shorthand-property-no-redundant-values": null, | ||
"selector-class-pattern": [ | ||
"^[a-zA-Z][a-zA-Z0-9-_]+$", | ||
{ | ||
"message": "Expected selector to be camelCase or kebab-case" | ||
} | ||
], | ||
"prettier/prettier": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,63 @@ | ||
.box-with-icon { | ||
align-items: center; | ||
display: flex; | ||
overflow: hidden; | ||
padding: 20px; | ||
position: relative; | ||
background: #fff; | ||
border-radius: 4px; | ||
box-shadow: 0 2px 4px 1px rgb(41 41 41 / 20%); | ||
max-width: 420px; | ||
align-items: center; | ||
display: flex; | ||
overflow: hidden; | ||
padding: 20px; | ||
position: relative; | ||
background: #fff; | ||
border-radius: 4px; | ||
box-shadow: 0 2px 4px 1px rgb(41 41 41 / 20%); | ||
max-width: 420px; | ||
} | ||
|
||
.box-with-icon_icon-container { | ||
line-height: 0; | ||
z-index: 3; | ||
line-height: 0; | ||
z-index: 3; | ||
} | ||
|
||
.box-with-icon_text { | ||
flex: 1; | ||
display: flex; | ||
justify-content: center; | ||
flex: 1; | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
.box-with-icon_h3 { | ||
text-align: center; | ||
text-align: center; | ||
} | ||
|
||
.box-with-icon::before { | ||
background: #f0f6ff; | ||
border-radius: 50%; | ||
content: ""; | ||
display: block; | ||
height: 210px; | ||
left: -90px; | ||
position: absolute; | ||
top: 50%; | ||
transform: translateY(-50%); | ||
width: 210px; | ||
z-index: 2; | ||
background: #f0f6ff; | ||
border-radius: 50%; | ||
content: ''; | ||
display: block; | ||
height: 210px; | ||
left: -90px; | ||
position: absolute; | ||
top: 50%; | ||
transform: translateY(-50%); | ||
width: 210px; | ||
z-index: 2; | ||
} | ||
|
||
.simplebox-with-icon { | ||
align-items: center; | ||
display: flex; | ||
overflow: hidden; | ||
padding: 20px; | ||
background: #fff; | ||
border-radius: 2px; | ||
box-shadow: 0 2px 4px 1px rgb(41 41 41 / 20%); | ||
width: 320px; | ||
align-items: center; | ||
display: flex; | ||
overflow: hidden; | ||
padding: 20px; | ||
background: #fff; | ||
border-radius: 2px; | ||
box-shadow: 0 2px 4px 1px rgb(41 41 41 / 20%); | ||
width: 320px; | ||
} | ||
|
||
.simplebox-with-icon_icon-container { | ||
line-height: 0; | ||
margin-right: 20px; | ||
z-index: 3; | ||
line-height: 0; | ||
margin-right: 20px; | ||
z-index: 3; | ||
} | ||
|
||
|
||
@media (max-width: 991px) { | ||
.simplebox-with-icon { | ||
width: 100%; | ||
} | ||
} | ||
.simplebox-with-icon { | ||
width: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.