mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-22 16:30:13 +00:00
44 lines
888 B
JavaScript
44 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.',
|
||
|
}],
|
||
|
},
|
||
|
},
|
||
|
];
|