mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-09-11 12:25:42 +03:00
Enable eslint import/order plugin
This commit is contained in:
parent
45c84564d4
commit
80b48778f8
@ -32,6 +32,20 @@ module.exports = {
|
||||
},
|
||||
rules: {
|
||||
'import/no-cycle': 'error',
|
||||
'import/order': [
|
||||
'error',
|
||||
{
|
||||
alphabetize: { order: 'asc', orderImportKind: 'asc', caseInsensitive: false },
|
||||
groups: ['index', 'sibling', 'parent', 'internal', 'external', 'builtin', 'object', 'type'],
|
||||
'newlines-between': 'never'
|
||||
}
|
||||
],
|
||||
'import/no-unresolved': [
|
||||
'error',
|
||||
{
|
||||
ignore: ['^\\$app', '^\\$env']
|
||||
}
|
||||
],
|
||||
'svelte/no-at-html-tags': 'off',
|
||||
'@typescript-eslint/no-namespace': 'off',
|
||||
'@typescript-eslint/no-empty-function': 'off',
|
||||
|
@ -13,6 +13,7 @@
|
||||
"check:watch": "pnpm check --watch",
|
||||
"lint": "prettier --no-editorconfig --check . && eslint .",
|
||||
"format": "prettier --no-editorconfig --write .",
|
||||
"fix": "eslint --fix .",
|
||||
"tauri": "tauri",
|
||||
"prepare": "svelte-kit sync"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user