|
1 | | -import { FlatCompat } from "@eslint/eslintrc"; |
| 1 | +import opencastConfig from "@opencast/eslint-config-ts-react"; |
2 | 2 |
|
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 | + } |
8 | 44 | ]; |
9 | 45 |
|
10 | | -export default config; |
|
0 commit comments