Skip to content

Commit ddc2bf9

Browse files
committed
Upgrade to latest linting config
1 parent b82344b commit ddc2bf9

6 files changed

Lines changed: 6340 additions & 4202 deletions

File tree

.eslintignore

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

.eslintrc.js

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

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2021 Inrupt Inc.
1+
Copyright Inrupt Inc.
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal in

eslint.config.mjs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Copyright 2021 Inrupt Inc.
2+
//
3+
// Permission is hereby granted, free of charge, to any person obtaining a copy
4+
// of this software and associated documentation files (the "Software"), to deal in
5+
// the Software without restriction, including without limitation the rights to use,
6+
// copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
7+
// Software, and to permit persons to whom the Software is furnished to do so,
8+
// subject to the following conditions:
9+
//
10+
// The above copyright notice and this permission notice shall be included in
11+
// all copies or substantial portions of the Software.
12+
//
13+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
14+
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
15+
// PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
16+
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
17+
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
18+
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19+
//
20+
21+
import inruptCfg, { ignoreTypedLinting } from "@inrupt/eslint-config-base";
22+
import next from "@next/eslint-plugin-next";
23+
24+
import { defineConfig } from "eslint/config";
25+
26+
ignoreTypedLinting([
27+
"**/tests.internal.ts",
28+
"playwright.config.ts",
29+
"jest.config.ts",
30+
]);
31+
32+
export default defineConfig([
33+
inruptCfg,
34+
{
35+
plugins: {
36+
"@next/next": next,
37+
},
38+
rules: {
39+
...next.configs.recommended.rules,
40+
...next.configs["core-web-vitals"].rules,
41+
},
42+
files: ["e2e/browser/test-app/"],
43+
},
44+
]);

0 commit comments

Comments
 (0)