Skip to content

Commit

Permalink
Add NPM and Yarn config
Browse files Browse the repository at this point in the history
  • Loading branch information
edcdavid committed Jul 28, 2023
1 parent 7bd4134 commit bd5587d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Init yarn
run: yarn init -y
- name: Install standard modules
run: yarn add standard
run: yarn install
- name: Run Standard
run: yarn standard html/index.js
- uses: crate-ci/typos@master
Expand All @@ -25,14 +23,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Init yarn
run: yarn init -y
- name: Install standard modules
run: yarn add stylelint stylelint-config-standard
- name: create stylelint config file
run: |
cat << EOF > .stylelintrc
{ "extends": ["stylelint-config-standard"] }
EOF
run: yarn install
- name: Run stylelint
run: yarn stylelint html/*.css
html-linter:
Expand Down
1 change: 1 addition & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "extends": ["stylelint-config-standard"] }
14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "parser",
"version": "1.0.0",
"main": "index.js",
"repository": "[email protected]:edcdavid/parser.git",
"author": "David Elie-Dit-Cosaque <[email protected]>",
"license": "MIT",
"dependencies": {
"inline-source": "^8.0.2",
"standard": "^17.1.0",
"stylelint": "^15.10.2",
"stylelint-config-standard": "^34.0.0"
}
}

0 comments on commit bd5587d

Please sign in to comment.