2021-11-12 03:35:41 +02:00
|
|
|
module.exports = {
|
2021-11-12 03:58:13 +02:00
|
|
|
parserOptions: {
|
|
|
|
tsconfigRootDir: __dirname,
|
2023-02-26 04:28:05 +02:00
|
|
|
project: ['./tsconfig.json', './test/tsconfig.json'],
|
2021-11-12 03:58:13 +02:00
|
|
|
},
|
2021-11-12 03:35:41 +02:00
|
|
|
extends: [
|
2021-11-18 16:32:43 +02:00
|
|
|
'../shared/.eslintrc.js',
|
2021-11-12 03:35:41 +02:00
|
|
|
],
|
2022-04-15 09:05:43 +03:00
|
|
|
rules: {
|
|
|
|
'import/order': ['warn', {
|
|
|
|
'groups': ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type'],
|
|
|
|
'pathGroups': [
|
|
|
|
{
|
|
|
|
'pattern': '@/**',
|
|
|
|
'group': 'external',
|
|
|
|
'position': 'after'
|
|
|
|
}
|
|
|
|
],
|
2022-05-14 10:09:47 +03:00
|
|
|
}],
|
|
|
|
'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.'
|
|
|
|
}
|
|
|
|
]
|
2022-04-15 09:05:43 +03:00
|
|
|
},
|
2021-11-12 03:35:41 +02:00
|
|
|
};
|