Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

huskyの導入 #44

Merged
merged 6 commits into from
Nov 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions .github/workflows/stylelint.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
27 changes: 17 additions & 10 deletions .stylelintrc.json → .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
{
"extends": "stylelint-config-standard",
"extends": [
"stylelint-config-recommended",
"stylelint-config-recess-order"
],
"rules": {
"indentation": 2,
"indentation": 4,
"string-quotes": "double",
"no-duplicate-selectors": true,
"color-hex-case": "lower",
"color-hex-length": "long",
"color-named": "never",
"no-descending-specificity": null,
"selector-combinator-space-after": "always",
"selector-attribute-quotes": "always",
"selector-attribute-operator-space-before": "always",
"selector-attribute-operator-space-after": "always",
"selector-attribute-brackets-space-inside": "never",
"declaration-block-trailing-semicolon": "always",
"selector-id-pattern": null,
"selector-class-pattern": null,
"custom-property-pattern": null,
"keyframes-name-pattern": null,
"max-line-length": null,
"declaration-colon-space-before": "never",
"declaration-colon-space-after": "always",
"number-leading-zero": "always",
"function-url-quotes": "always",
"font-family-name-quotes": "always-unless-keyword",
"rule-empty-line-before": "always-multi-line",
"selector-pseudo-element-colon-notation": "double",
"selector-pseudo-class-parentheses-space-inside": "never",
"media-feature-range-operator-space-before": "never",
"media-feature-range-operator-space-after": "never",
"media-feature-parentheses-space-inside": "never",
"media-feature-colon-space-before": "never",
"media-feature-colon-space-after": "always"
"media-feature-colon-space-after": "always",
"no-duplicate-selectors": null,
"block-no-empty": null,
"font-family-no-missing-generic-family-keyword": null,
"no-irregular-whitespace": null
}
}
}
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
init:
yarn install
yarn husky install
chmod +x .husky/pre-commit .husky/_/husky.sh
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
# SCPJP-files
# SCPJP-files

## Getting Started

To get started with SCPJP-files, you need to have [Node.js](https://nodejs.org/) and [Yarn](https://yarnpkg.com/) installed on your machine. This project uses Yarn for efficient and reliable management of dependencies.

### Installation

Follow these steps to set up the project on your local machine:

1. **Initial Setup**: Once the dependencies are installed, execute the `make init` command for the initial setup of the project:

```bash
make init
```

This step ensures that all necessary configurations are correctly established for the project to run smoothly.
17 changes: 13 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
{
"devDependencies": {
"stylelint": "^14.16.1",
"stylelint-config-standard": "^29.0.0",
"husky": "^8.0.3",
"lint-staged": "^15.1.0",
"stylelint": "^15.11.0",
"stylelint-config-recess-order": "^3.1.0",
"stylelint-config-prettier": "^9.0.4",
"stylelint-scss": "^4.3.0"
"stylelint-config-recommended": "^13.0.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged --allow-empty"
}
},
"lint-staged": {
"*.css": "stylelint --fix",
"!*.min.css": []
}
}
Loading