mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-25 17:35:12 +00:00
427648c4b8
* wip * locales/index.jsのymlファイル取得ロジックを調節 * regenerate pnpm-lock.yaml * fix(backend): typecheck fails * chore(deps): bump ip-cidr from 4.0.0 to 4.0.1 in /packages/backend * chore: migrate ESLint configs to flat config (#14094) * chore: migrate ESLint configs to flat config * fix: update paths * fix: frontend lint fails * refactor(misskey-js): lint build.js * update deps --------- Co-authored-by: samunohito <46447427+samunohito@users.noreply.github.com> Co-authored-by: zyoshoka <root@zyoshoka.com> Co-authored-by: zyoshoka <107108195+zyoshoka@users.noreply.github.com>
43 lines
888 B
JavaScript
43 lines
888 B
JavaScript
import tsParser from '@typescript-eslint/parser';
|
|
import sharedConfig from '../../shared/eslint.config.js';
|
|
|
|
export default [
|
|
...sharedConfig,
|
|
{
|
|
files: ['**/*.ts', '**/*.tsx'],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
parser: tsParser,
|
|
project: ['./tsconfig.json'],
|
|
sourceType: 'module',
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
rules: {
|
|
'import/order': ['warn', {
|
|
groups: [
|
|
'builtin',
|
|
'external',
|
|
'internal',
|
|
'parent',
|
|
'sibling',
|
|
'index',
|
|
'object',
|
|
'type',
|
|
],
|
|
pathGroups: [{
|
|
pattern: '@/**',
|
|
group: 'external',
|
|
position: 'after',
|
|
}],
|
|
}],
|
|
'no-restricted-globals': ['error', {
|
|
name: '__dirname',
|
|
message: 'Not in ESModule. Use `import.meta.url` instead.',
|
|
}, {
|
|
name: '__filename',
|
|
message: 'Not in ESModule. Use `import.meta.url` instead.',
|
|
}],
|
|
},
|
|
},
|
|
];
|