Skip to content

Commit

Permalink
chore(oxlint): config
Browse files Browse the repository at this point in the history
  • Loading branch information
philibea committed Nov 29, 2024
1 parent a57bf0c commit 9ae4d7b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 32 deletions.
30 changes: 1 addition & 29 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,14 @@
],
"rules": {
"@typescript-eslint/ban-tslint-comment": "off",
"@typescript-eslint/consistent-indexed-object-style": "off",
"@typescript-eslint/consistent-indexed-object-style": "error",
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-magic-numbers": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript/no-explicit-any": "warn",
"@typescript-eslint/prefer-enum-initializers": "off",
"@typescript-eslint/prefer-function-type": "off",
"@typescript-eslint/prefer-literal-enum-member": "off",
"@typescript-eslint/prefer-ts-expect-error": "off",
"eslint/default-param-last": "off",
"eslint/max-lines": "off",
"eslint/max-params": "off",
Expand Down Expand Up @@ -79,27 +76,6 @@
"import/no-duplicates": "off",
"import/no-unused-modules": "off",
"import/unambiguous": "warn",
"jest/no-conditional-expect": "off",
"jest/no-confusing-set-timeout": "off",
"jest/no-hooks": "off",
"jest/no-restricted-jest-methods": "off",
"jest/no-restricted-matchers": "off",
"jest/no-standalone-expect": "off",
"jest/no-untyped-mock-factory": "off",
"jest/prefer-called-with": "off",
"jest/prefer-comparison-matcher": "off",
"jest/prefer-equality-matcher": "off",
"jest/prefer-expect-resolves": "off",
"jest/prefer-lowercase-title": "off",
"jest/prefer-mock-promise-shorthand": "off",
"jest/prefer-spy-on": "off",
"jest/prefer-strict-equal": "off",
"jest/prefer-to-be": "off",
"jest/prefer-to-contain": "off",
"jest/prefer-to-have-length": "off",
"jest/prefer-todo": "error",
"jest/require-hook": "off",
"jest/require-to-throw-message": "off",
"oxc/no-accumulating-spread": "off",
"oxc/no-async-await": "off",
"oxc/no-barrel-file": "off",
Expand All @@ -113,20 +89,16 @@
"react/exhaustive-deps": "warn",
"react/iframe-missing-sandbox": "warn",
"react/jsx-no-target-blank": "off",
"react/no-set-state": "off",
"react/react-in-jsx-scope": "off",
"unicorn/error-message": "off",
"unicorn/filename-case": "off",
"unicorn/no-anonymous-default-export": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-array-reduce": "off",
"unicorn/no-await-expression-member": "off",
"unicorn/no-await-in-promise-methods": "off",
"unicorn/no-lonely-if": "off",
"unicorn/prefer-set-has": "off",
"unicorn/no-document-cookie": "off",
"unicorn/no-invalid-remove-event-listener": "off",
"unicorn/no-magic-array-flat-depth": "off",
"unicorn/no-negated-condition": "off",
"unicorn/no-new-array": "off",
"unicorn/no-null": "off",
Expand Down
7 changes: 4 additions & 3 deletions packages/ui/src/__stories__/Tools/ThemeGenerator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ import { generateShadeContrast } from './helpers'

type JsonTokenType = {
paletteLight: {
shades: {
[key: string]: {
shades: Record<
string,
{
value: string
type: 'color'
}
}
>
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/components/DateInput/helpersLocale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const getDays = (locale: Locale | string) => {
})

const dayKeys = Object.keys(days)
// oxlint-disable-next-line no-non-null-assertion
dayKeys.push(dayKeys.shift()!)

const orderedDaysMap: Record<string, string> = {}
Expand Down

0 comments on commit 9ae4d7b

Please sign in to comment.