Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.
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
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
__mocks__
__snapshots__
**/styles.ts
.eslintrc.js
29 changes: 20 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
module.exports = {
root: true,
plugins: ["license-header"],
extends: ["@inrupt/eslint-config-react"],
extends: [
"@inrupt/eslint-config-react",
"@inrupt/eslint-config-lib",
"plugin:storybook/recommended",
],
rules: {
"@typescript-eslint/ban-ts-comment": 0,
"license-header/header": [1, "./resources/license-header.js"],
"no-use-before-define": [0],
"@typescript-eslint/no-use-before-define": [1],

"prettier/prettier": [
"error",
{ endOfLine: "auto" },
{
endOfLine: "auto",
},
],
"react/jsx-filename-extension": [
1,
{
extensions: [".tsx"],
},
],
"import/no-unresolved": "off",
"no-shadow": "warn",
"react/require-default-props": "warn",
"react/default-props-match-prop-types": "warn",
noImplicitAny: "off",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You win this round JS ^^

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, there were just too many to change and it was mostly in the tests.

},
}
};
52 changes: 28 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,31 @@ jobs:
os: [ubuntu-20.04, windows-2019]
node-version: [16.x, 14.x, 12.x]
steps:
- uses: actions/checkout@v2.4.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.5.0
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
uses: actions/cache@v2.1.7
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-node${{ runner.node-version }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- run: npm run ci
- name: Archive code coverage results
uses: actions/upload-artifact@v2.3.0
with:
name: code-coverage-report
path: coverage
- name: Archive production artifacts
uses: actions/upload-artifact@v2.3.0
with:
name: dist
path: dist
- uses: actions/checkout@v2.4.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.5.0
with:
node-version: ${{ matrix.node-version }}
- name: Cache node modules
uses: actions/cache@v2.1.7
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-node${{ runner.node-version }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- run: npm run lint
- run: npm run test
- run: npm run audit --production
- run: npm run audit-licenses
- run: npm run build
- name: Archive code coverage results
uses: actions/upload-artifact@v2.3.0
with:
name: code-coverage-report
path: coverage
- name: Archive production artifacts
uses: actions/upload-artifact@v2.3.0
with:
name: dist
path: dist
25 changes: 8 additions & 17 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,30 @@ module.exports = {
core: {
builder: "webpack5",
},
stories: [
'../stories/**/*.stories.@(tsx|mdx)',
],
staticDirs: ["../public"],
stories: ["../stories/**/*.stories.@(tsx|mdx)"],
addons: [
'@storybook/addon-essentials',
"@storybook/addon-essentials",
{
name: '@storybook/addon-storysource',
name: "@storybook/addon-storysource",
options: {
sourceLoaderOptions: {
injectStoryParameters: false,
},
},
},
/* @storybook/addon-docs is part of @storybook/addon-essentials, but
* this is required to fix an issue with code not showing for any
* stories without parameters */
{
name: '@storybook/addon-docs',
options: {
sourceLoaderOptions: null,
},
},
],
typescript: {
check: false,
checkOptions: {},
reactDocgen: 'react-docgen-typescript',
reactDocgen: "react-docgen-typescript",
reactDocgenTypescriptOptions: {
shouldExtractLiteralValuesFromEnum: true,
propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true),
propFilter: (prop) =>
prop.parent ? !/node_modules/.test(prop.parent.fileName) : true,
},
},
webpackFinal: async config => {
webpackFinal: async (config) => {
return config;
},
};
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ All development should follow the [Inrupt Coding Guidelines](https://github.com/
1. Clone the repository
2. From the directory you cloned to, run `npm install` to install dependencies
3. Run `npm run storybook` to run a live-reloading Storybook server
4. Run `npm run lint` and `npm run test` (or `npm run ci` to run everything) after making changes
4. Run `npm run lint` and `npm run test` after making changes

# Solid JavaScript Client - solid-client

[@inrupt/solid-client](https://github.com/inrupt/solid-client-js) is a JavaScript library for accessing data and managing permissions on data stored in Solid Pods. It provides an abstraction layer on top of both Solid and Resource Description Framework (RDF) principles and is compatible with the RDF/JS specification. You can use solid-client in Node.js using CommonJS modules and in the browser with a bundler like Webpack, Rollup, or Parcel.

[@inrupt/solid-client](https://github.com/inrupt/solid-client-js) is part of a family open source JavaScript libraries designed to support developers building Solid applications.
Expand Down
26 changes: 0 additions & 26 deletions husky.config.js

This file was deleted.

Loading