Skip to content

Commit e72bbfb

Browse files
committed
chore: migrate eslint rule
1 parent 45c659b commit e72bbfb

File tree

4 files changed

+3
-12
lines changed

4 files changed

+3
-12
lines changed

.eslintrc.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,6 @@ module.exports = {
118118
'@typescript-eslint/no-var-requires': 'off',
119119
'@typescript-eslint/camelcase': 'off',
120120
'@typescript-eslint/ban-ts-ignore': 'off',
121-
'@typescript-eslint/member-delimiter-style': [
122-
'error', {
123-
multiline: {
124-
delimiter: 'none', requireLast: true
125-
},
126-
singleline: {
127-
delimiter: 'semi', requireLast: false
128-
}
129-
}],
130121
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports', disallowTypeAnnotations: false }],
131122
'@typescript-eslint/explicit-function-return-type': 'off',
132123
'react-hooks/rules-of-hooks': 'error',

docs/examples/JsonViewerWithImage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const imageType = defineDataType<string>({
99
try {
1010
const url = new URL(value)
1111
return url.pathname.endsWith('.jpg')
12-
} catch (_) {
12+
} catch {
1313
return false
1414
}
1515
},

docs/pages/full/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ const imageDataType = defineDataType<string>({
127127
try {
128128
const url = new URL(value)
129129
return allowedDomains.includes(url.host) && url.pathname.endsWith('.jpg')
130-
} catch (_) {
130+
} catch {
131131
return false
132132
}
133133
}

src/components/DataKeyPair.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export const DataKeyPair: FC<DataKeyPairProps> = (props) => {
200200

201201
try {
202202
onChange(path, value, deserialize(newValue))
203-
} catch (e) {
203+
} catch {
204204
// do nothing when deserialize failed
205205
}
206206
}, [setEditing, deserialize, onChange, path, value])

0 commit comments

Comments
 (0)