FoundKey/packages/backend/.eslintrc.cjs

37 lines
755 B
JavaScript
Raw Normal View History

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: [
'../shared/.eslintrc.js',
2021-11-12 01:35:41 +00:00
],
plugins: [
'foundkey-custom-rules',
2023-01-03 01:41:53 +00:00
],
rules: {
'foundkey-custom-rules/typeorm-prefer-count': 'error',
'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.'
}
]
},
2021-11-12 01:35:41 +00:00
};