Skip to content

Commit ae20e04

Browse files
authored
Merge pull request #1118 from Arnei/eslint-9
Switch to @opencast/eslint-config-ts-react
2 parents 4d555c4 + 925abf2 commit ae20e04

80 files changed

Lines changed: 3593 additions & 6947 deletions

File tree

Some content is hidden

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

eslint.config.js

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,45 @@
1-
import { FlatCompat } from "@eslint/eslintrc";
1+
import opencastConfig from "@opencast/eslint-config-ts-react";
22

3-
const config = [
4-
{ ignores: ["build"] },
5-
...new FlatCompat({ baseDirectory: import.meta.dirname })
6-
.extends("eslint-config-react-app"),
7-
{ rules: { "no-tabs": ["warn", { allowIndentationTabs: true }]}},
3+
export default [
4+
...opencastConfig,
5+
6+
// Fully ignore some files
7+
{
8+
ignores: ["build/"],
9+
},
10+
11+
{
12+
rules: {
13+
// TODO: We want to turn these on eventually
14+
"arrow-parens": "off",
15+
"camelcase": "off",
16+
"comma-dangle": "off",
17+
"indent": "off",
18+
"keyword-spacing": "off",
19+
"max-len": "off",
20+
"no-extra-boolean-cast": "off",
21+
"no-tabs": "off",
22+
"no-unused-expressions": "off",
23+
"object-curly-spacing": "off",
24+
"prefer-const": "off",
25+
"quotes": "off",
26+
"semi": "off",
27+
"spaced-comment": "off",
28+
"@typescript-eslint/await-thenable": "off",
29+
"@typescript-eslint/no-explicit-any": "off",
30+
"@typescript-eslint/no-floating-promises": "off",
31+
"@typescript-eslint/no-misused-promises": "off",
32+
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
33+
"@typescript-eslint/no-unsafe-argument": "off",
34+
"@typescript-eslint/no-unsafe-assignment": "off",
35+
"@typescript-eslint/no-unsafe-call": "off",
36+
"@typescript-eslint/no-unsafe-member-access": "off",
37+
"@typescript-eslint/no-unused-expressions": "off",
38+
"@typescript-eslint/no-unused-vars": "off",
39+
"@typescript-eslint/no-unsafe-return": "off",
40+
"@typescript-eslint/require-await": "off",
41+
"@typescript-eslint/unbound-method": "off",
42+
}
43+
}
844
];
945

10-
export default config;

0 commit comments

Comments
 (0)