eslintrc-tsnocheck
This commit is contained in:
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',
|
||||
avatarBlurhash: 'eQFRshof5NWBRi},juayfPju53WB?0ofs;s*a{ofjuay^SoMEJR%ay',
|
||||
emojis: [],
|
||||
alsoKnownAs: [],
|
||||
bannerBlurhash: 'eQA^IW^-MH8w9tE8I=S^o{$*R4RikXtSxutRozjEnNR.RQadoyozog',
|
||||
bannerColor: '#000000',
|
||||
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,
|
||||
lang: 'en',
|
||||
location: 'Fediverse',
|
||||
movedTo: null,
|
||||
notesCount: 65536,
|
||||
pinnedNoteIds: [],
|
||||
pinnedNotes: [],
|
||||
|
@@ -258,6 +258,7 @@ export function unwindCssModuleClassName(ast: estree.Node): void {
|
||||
type: 'ArrayExpression',
|
||||
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',
|
||||
|
@@ -12,7 +12,8 @@
|
||||
"test-and-coverage": "vitest --run --coverage",
|
||||
"typecheck": "vue-tsc --noEmit",
|
||||
"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": {
|
||||
"@discordapp/twemoji": "14.1.2",
|
||||
|
@@ -19,7 +19,6 @@
|
||||
"experimentalDecorators": true,
|
||||
"resolveJsonModule": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"isolatedModules": true,
|
||||
"useDefineForClassFields": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
@@ -37,7 +36,8 @@
|
||||
"esnext",
|
||||
"dom"
|
||||
],
|
||||
"jsx": "preserve"
|
||||
"jsx": "preserve",
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"compileOnSave": false,
|
||||
"include": [
|
||||
@@ -46,6 +46,8 @@
|
||||
"./**/*.vue"
|
||||
],
|
||||
"exclude": [
|
||||
".storybook/**/*"
|
||||
".storybook/**/*",
|
||||
"lib/**/*",
|
||||
"test/**/*"
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user