Skip to content

Commit f226e5c

Browse files
authored
Upgrade to latest linting config (#417)
1 parent fb3a973 commit f226e5c

60 files changed

Lines changed: 10611 additions & 6609 deletions

Some content is hidden

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

.eslintrc.js

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ npx envinfo --system --npmPackages --binaries --npmGlobalPackages --browsers
5353

5454
in your project folder and paste the output here:
5555

56-
```
56+
```sh
5757
$ npx envinfo --system --npmPackages --binaries --npmGlobalPackages --browsers
5858
```
5959

.github/pull_request_template.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ This PR fixes bug #.
88

99
<!-- When adding a new feature: -->
1010

11-
# New feature description
11+
## New feature description
1212

13-
# Checklist
13+
## Checklist
1414

1515
- [ ] All acceptance criteria are met.
1616
- [ ] Relevant documentation, if any, has been written/updated.
@@ -25,7 +25,7 @@ This PR fixes bug #.
2525

2626
This PR bumps the version to <version number>.
2727

28-
# Release Steps
28+
## Release Steps
2929

3030
1. Look at the [CHANGELOG.md](../CHANGELOG.md) to determine whether the release should be a major, minor, or patch release. Coordinate with the team to ensure the next version is agreed upon.
3131
2. Run `npm version -- <major|minor|patch> --no-push` with the decided on version (to prevent the tag from being pushed).

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ code. Please report unacceptable behavior to
1010

1111
`@inrupt/solid-client-errors` is a JavaScript library for handling [RFC9457 Problem Details](https://www.rfc-editor.org/rfc/rfc9457) on HTTP error responses.
1212

13-
# Server support
13+
## Server support
1414

1515
This feature is currently available in ESS. Servers implementing [RFC9457 Problem Details](https://www.rfc-editor.org/rfc/rfc9457) will be supported too.
1616

17-
# Supported environments
17+
## Supported environments
1818

1919
Our JavaScript Client Libraries use relatively modern JavaScript, aligned with
2020
the [ES2020](https://262.ecma-international.org/11.0/) Specification features, we
@@ -33,35 +33,35 @@ through a tool like [Babel](https://babeljs.io), and to add polyfills for e.g.
3333
`Map`, `Set`, `Promise`, `Headers`, `Array.prototype.includes`, `Object.entries`
3434
and `String.prototype.endsWith`.
3535

36-
## Node.js Support
36+
### Node.js Support
3737

3838
See [Inrupt Solid Javascript Client
3939
Libraries](https://docs.inrupt.com/developer-tools/javascript/client-libraries/#node-js-support).
4040

41-
# Installation
41+
## Installation
4242

4343
For the latest stable version of solid-client-errors:
4444

4545
```bash
4646
npm install @inrupt/solid-client-errors
4747
```
4848

49-
# Issues & Help
49+
## Issues & Help
5050

51-
## Solid Community Forum
51+
### Solid Community Forum
5252

5353
If you have questions about working with Solid or just want to share what you’re
5454
working on, visit the [Solid forum](https://forum.solidproject.org/). The Solid
5555
forum is a good place to meet the rest of the community.
5656

57-
## Bugs and Feature Requests
57+
### Bugs and Feature Requests
5858

5959
- For public feedback, bug reports, and feature requests please file an issue
6060
via [GitHub](https://github.com/inrupt/solid-client-errors-js/issues/).
6161
- For non-public feedback or support inquiries please use the
6262
[Inrupt Service Desk](https://inrupt.atlassian.net/servicedesk).
6363

64-
## Examples
64+
### Examples
6565

6666
Integrators of this library will generally use the following pattern to throw
6767
a subclass of `ClientHttpError`, corresponding to the response status.
@@ -120,12 +120,12 @@ const res = await getFile(url, options)
120120
});
121121
```
122122
123-
## Documentation
123+
### Documentation
124124
125125
- [Inrupt Solid Javascript Client Libraries](https://docs.inrupt.com/developer-tools/javascript/client-libraries/)
126126
- [Homepage](https://docs.inrupt.com/)
127127
- [Security policy and vulnerability reporting](./SECURITY.md)
128128
129-
# Changelog
129+
## Changelog
130130
131131
See [the release notes](https://github.com/inrupt/solid-client-js/blob/main/CHANGELOG.md).

e2e/browser/test-app/.eslintrc.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

e2e/browser/test-app/app/layout.tsx

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1+
// MIT License
12
//
2-
// Copyright Inrupt Inc.
3+
// Copyright (c) Inrupt
34
//
45
// Permission is hereby granted, free of charge, to any person obtaining a copy
5-
// of this software and associated documentation files (the "Software"), to deal in
6-
// the Software without restriction, including without limitation the rights to use,
7-
// copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8-
// Software, and to permit persons to whom the Software is furnished to do so,
9-
// subject to the following conditions:
6+
// of this software and associated documentation files (the "Software"), to deal
7+
// in the Software without restriction, including without limitation the rights
8+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
// copies of the Software, and to permit persons to whom the Software is
10+
// furnished to do so, subject to the following conditions:
1011
//
11-
// The above copyright notice and this permission notice shall be included in
12-
// all copies or substantial portions of the Software.
12+
// The above copyright notice and this permission notice shall be included in all
13+
// copies or substantial portions of the Software.
1314
//
14-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15-
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16-
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17-
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18-
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19-
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
// SOFTWARE.
2022
//
2123

2224
export default function TestAppLayout({

e2e/browser/test-app/app/page.tsx

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
1+
// MIT License
12
//
2-
// Copyright Inrupt Inc.
3+
// Copyright (c) Inrupt
34
//
45
// Permission is hereby granted, free of charge, to any person obtaining a copy
5-
// of this software and associated documentation files (the "Software"), to deal in
6-
// the Software without restriction, including without limitation the rights to use,
7-
// copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8-
// Software, and to permit persons to whom the Software is furnished to do so,
9-
// subject to the following conditions:
6+
// of this software and associated documentation files (the "Software"), to deal
7+
// in the Software without restriction, including without limitation the rights
8+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
// copies of the Software, and to permit persons to whom the Software is
10+
// furnished to do so, subject to the following conditions:
1011
//
11-
// The above copyright notice and this permission notice shall be included in
12-
// all copies or substantial portions of the Software.
12+
// The above copyright notice and this permission notice shall be included in all
13+
// copies or substantial portions of the Software.
1314
//
14-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15-
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16-
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17-
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18-
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19-
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
// SOFTWARE.
2022
//
2123

2224
"use client";
2325

2426
// Disabling the following prevents from having to install before linting from
2527
// the root.
26-
// eslint-disable-next-line import/no-unresolved
28+
2729
import React, { useState, useEffect } from "react";
2830
import type { ISessionInfo } from "@inrupt/solid-client-authn-browser";
2931
import {

e2e/browser/test-app/components/problemDetails/index.tsx

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1+
// MIT License
12
//
2-
// Copyright Inrupt Inc.
3+
// Copyright (c) Inrupt
34
//
45
// Permission is hereby granted, free of charge, to any person obtaining a copy
5-
// of this software and associated documentation files (the "Software"), to deal in
6-
// the Software without restriction, including without limitation the rights to use,
7-
// copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8-
// Software, and to permit persons to whom the Software is furnished to do so,
9-
// subject to the following conditions:
6+
// of this software and associated documentation files (the "Software"), to deal
7+
// in the Software without restriction, including without limitation the rights
8+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
// copies of the Software, and to permit persons to whom the Software is
10+
// furnished to do so, subject to the following conditions:
1011
//
11-
// The above copyright notice and this permission notice shall be included in
12-
// all copies or substantial portions of the Software.
12+
// The above copyright notice and this permission notice shall be included in all
13+
// copies or substantial portions of the Software.
1314
//
14-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15-
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16-
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17-
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18-
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19-
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
// SOFTWARE.
2022
//
2123

2224
// Disabling the following prevents from having to install before linting from
2325
// the root.
24-
// eslint-disable-next-line import/no-unresolved
26+
2527
import { useEffect, useState } from "react";
2628
import { getPodUrlAll } from "@inrupt/solid-client";
2729
import type { Session } from "@inrupt/solid-client-authn-browser";

e2e/browser/test-app/next.config.js

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
1+
// MIT License
12
//
2-
// Copyright Inrupt Inc.
3+
// Copyright (c) Inrupt
34
//
45
// Permission is hereby granted, free of charge, to any person obtaining a copy
5-
// of this software and associated documentation files (the "Software"), to deal in
6-
// the Software without restriction, including without limitation the rights to use,
7-
// copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
8-
// Software, and to permit persons to whom the Software is furnished to do so,
9-
// subject to the following conditions:
6+
// of this software and associated documentation files (the "Software"), to deal
7+
// in the Software without restriction, including without limitation the rights
8+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
// copies of the Software, and to permit persons to whom the Software is
10+
// furnished to do so, subject to the following conditions:
1011
//
11-
// The above copyright notice and this permission notice shall be included in
12-
// all copies or substantial portions of the Software.
12+
// The above copyright notice and this permission notice shall be included in all
13+
// copies or substantial portions of the Software.
1314
//
14-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15-
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
16-
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17-
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
18-
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
19-
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
// SOFTWARE.
2022
//
23+
2124
const nextConfig = {
2225
reactStrictMode: true,
2326
};

0 commit comments

Comments
 (0)