Update
This commit is contained in:
@ -6,22 +6,22 @@
|
||||
"subject": "[meta] add `repository.directory` field"
|
||||
},
|
||||
"eslint-import-resolver-typescript": {
|
||||
"hash": "5ee5879b4428f42edbc262d66e192c76202b7f47",
|
||||
"date": "2024-10-01T03:12:28+00:00",
|
||||
"hash": "42e7cc3eb413dda56683c1b2b2483e4756e0bd62",
|
||||
"date": "2024-11-01T01:52:08+00:00",
|
||||
"committer": "GitHub",
|
||||
"subject": "fix(deps): update dependency debug to ^4.3.7 (#316)"
|
||||
"subject": "chore(deps): update dependency @types/node to ^18.19.63 (#320)"
|
||||
},
|
||||
"eslint-plugin-jsx-a11y": {
|
||||
"hash": "cb6788c56d7108f2faa102d041dfa37dbc0e9f59",
|
||||
"date": "2024-10-18T16:13:23+10:00",
|
||||
"hash": "743168b1ba15196ec7001c7c1f368f5efbe78f0d",
|
||||
"date": "2024-10-23T13:27:41+10:00",
|
||||
"committer": "Jordan Harband",
|
||||
"subject": "[Docs] Use consistent spelling of 'screen reader'"
|
||||
"subject": "[New] `label-has-associated-control`: allow `labelComponents` to contain globs"
|
||||
},
|
||||
"eslint-plugin-n": {
|
||||
"hash": "bf34ca53864e059e3fbf632f33429ba10a75ee9b",
|
||||
"date": "2024-10-19T14:26:54+02:00",
|
||||
"hash": "d39d99aecf2e8f0dde59b980f209d1c377af9a46",
|
||||
"date": "2024-11-02T00:28:49+01:00",
|
||||
"committer": "GitHub",
|
||||
"subject": "fix: update dependencies (#365)"
|
||||
"subject": "feat(no-unsupported): support Node 20.18.0 (#374)"
|
||||
},
|
||||
"eslint-plugin-react": {
|
||||
"hash": "983b88dd3cb5e07919517d3fde4085f60883ded7",
|
||||
|
@ -53,7 +53,7 @@ export async function extendConfig(
|
||||
stylistic,
|
||||
{
|
||||
name: 'eslint-rules/typescript-and-import-x',
|
||||
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
|
||||
files: ['**/*.{js,mjs,cjs,jsx,ts,tsx,mts,cts}'],
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
parser: tsParser,
|
||||
|
@ -26,6 +26,14 @@ export async function react() {
|
||||
files: ['*.tsx'],
|
||||
rules: reactRules,
|
||||
},
|
||||
{
|
||||
name: 'eslint-rules/react/test-files',
|
||||
files: ['*.test.tsx'],
|
||||
rules: {
|
||||
'@eslint-react/no-clone-element': off,
|
||||
'@eslint-react/no-create-ref': off,
|
||||
},
|
||||
},
|
||||
]);
|
||||
}
|
||||
|
||||
|
@ -8,8 +8,7 @@ const stylisticRules: Partial<StylisticRulesObject> = {
|
||||
'stylistic/spaced-comment': [
|
||||
error,
|
||||
'always',
|
||||
// allow /*@__PURE__*/
|
||||
{ markers: ['/', '#', '@'], block: { exceptions: ['@'] } },
|
||||
{ block: { exceptions: ['@__PURE__', '#__PURE__'] } },
|
||||
],
|
||||
'stylistic/jsx-sort-props': [
|
||||
error,
|
||||
|
@ -37,10 +37,7 @@ export const typescriptRules: Partial<TypeScriptRulesObject> = {
|
||||
warn,
|
||||
{ accessibility: 'no-public' },
|
||||
],
|
||||
'@typescript-eslint/no-empty-object-type': [
|
||||
error,
|
||||
{ allowInterfaces: 'with-single-extends' },
|
||||
],
|
||||
'@typescript-eslint/no-empty-object-type': off,
|
||||
'@typescript-eslint/no-empty-interface': [error, { allowSingleExtends: true }],
|
||||
'@typescript-eslint/no-explicit-any': off,
|
||||
'@typescript-eslint/no-misused-promises': [error, { checksVoidReturn: false }],
|
||||
|
Reference in New Issue
Block a user