Skip to content

Commit

Permalink
typescript-eslint@6.1.0 (adazzle#3288)
Browse files Browse the repository at this point in the history
  • Loading branch information
nstepien authored and adityatoshniwal committed Jul 31, 2024
1 parent 25ad54f commit 4f20e6f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
12 changes: 2 additions & 10 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const rules = {
'no-dupe-else-if': 1,
'no-dupe-keys': 1,
'no-duplicate-case': 1,
'no-duplicate-imports': 0, // replaced by @typescript-eslint/no-duplicate-imports
'no-duplicate-imports': 0,
'no-empty-character-class': 1,
'no-empty-pattern': 1,
'no-ex-assign': 1,
Expand Down Expand Up @@ -570,7 +570,6 @@ const rules = {
'@typescript-eslint/no-extraneous-class': 1,
'@typescript-eslint/no-floating-promises': 0,
'@typescript-eslint/no-for-in-array': 1,
'@typescript-eslint/no-implicit-any-catch': 0,
'@typescript-eslint/no-import-type-side-effects': 0,
'@typescript-eslint/no-inferrable-types': 1,
'@typescript-eslint/no-invalid-void-type': 1,
Expand All @@ -582,7 +581,6 @@ const rules = {
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 1,
'@typescript-eslint/no-non-null-asserted-optional-chain': 1,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-parameter-properties': 0,
'@typescript-eslint/no-redundant-type-constituents': 1,
'@typescript-eslint/no-require-imports': 1,
'@typescript-eslint/no-this-alias': 0,
Expand Down Expand Up @@ -613,11 +611,7 @@ const rules = {
'@typescript-eslint/prefer-namespace-keyword': 0,
'@typescript-eslint/prefer-nullish-coalescing': [
1,
{
ignoreConditionalTests: false,
ignoreTernaryTests: false,
ignoreMixedLogicalExpressions: false
}
{ ignorePrimitives: { boolean: true, string: true } }
],
'@typescript-eslint/prefer-optional-chain': 1,
'@typescript-eslint/prefer-readonly': 1,
Expand All @@ -632,7 +626,6 @@ const rules = {
'@typescript-eslint/restrict-plus-operands': 0,
'@typescript-eslint/restrict-template-expressions': 0,
'@typescript-eslint/sort-type-constituents': 0,
'@typescript-eslint/sort-type-union-intersection-members': 0,
'@typescript-eslint/strict-boolean-expressions': 0,
'@typescript-eslint/switch-exhaustiveness-check': 1,
'@typescript-eslint/triple-slash-reference': [1, { path: 'never', types: 'never', lib: 'never' }],
Expand All @@ -658,7 +651,6 @@ const rules = {
'@typescript-eslint/lines-between-class-members': 0,
'@typescript-eslint/no-array-constructor': 1,
'@typescript-eslint/no-dupe-class-members': 0,
'@typescript-eslint/no-duplicate-imports': 1,
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-extra-parens': 0,
'@typescript-eslint/no-extra-semi': 0,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@
"@types/lodash-es": "^4.17.7",
"@types/react": "^18.2.8",
"@types/react-dom": "^18.2.4",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"@vitejs/plugin-react": "^4.0.2",
"@vitest/coverage-v8": "^0.33.0",
"babel-plugin-optimize-clsx": "^2.6.2",
Expand Down
3 changes: 1 addition & 2 deletions src/hooks/useCalculatedColumns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ export function useCalculatedColumns<R, SR>({
let lastFrozenColumnIndex = -1;

const columns = rawColumns.map((rawColumn) => {
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
const frozen = rawColumn.frozen || false;
const frozen = rawColumn.frozen ?? false;

const column: Mutable<CalculatedColumn<R, SR>> = {
...rawColumn,
Expand Down

0 comments on commit 4f20e6f

Please sign in to comment.