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