|
| 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