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