Skip to content

Commit c4815e1

Browse files
author
Adithya Krishna
authored
fix: CI workflows bug and linting (#109)
* fix: ci workflows bug and linting Signed-off-by: Adithya Krishna <[email protected]> * Updated node version Signed-off-by: Adithya Krishna <[email protected]> * Fixed Linting Issues Signed-off-by: Adithya Krishna <[email protected]> * Fixed Linting Issues Signed-off-by: Adithya Krishna <[email protected]> * Added EOL Signed-off-by: Adithya Krishna <[email protected]> * Fixed CodeQL Bug Signed-off-by: Adithya Krishna <[email protected]> --------- Signed-off-by: Adithya Krishna <[email protected]>
1 parent 30282fd commit c4815e1

File tree

190 files changed

+61999
-61996
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+61999
-61996
lines changed

.eslintrc.js

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
module.exports = {
2-
parser: '@typescript-eslint/parser',
3-
env: {
4-
browser: true,
5-
es6: true,
2+
parser: '@typescript-eslint/parser',
3+
env: {
4+
browser: true,
5+
es6: true,
6+
},
7+
plugins: [
8+
'react',
9+
'jsx-a11y',
10+
'import',
11+
'prettier',
12+
'react-hooks',
13+
'regexp',
14+
'@typescript-eslint',
15+
],
16+
extends: [
17+
'airbnb',
18+
'plugin:prettier/recommended',
19+
'plugin:jsx-a11y/recommended',
20+
'plugin:import/errors',
21+
'plugin:import/warnings',
22+
'plugin:@typescript-eslint/eslint-recommended',
23+
'plugin:@typescript-eslint/recommended',
24+
],
25+
parserOptions: {
26+
ecmaFeatures: {
27+
jsx: true,
628
},
7-
plugins: [
8-
'react',
9-
'jsx-a11y',
10-
'import',
11-
'prettier',
12-
'react-hooks',
13-
'regexp',
14-
'@typescript-eslint',
29+
ecmaVersion: 2021,
30+
sourceType: 'module',
31+
},
32+
rules: {
33+
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
34+
'react/prop-types': 'off',
35+
'react/jsx-filename-extension': [
36+
1,
37+
{ extensions: ['.js', '.jsx', '.ts', '.tsx'] },
1538
],
16-
extends: [
17-
'airbnb',
18-
'plugin:prettier/recommended',
19-
'plugin:jsx-a11y/recommended',
20-
'plugin:import/errors',
21-
'plugin:import/warnings',
22-
'plugin:@typescript-eslint/eslint-recommended',
23-
'plugin:@typescript-eslint/recommended',
24-
],
25-
parserOptions: {
26-
ecmaFeatures: {
27-
jsx: true,
28-
},
29-
ecmaVersion: 2021,
30-
sourceType: 'module',
31-
},
32-
rules: {
33-
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
34-
'react/prop-types': 'off',
35-
'react/jsx-filename-extension': [
36-
1,
37-
{ extensions: ['.js', '.jsx', '.ts', '.tsx'] },
38-
],
39-
'react/jsx-props-no-spreading': 'off',
40-
'react/destructuring-assignment': ['warn'],
41-
'import/no-unresolved': 'off',
42-
'import/extensions': 'off',
43-
'react-hooks/rules-of-hooks': 'warn',
44-
'react-hooks/exhaustive-deps': 'warn',
45-
'regexp/no-unused-capturing-group': 'error',
46-
'regexp/no-useless-backreference': 'error',
47-
},
48-
settings: {
49-
'import/resolver': {
50-
node: {
51-
extensions: ['.js', '.jsx', '.json'],
52-
},
53-
},
39+
'react/jsx-props-no-spreading': 'off',
40+
'react/destructuring-assignment': ['warn'],
41+
'import/no-unresolved': 'off',
42+
'import/extensions': 'off',
43+
'react-hooks/rules-of-hooks': 'warn',
44+
'react-hooks/exhaustive-deps': 'warn',
45+
'regexp/no-unused-capturing-group': 'error',
46+
'regexp/no-useless-backreference': 'error',
47+
},
48+
settings: {
49+
'import/resolver': {
50+
node: {
51+
extensions: ['.js', '.jsx', '.json'],
52+
},
5453
},
54+
},
5555
};

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ jobs:
2828
steps:
2929
- name: Checkout
3030
uses: actions/checkout@v3
31+
3132
- name: Initialize CodeQL
3233
uses: github/codeql-action/[email protected]
3334
with:
3435
languages: ${{ matrix.language }}
36+
3537
- name: Perform CodeQL Analysis
3638
uses: github/codeql-action/[email protected]

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v3
17+
1718
- name: Dependency Review
1819
uses: actions/dependency-review-action@v2

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install Node.js
2323
uses: actions/setup-node@v3
2424
with:
25-
node-version: 16
25+
node-version: 16.14.0
2626
cache: 'npm'
2727

2828
- name: Cache NPM Dependencies

.github/workflows/lint.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
name: Lint Check
1+
name: Lint
22

33
on:
4+
workflow_dispatch:
5+
push:
46
pull_request:
57
branches:
68
- main
7-
- docusaurus-v**
89

910
concurrency:
1011
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@@ -14,18 +15,25 @@ permissions:
1415
contents: read
1516

1617
jobs:
17-
lint-markdown:
18-
name: Lint markdown
18+
lint:
19+
name: Lint
20+
timeout-minutes: 30
1921
runs-on: ubuntu-latest
2022
steps:
21-
- name: Checkout code
23+
- name: Checkout
2224
uses: actions/checkout@v3
2325

24-
- name: Lint markdown format
25-
uses: github/super-linter/slim@v5
26-
env:
27-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28-
DEFAULT_BRANCH: main
29-
FILTER_REGEX_INCLUDE: .*docs/.*md$
30-
VALIDATE_ALL_CODEBASE: false
31-
VALIDATE_MARKDOWN: true
26+
- name: Set up Node
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: 16.14.0
30+
cache: npm
31+
32+
- name: Installation
33+
run: npm install
34+
35+
- name: Lint
36+
run: npm run lint:ci
37+
38+
- name: Prettier Code
39+
run: npm run format:diff

.lintstagedrc.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"*.{js,jsx,mjs}": ["eslint --fix"],
3-
"*.css": ["stylelint --allow-empty-input --fix"],
4-
"*": [
5-
"prettier --ignore-unknown --write",
6-
"cspell --no-must-find-files --no-progress"
7-
]
2+
"*.{js,jsx,mjs}": ["eslint --fix"],
3+
"*.css": ["stylelint --allow-empty-input --fix"],
4+
"*": [
5+
"prettier --ignore-unknown --write",
6+
"cspell --no-must-find-files --no-progress"
7+
]
88
}

.prettierrc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"arrowParens": "always",
3-
"bracketSpacing": true,
4-
"bracketSameLine": true,
5-
"printWidth": 80,
6-
"proseWrap": "never",
7-
"singleQuote": true,
8-
"trailingComma": "all",
9-
"tabWidth": 4
2+
"arrowParens": "always",
3+
"bracketSpacing": true,
4+
"bracketSameLine": true,
5+
"printWidth": 80,
6+
"proseWrap": "never",
7+
"singleQuote": true,
8+
"trailingComma": "all",
9+
"tabWidth": 2
1010
}

.stylelintrc.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
module.exports = {
2-
extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
3-
rules: {
4-
'selector-pseudo-class-no-unknown': [
5-
true,
6-
{
7-
ignorePseudoClasses: ['global'],
8-
},
9-
],
10-
'selector-class-pattern': null,
11-
'custom-property-empty-line-before': null,
12-
'selector-id-pattern': null,
13-
'declaration-empty-line-before': null,
14-
'comment-empty-line-before': null,
15-
'value-keyword-case': ['lower', { camelCaseSvgKeywords: true }],
16-
},
2+
extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
3+
rules: {
4+
'selector-pseudo-class-no-unknown': [
5+
true,
6+
{
7+
ignorePseudoClasses: ['global'],
8+
},
9+
],
10+
'selector-class-pattern': null,
11+
'custom-property-empty-line-before': null,
12+
'selector-id-pattern': null,
13+
'declaration-empty-line-before': null,
14+
'comment-empty-line-before': null,
15+
'value-keyword-case': ['lower', { camelCaseSvgKeywords: true }],
16+
},
1717
};

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"cSpell.words": ["bytecode", "CNCF", "Emscripten", "wasmedge"]
2+
"cSpell.words": ["bytecode", "CNCF", "Emscripten", "wasmedge"]
33
}

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ If you are ready to contribute, please search for open issues labeled "help-want
88

99
**Contents**
1010

11-
- <a name="contributing-flow">Contribution Flow</a>
12-
- <a href="#commit-signoff">Developer Certificate of Origin</a>
13-
- WasmEdge Contribution Flow
14-
- <a href="#contributing-docs">WasmEdge Docs</a>
15-
- <a href="https://wasmedge.org/docs/contribute/" target="_blank">WasmEdge Runtime</a>
16-
- <a href="https://github.com/WasmEdge/WasmEdge/blob/master/SECURITY.md" target="_blank">Reporting a vulnerability</a>
11+
- <a name="contributing-flow">Contribution Flow</a>
12+
- <a href="#commit-signoff">Developer Certificate of Origin</a>
13+
- WasmEdge Contribution Flow
14+
- <a href="#contributing-docs">WasmEdge Docs</a>
15+
- <a href="https://wasmedge.org/docs/contribute/" target="_blank">WasmEdge Runtime</a>
16+
- <a href="https://github.com/WasmEdge/WasmEdge/blob/master/SECURITY.md" target="_blank">Reporting a vulnerability</a>
1717

1818
# <a name="contributing-flow">Contribution Flow</a>
1919

0 commit comments

Comments
 (0)