-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: sass setting - stylelint 적용 - sass 적용 - sanitize.css 적용 - app 디렉터리 -> src 밑으로 이동 * chore: ci에 stylelint 추가 및 typescript 버전 다운그레이드
- Loading branch information
1 parent
cadccc8
commit 18bac9c
Showing
120 changed files
with
2,336 additions
and
116 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
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,12 @@ | ||
module.exports = { | ||
extends: [ | ||
'stylelint-config-standard', | ||
'stylelint-config-standard-scss', | ||
'stylelint-config-recommended-scss', | ||
], | ||
rules: { | ||
'at-rule-no-unknown': null, | ||
'scss/at-rule-no-unknown': true, | ||
'selector-class-pattern': null, | ||
}, | ||
}; |
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
Binary file added
BIN
+13.5 KB
.yarn/cache/@csstools-css-parser-algorithms-npm-2.5.0-b22abafd96-f03938d623.zip
Binary file not shown.
Binary file added
BIN
+15.7 KB
.yarn/cache/@csstools-css-tokenizer-npm-2.2.3-a5c0d6c134-cf0c191cd6.zip
Binary file not shown.
Binary file added
BIN
+21 KB
.yarn/cache/@csstools-media-query-list-parser-npm-2.1.7-a8daa0487d-f16b1ee45c.zip
Binary file not shown.
Binary file added
BIN
+6.03 KB
.yarn/cache/@csstools-selector-specificity-npm-3.0.1-bd7a5961fc-e4b5aac3bd.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.14 KB
.yarn/cache/@types-normalize-package-data-npm-2.4.4-676a8ba353-65dff72b54.zip
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+4.52 KB
...match-npm-3.1.2-1d5471acfa-985163db22.zip → ...match-npm-3.1.3-bc81d103b1-3e044fd6d1.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+8.79 KB
.yarn/cache/known-css-properties-npm-0.29.0-6bc491faeb-ab4e1d6bad.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+11.6 KB
.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-3cd3b438c9.zip
Binary file not shown.
Binary file added
BIN
+9.74 KB
.yarn/cache/postcss-media-query-parser-npm-0.2.3-7c1ee973b6-39f9e9c383.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+2.78 KB
.yarn/cache/postcss-resolve-nested-selector-npm-0.1.1-7067e0fef7-b08fb76ab0.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+58.9 KB
.yarn/cache/postcss-selector-parser-npm-6.0.15-0ec4819b4e-cea591e1d9.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.97 KB
.yarn/cache/spdx-expression-parse-npm-3.0.1-b718cbb35a-a1c6e104a2.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+3.38 KB
.yarn/cache/stylelint-config-recommended-npm-13.0.0-320cc5f7d9-a56eb6d1a7.zip
Binary file not shown.
Binary file added
BIN
+3.45 KB
.yarn/cache/stylelint-config-recommended-scss-npm-13.1.0-0aa13983d4-249cc47057.zip
Binary file not shown.
Binary file added
BIN
+4.31 KB
.yarn/cache/stylelint-config-standard-npm-34.0.0-3727f5ff5f-536249800c.zip
Binary file not shown.
Binary file added
BIN
+3.39 KB
.yarn/cache/stylelint-config-standard-scss-npm-11.1.0-fb14eb3d7a-fdeb533e19.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+6.62 KB
.yarn/cache/validate-npm-package-license-npm-3.0.4-7af8adc7a8-86242519b2.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,20 @@ | ||
#!/usr/bin/env node | ||
|
||
const {existsSync} = require(`fs`); | ||
const {createRequire} = require(`module`); | ||
const {resolve} = require(`path`); | ||
|
||
const relPnpApiPath = "../../../../.pnp.cjs"; | ||
|
||
const absPnpApiPath = resolve(__dirname, relPnpApiPath); | ||
const absRequire = createRequire(absPnpApiPath); | ||
|
||
if (existsSync(absPnpApiPath)) { | ||
if (!process.versions.pnp) { | ||
// Setup the environment to be able to require eslint/use-at-your-own-risk | ||
require(absPnpApiPath).setup(); | ||
} | ||
} | ||
|
||
// Defer to the real eslint/use-at-your-own-risk your application uses | ||
module.exports = absRequire(`eslint/use-at-your-own-risk`); |
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,14 @@ | ||
{ | ||
"name": "eslint", | ||
"version": "8.18.0-sdk", | ||
"version": "8.56.0-sdk", | ||
"main": "./lib/api.js", | ||
"type": "commonjs" | ||
"type": "commonjs", | ||
"bin": { | ||
"eslint": "./bin/eslint.js" | ||
}, | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": "./lib/api.js", | ||
"./use-at-your-own-risk": "./lib/unsupported-api.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
{ | ||
"name": "typescript", | ||
"version": "4.7.4-sdk", | ||
"version": "5.3.2-sdk", | ||
"main": "./lib/typescript.js", | ||
"type": "commonjs" | ||
"type": "commonjs", | ||
"bin": { | ||
"tsc": "./bin/tsc", | ||
"tsserver": "./bin/tsserver" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
"build": "next build", | ||
"start": "next start", | ||
"lint": "eslint '**/*.{js,jsx,ts,tsx}' --fix", | ||
"stylelint": "stylelint **/*.scss", | ||
"test:unit": "jest", | ||
"test:watch": "jest --watch", | ||
"test:watchAll": "jest --watchAll", | ||
|
@@ -28,7 +29,8 @@ | |
"dependencies": { | ||
"next": "14.0.4", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0" | ||
"react-dom": "18.2.0", | ||
"sanitize.css": "13.0.0" | ||
}, | ||
"devDependencies": { | ||
"@next/eslint-plugin-next": "14.0.4", | ||
|
@@ -58,9 +60,17 @@ | |
"eslint-plugin-unused-imports": "3.0.0", | ||
"jest": "29.7.0", | ||
"jest-environment-jsdom": "29.7.0", | ||
"postcss": "8.4.32", | ||
"postcss-scss": "4.0.9", | ||
"react-test-renderer": "18.2.0", | ||
"sass": "1.69.6", | ||
"start-server-and-test": "1.14.0", | ||
"typescript": "5.3.2" | ||
"stylelint": "15", | ||
"stylelint-config-recommended-scss": "13", | ||
"stylelint-config-standard": "34", | ||
"stylelint-config-standard-scss": "11", | ||
"stylelint-scss": "5", | ||
"typescript": "5.2.2" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
File renamed without changes.
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,4 @@ | ||
import 'src/styles/global.scss'; | ||
import './globals.css'; | ||
|
||
export const metadata = { | ||
|
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
File renamed without changes.
File renamed without changes.
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,34 @@ | ||
@import '~sanitize.css'; | ||
@import "./variables"; | ||
@import "./mixin/text"; | ||
|
||
html { | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
|
||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
margin: 0; | ||
} | ||
|
||
div, | ||
input, | ||
textarea, | ||
button, | ||
select, | ||
a { | ||
-webkit-tap-highlight-color: transparent; | ||
} | ||
|
||
button { | ||
cursor: pointer; | ||
|
||
&:disabled { | ||
cursor: not-allowed; | ||
} | ||
} |
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,3 @@ | ||
@import "./mixin/text"; | ||
@import "./mixin/functions"; | ||
@import "./transition"; |
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,44 @@ | ||
@function str-split($string, $separator) { | ||
$split-arr: (); | ||
$index: string.index($string, $separator); | ||
|
||
@while $index != null { | ||
$item: string.slice($string, 1, $index - 1); | ||
$split-arr: list.append($split-arr, $item); | ||
$string: string.slice($string, $index + 1); | ||
$index: string.index($string, $separator); | ||
} | ||
|
||
$split-arr: list.append($split-arr, $string); | ||
|
||
@return $split-arr; | ||
} | ||
|
||
@function color($code) { | ||
@if $code == "" { | ||
@return currentColor; | ||
} @else if $code == "none" { | ||
@return none; | ||
} @else if $code == "transparent" { | ||
@return transparent; | ||
} @else if length(str-split($code, "/")) == 2 { | ||
$list: str-split($code, "/"); | ||
$key: list.nth($list, 1) + "-" + list.nth($list, 2); | ||
$code: $key; | ||
} @else { | ||
$list: str-split($code, "."); | ||
$key: ""; | ||
|
||
@if length($list) == 2 { | ||
$key: list.nth($list, 1) + "-" + list.nth($list, 2); | ||
} @else if length($list) == 3 { | ||
$key: list.nth($list, 1) + "-" + list.nth($list, 2) + "-" + list.nth($list, 3); | ||
} @else { | ||
$key: $code; | ||
} | ||
|
||
$code: $key; | ||
} | ||
|
||
@return var(-- + $code); | ||
} |
Oops, something went wrong.