mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 03:23:08 +02:00
eslintrc-tsnocheck
This commit is contained in:
parent
fa03f61529
commit
2d3269273f
9 changed files with 50 additions and 7 deletions
1
.github/workflows/lint.yml
vendored
1
.github/workflows/lint.yml
vendored
|
@ -62,6 +62,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
workspace:
|
workspace:
|
||||||
- backend
|
- backend
|
||||||
|
- frontend
|
||||||
- misskey-js
|
- misskey-js
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3.3.0
|
- uses: actions/checkout@v3.3.0
|
||||||
|
|
10
packages/frontend/.eslintrc-tsnocheck.cjs
Normal file
10
packages/frontend/.eslintrc-tsnocheck.cjs
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
// Split from .eslintrc, so that the default eslintrc can still show error for ts-nocheck
|
||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
extends: [
|
||||||
|
'./.eslintrc.cjs',
|
||||||
|
],
|
||||||
|
rules: {
|
||||||
|
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-nocheck': false }]
|
||||||
|
}
|
||||||
|
};
|
|
@ -70,6 +70,7 @@ export function userDetailed(id = 'someuserid', username = 'miskist', host = 'mi
|
||||||
avatarUrl: 'https://github.com/misskey-dev/misskey/blob/master/packages/frontend/assets/about-icon.png?raw=true',
|
avatarUrl: 'https://github.com/misskey-dev/misskey/blob/master/packages/frontend/assets/about-icon.png?raw=true',
|
||||||
avatarBlurhash: 'eQFRshof5NWBRi},juayfPju53WB?0ofs;s*a{ofjuay^SoMEJR%ay',
|
avatarBlurhash: 'eQFRshof5NWBRi},juayfPju53WB?0ofs;s*a{ofjuay^SoMEJR%ay',
|
||||||
emojis: [],
|
emojis: [],
|
||||||
|
alsoKnownAs: [],
|
||||||
bannerBlurhash: 'eQA^IW^-MH8w9tE8I=S^o{$*R4RikXtSxutRozjEnNR.RQadoyozog',
|
bannerBlurhash: 'eQA^IW^-MH8w9tE8I=S^o{$*R4RikXtSxutRozjEnNR.RQadoyozog',
|
||||||
bannerColor: '#000000',
|
bannerColor: '#000000',
|
||||||
bannerUrl: 'https://github.com/misskey-dev/misskey/blob/master/packages/frontend/assets/fedi.jpg?raw=true',
|
bannerUrl: 'https://github.com/misskey-dev/misskey/blob/master/packages/frontend/assets/fedi.jpg?raw=true',
|
||||||
|
@ -102,6 +103,7 @@ export function userDetailed(id = 'someuserid', username = 'miskist', host = 'mi
|
||||||
isSuspended: false,
|
isSuspended: false,
|
||||||
lang: 'en',
|
lang: 'en',
|
||||||
location: 'Fediverse',
|
location: 'Fediverse',
|
||||||
|
movedTo: null,
|
||||||
notesCount: 65536,
|
notesCount: 65536,
|
||||||
pinnedNoteIds: [],
|
pinnedNoteIds: [],
|
||||||
pinnedNotes: [],
|
pinnedNotes: [],
|
||||||
|
|
|
@ -258,6 +258,7 @@ export function unwindCssModuleClassName(ast: estree.Node): void {
|
||||||
type: 'ArrayExpression',
|
type: 'ArrayExpression',
|
||||||
elements: node.declarations[0].init.arguments[1].elements.slice(0, __cssModulesIndex).concat(node.declarations[0].init.arguments[1].elements.slice(__cssModulesIndex + 1)),
|
elements: node.declarations[0].init.arguments[1].elements.slice(0, __cssModulesIndex).concat(node.declarations[0].init.arguments[1].elements.slice(__cssModulesIndex + 1)),
|
||||||
}],
|
}],
|
||||||
|
optional: false,
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
kind: 'const',
|
kind: 'const',
|
||||||
|
|
|
@ -12,7 +12,8 @@
|
||||||
"test-and-coverage": "vitest --run --coverage",
|
"test-and-coverage": "vitest --run --coverage",
|
||||||
"typecheck": "vue-tsc --noEmit",
|
"typecheck": "vue-tsc --noEmit",
|
||||||
"eslint": "eslint --quiet \"src/**/*.{ts,vue}\"",
|
"eslint": "eslint --quiet \"src/**/*.{ts,vue}\"",
|
||||||
"lint": "pnpm typecheck && pnpm eslint"
|
"lint-full": "pnpm typecheck && pnpm eslint",
|
||||||
|
"lint": "pnpm typecheck && pnpm eslint -c .eslintrc-tsnocheck.cjs"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordapp/twemoji": "14.1.2",
|
"@discordapp/twemoji": "14.1.2",
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"isolatedModules": true,
|
|
||||||
"useDefineForClassFields": true,
|
"useDefineForClassFields": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
|
@ -37,7 +36,8 @@
|
||||||
"esnext",
|
"esnext",
|
||||||
"dom"
|
"dom"
|
||||||
],
|
],
|
||||||
"jsx": "preserve"
|
"jsx": "preserve",
|
||||||
|
"skipLibCheck": true
|
||||||
},
|
},
|
||||||
"compileOnSave": false,
|
"compileOnSave": false,
|
||||||
"include": [
|
"include": [
|
||||||
|
@ -46,6 +46,8 @@
|
||||||
"./**/*.vue"
|
"./**/*.vue"
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
".storybook/**/*"
|
".storybook/**/*",
|
||||||
|
"lib/**/*",
|
||||||
|
"test/**/*"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -2254,7 +2254,8 @@ declare namespace entities {
|
||||||
Invite,
|
Invite,
|
||||||
InviteLimit,
|
InviteLimit,
|
||||||
UserSorting,
|
UserSorting,
|
||||||
OriginType
|
OriginType,
|
||||||
|
Role
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export { entities }
|
export { entities }
|
||||||
|
@ -2651,6 +2652,18 @@ type PageEvent = {
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
export const permissions: string[];
|
export const permissions: string[];
|
||||||
|
|
||||||
|
// @public (undocumented)
|
||||||
|
type Role = {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
color: string | null;
|
||||||
|
iconUrl: string | null;
|
||||||
|
description: string;
|
||||||
|
isModerator: boolean;
|
||||||
|
isAdministrator: boolean;
|
||||||
|
displayOrder: number;
|
||||||
|
};
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type ServerInfo = {
|
type ServerInfo = {
|
||||||
machine: string;
|
machine: string;
|
||||||
|
@ -2762,7 +2775,7 @@ type UserDetailed = UserLite & {
|
||||||
lang: string | null;
|
lang: string | null;
|
||||||
lastFetchedAt?: DateString;
|
lastFetchedAt?: DateString;
|
||||||
location: string | null;
|
location: string | null;
|
||||||
movedTo: string;
|
movedTo: string | null;
|
||||||
notesCount: number;
|
notesCount: number;
|
||||||
pinnedNoteIds: ID[];
|
pinnedNoteIds: ID[];
|
||||||
pinnedNotes: Note[];
|
pinnedNotes: Note[];
|
||||||
|
@ -2770,6 +2783,7 @@ type UserDetailed = UserLite & {
|
||||||
pinnedPageId: string | null;
|
pinnedPageId: string | null;
|
||||||
publicReactions: boolean;
|
publicReactions: boolean;
|
||||||
securityKeys: boolean;
|
securityKeys: boolean;
|
||||||
|
roles: Role[];
|
||||||
twoFactorEnabled: boolean;
|
twoFactorEnabled: boolean;
|
||||||
updatedAt: DateString | null;
|
updatedAt: DateString | null;
|
||||||
uri: string | null;
|
uri: string | null;
|
||||||
|
|
|
@ -57,7 +57,7 @@ export type UserDetailed = UserLite & {
|
||||||
lang: string | null;
|
lang: string | null;
|
||||||
lastFetchedAt?: DateString;
|
lastFetchedAt?: DateString;
|
||||||
location: string | null;
|
location: string | null;
|
||||||
movedTo: string;
|
movedTo: string | null;
|
||||||
notesCount: number;
|
notesCount: number;
|
||||||
pinnedNoteIds: ID[];
|
pinnedNoteIds: ID[];
|
||||||
pinnedNotes: Note[];
|
pinnedNotes: Note[];
|
||||||
|
@ -65,6 +65,7 @@ export type UserDetailed = UserLite & {
|
||||||
pinnedPageId: string | null;
|
pinnedPageId: string | null;
|
||||||
publicReactions: boolean;
|
publicReactions: boolean;
|
||||||
securityKeys: boolean;
|
securityKeys: boolean;
|
||||||
|
roles: Role[],
|
||||||
twoFactorEnabled: boolean;
|
twoFactorEnabled: boolean;
|
||||||
updatedAt: DateString | null;
|
updatedAt: DateString | null;
|
||||||
uri: string | null;
|
uri: string | null;
|
||||||
|
@ -546,3 +547,14 @@ export type UserSorting =
|
||||||
| '+updatedAt'
|
| '+updatedAt'
|
||||||
| '-updatedAt';
|
| '-updatedAt';
|
||||||
export type OriginType = 'combined' | 'local' | 'remote';
|
export type OriginType = 'combined' | 'local' | 'remote';
|
||||||
|
|
||||||
|
export type Role = {
|
||||||
|
id: string;
|
||||||
|
name: string;
|
||||||
|
color: string | null;
|
||||||
|
iconUrl: string | null;
|
||||||
|
description: string;
|
||||||
|
isModerator: boolean;
|
||||||
|
isAdministrator: boolean;
|
||||||
|
displayOrder: number;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue