1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-15 15:18:18 +09:00
MisskeyIO/packages/backend/.eslintrc.cjs

33 lines
679 B
JavaScript
Raw Normal View History

2021-11-12 10:35:41 +09:00
module.exports = {
2021-11-12 10:58:13 +09:00
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json', './test/tsconfig.json'],
2021-11-12 10:58:13 +09:00
},
2021-11-12 10:35:41 +09:00
extends: [
'../shared/.eslintrc.js',
2021-11-12 10:35:41 +09:00
],
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.'
}
]
},
2021-11-12 10:35:41 +09:00
};