-
Notifications
You must be signed in to change notification settings - Fork 1
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 #84 from team23/dev/update-stylint-to-version-16
Update stylint to version 16
- Loading branch information
Showing
17 changed files
with
7,541 additions
and
26,780 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,14 @@ | ||
### Summary of Changes | ||
|
||
- Provide a brief overview of the changes made in this MR. | ||
- Include any relevant context or background information to help the reviewer understand the purpose and scope of the changes. | ||
|
||
### Open Todos | ||
|
||
- [ ] List any remaining tasks that need to be completed before this MR can be merged. | ||
- [ ] If there are no open tasks, please remove this section. | ||
|
||
### Additional Notes | ||
|
||
- Add any extra information that might be useful for the reviewer. | ||
- This could include potential impact, performance considerations, or references to related documentation or issues. |
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 +1 @@ | ||
module.exports = require('./index.js'); | ||
export { default } from './index.js'; |
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
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
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,3 +1,89 @@ | ||
.a .b .c .d .e .f .g .h { | ||
margin: 0; | ||
/* Disallowed at-rule: @debug */ | ||
@debug "This is a debug message"; /* Should trigger at-rule-disallowed-list */ | ||
|
||
/* Root variables */ | ||
:root { | ||
--primary-color: #007bff !important; /* Should trigger declaration-no-important */ | ||
--secondary-color: #6c757d; | ||
--font-family: 'Arial, sans-serif'; | ||
} | ||
|
||
/* Block: Header with invalid class name (uppercase letter) */ | ||
.Header { /* Should trigger selector-class-pattern */ | ||
background-color: var(--primary-color); | ||
padding: 20px; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
font-family: var(--font-family), serif !important; /* Should trigger declaration-no-important */ | ||
} | ||
|
||
/* Element with invalid class name (camelCase) */ | ||
.header__Logo { /* Should trigger selector-class-pattern */ | ||
width: 150px; | ||
} | ||
|
||
/* Selector with more than 3 compound selectors */ | ||
.header__nav-link .icon .svg .path { /* Should trigger selector-max-compound-selectors */ | ||
fill: #fff; | ||
} | ||
|
||
/* Using ID selector, which is disallowed */ | ||
#main-header { /* Should trigger selector-max-id */ | ||
background-color: var(--secondary-color); | ||
} | ||
|
||
/* Invalid use of !important */ | ||
.form__input { | ||
padding: 8px !important; /* Should trigger declaration-no-important */ | ||
border: 1px solid #ccc; | ||
border-radius: 4px; | ||
font-family: var(--font-family), serif; | ||
} | ||
|
||
/* Exceeding max-nesting-depth (depth of 5) */ | ||
.container { | ||
.header { | ||
.nav { | ||
.item { | ||
.link { | ||
color: blue; /* Should trigger max-nesting-depth */ | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
/* Disallowed unknown function */ | ||
.button { | ||
background-color: darken(var(--primary-color), 10%); /* Should trigger function-no-unknown if 'darken' is not recognized */ | ||
color: #fff; | ||
} | ||
|
||
/* Using !important in a nested rule */ | ||
.header__nav-link:hover { | ||
text-decoration: underline !important; /* Should trigger declaration-no-important */ | ||
} | ||
|
||
/* Selector with too many compound selectors */ | ||
.footer .container .row .col .content { /* Should trigger selector-max-compound-selectors */ | ||
padding: 20px; | ||
} | ||
|
||
/* Using unknown at-rule */ | ||
@custom-media --small-viewport (max-width: 768px); /* Should trigger at-rule-no-unknown */ | ||
|
||
/* Selector with invalid characters */ | ||
.header__nav@link { /* Should trigger selector-class-pattern */ | ||
color: #fff; | ||
} | ||
|
||
/* Multiple ID selectors */ | ||
#header #nav { /* Should trigger selector-max-id */ | ||
display: flex; | ||
} | ||
|
||
/* Invalid class pattern with uppercase and special characters */ | ||
.navBar__Item { /* Should trigger selector-class-pattern */ | ||
list-style: none; | ||
} |
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 +1,57 @@ | ||
@import 'x.css'; | ||
/* Importing external styles */ | ||
@import url('styles/reset.css'); | ||
@import url('styles/typography.css'); | ||
|
||
/* Root variables */ | ||
:root { | ||
--primary-color: #007bff; | ||
--secondary-color: #6c757d; | ||
--font-family: 'Arial, sans-serif'; | ||
} | ||
|
||
/* Block: header */ | ||
.header { | ||
background-color: var(--primary-color); | ||
padding: 20px; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
font-family: var(--font-family), serif; | ||
} | ||
|
||
.header__logo { | ||
width: 150px; | ||
} | ||
|
||
.header__nav-link { | ||
color: #fff; | ||
text-decoration: none; | ||
transition: text-decoration 0.3s ease; | ||
|
||
&:hover { | ||
text-decoration: underline; | ||
} | ||
} | ||
|
||
.form__input, | ||
.form__textarea, | ||
.form__select { | ||
padding: 8px; | ||
border: 1px solid #ccc; | ||
border-radius: 4px; | ||
font-family: var(--font-family), serif; | ||
} | ||
|
||
/* Responsive Design */ | ||
@media (width <= 768px) { | ||
.header { | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 10px; | ||
} | ||
|
||
.header__navigation { | ||
flex-direction: column; | ||
gap: 10px; | ||
} | ||
} |
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.