Skip to content
Snippets Groups Projects
Commit 2c1689c7 authored by syuilo's avatar syuilo
Browse files

chore: add import/order rule for eslint

parent 16c7ef41
No related branches found
No related tags found
No related merge requests found
......@@ -6,4 +6,16 @@ module.exports = {
extends: [
'../shared/.eslintrc.js',
],
rules: {
'import/order': ['warn', {
'groups': ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type'],
'pathGroups': [
{
'pattern': '@/**',
'group': 'external',
'position': 'after'
}
],
}]
},
};
......@@ -68,5 +68,8 @@ module.exports = {
}],
'import/no-unresolved': ['off'],
'import/no-default-export': ['warn'],
'import/order': ['warn', {
'groups': ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type'],
}]
},
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment