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