mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-04-29 02:37:27 +09:00
* update deps * lint fixes * fix * trace-redirectを削除 Co-Authored-By: あわわわとーにゅ <17376330+u1-liquid@users.noreply.github.com> * attempt to fix test * refactor * fix test --------- Co-authored-by: あわわわとーにゅ <17376330+u1-liquid@users.noreply.github.com>
39 lines
889 B
JavaScript
39 lines
889 B
JavaScript
import pluginMisskey from '@misskey-dev/eslint-plugin';
|
|
import tsParser from '@typescript-eslint/parser';
|
|
|
|
//@ts-check
|
|
/** @type {import('eslint').Linter.Config[]} */
|
|
export default [ // eslint-disable-line import/no-default-export
|
|
...pluginMisskey.configs['recommended'],
|
|
{
|
|
ignores: [
|
|
'**/node_modules',
|
|
'src/@types/package.json.d.ts',
|
|
'built',
|
|
'jest.config.js',
|
|
'test',
|
|
],
|
|
},
|
|
{
|
|
files: ['**/*.ts', '**/*.tsx'],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
parser: tsParser,
|
|
project: ['./tsconfig.json', './test/tsconfig.json'],
|
|
sourceType: 'module',
|
|
tsConfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
rules: {
|
|
// 空文字でもフォールバックしたいので無効
|
|
'@typescript-eslint/prefer-nullish-coalescing': 'off',
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.js', '**/*.cjs'],
|
|
rules: {
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
},
|
|
},
|
|
];
|