Skip to content

Commit 96c26dc

Browse files
committed
Add NPM and Yarn config
1 parent 7bd4134 commit 96c26dc

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

.github/workflows/linters.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v3
1515
- name: Init yarn
16-
run: yarn init -y
17-
- name: Install standard modules
18-
run: yarn add standard
16+
run: yarn install
1917
- name: Run Standard
2018
run: yarn standard html/index.js
2119
- uses: crate-ci/typos@master
@@ -25,14 +23,7 @@ jobs:
2523
steps:
2624
- uses: actions/checkout@v3
2725
- name: Init yarn
28-
run: yarn init -y
29-
- name: Install standard modules
30-
run: yarn add stylelint stylelint-config-standard
31-
- name: create stylelint config file
32-
run: |
33-
cat << EOF > .stylelintrc
34-
{ "extends": ["stylelint-config-standard"] }
35-
EOF
26+
run: yarn install
3627
- name: Run stylelint
3728
run: yarn stylelint html/*.css
3829
html-linter:

.stylelintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "extends": ["stylelint-config-standard"] }

package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "parser",
3+
"version": "1.0.0",
4+
"main": "index.js",
5+
"repository": "[email protected]:test-network-function/parser.git",
6+
"author": "Parser Contributors",
7+
"license": "MIT",
8+
"dependencies": {
9+
"inline-source": "^8.0.2",
10+
"standard": "^17.1.0",
11+
"stylelint": "^15.10.2",
12+
"stylelint-config-standard": "^34.0.0"
13+
}
14+
}

0 commit comments

Comments
 (0)