Skip to content

Commit

Permalink
feat: add support for open-rpc extensions.
Browse files Browse the repository at this point in the history
OpenRPC extensions allow for extending the open-rpc spec with
the x-extensions parameter this will allow for user customization
and for a pathway to start upgrading and expanding the current
OpenRPC spec.
  • Loading branch information
zcstarr committed Jan 23, 2025
1 parent 7bd6c2a commit e6c215a
Show file tree
Hide file tree
Showing 36 changed files with 1,904 additions and 839 deletions.
20 changes: 12 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
env: {
node: true,
es2020: true,
},
rules: {
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
},
ignorePatterns: ["dist/", "build/", "node_modules/"],
};
18 changes: 9 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 14.15.1
uses: actions/setup-node@v1
with:
node-version: 14.15.1
- name: npm install
run: npm install
- name: lint
run: npm run lint
- uses: actions/checkout@v1
- name: Use Node.js 20.11.1
uses: actions/setup-node@v1
with:
node-version: 20.11.1
- name: npm install
run: npm install
- name: lint
run: npm run lint
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ build
docs
.DS_Store
dist
.vscode
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
semi: true,
printWidth: 80,
printWidth: 100,
tabWidth: 2,
trailingComma: "es5",
}
6 changes: 3 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
clearMocks: true,
coverageDirectory: '../coverage',
coverageDirectory: "../coverage",
resetMocks: true,
restoreMocks: true,
rootDir: './src',
preset: 'ts-jest'
rootDir: "./src",
preset: "ts-jest",
};
Loading

0 comments on commit e6c215a

Please sign in to comment.