You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
2.2 KiB
85 lines
2.2 KiB
module.exports = {
|
|
extends: [
|
|
'@nextcloud',
|
|
],
|
|
globals: {
|
|
// @nextcloud/webpack-vue-config globals
|
|
appName: 'readonly',
|
|
appVersion: 'readonly',
|
|
// Desktop build globals
|
|
IS_DESKTOP: 'readonly',
|
|
},
|
|
rules: {
|
|
'import/newline-after-import': 'warn',
|
|
'import/no-named-as-default-member': 'off',
|
|
'import/order': [
|
|
'warn',
|
|
{
|
|
groups: ['builtin', 'external', 'internal', ['parent', 'sibling', 'index'], 'unknown'],
|
|
pathGroups: [
|
|
{
|
|
// group all style imports at the end
|
|
pattern: '{*.css,*.scss}',
|
|
patternOptions: { matchBase: true },
|
|
group: 'unknown',
|
|
position: 'after',
|
|
},
|
|
{
|
|
// group material design icons
|
|
pattern: 'vue-material-design-icons/**',
|
|
group: 'external',
|
|
position: 'after',
|
|
},
|
|
{
|
|
// group @nextcloud imports
|
|
pattern: '@nextcloud/{!(vue),!(vue)/**}',
|
|
group: 'external',
|
|
position: 'after',
|
|
},
|
|
{
|
|
// group @nextcloud/vue imports
|
|
pattern: '{@nextcloud/vue,@nextcloud/vue/**}',
|
|
group: 'external',
|
|
position: 'after',
|
|
},
|
|
{
|
|
// group project components
|
|
pattern: '*.vue',
|
|
patternOptions: { matchBase: true },
|
|
group: 'external',
|
|
position: 'after',
|
|
},
|
|
],
|
|
pathGroupsExcludedImportTypes: ['@nextcloud', 'vue-material-design-icons'],
|
|
'newlines-between': 'always',
|
|
alphabetize: {
|
|
order: 'asc',
|
|
caseInsensitive: true,
|
|
},
|
|
warnOnUnassignedImports: true,
|
|
},
|
|
],
|
|
// Prepare for Vue 3 Migration
|
|
'vue/no-deprecated-data-object-declaration': 'warn',
|
|
'vue/no-deprecated-events-api': 'warn',
|
|
'vue/no-deprecated-filter': 'warn',
|
|
'vue/no-deprecated-functional-template': 'warn',
|
|
'vue/no-deprecated-html-element-is': 'warn',
|
|
'vue/no-deprecated-props-default-this': 'warn',
|
|
'vue/no-deprecated-router-link-tag-prop': 'warn',
|
|
'vue/no-deprecated-scope-attribute': 'warn',
|
|
'vue/no-deprecated-slot-attribute': 'warn',
|
|
'vue/no-deprecated-slot-scope-attribute': 'warn',
|
|
'vue/no-deprecated-v-is': 'warn',
|
|
'vue/no-deprecated-v-on-number-modifiers': 'warn',
|
|
'vue/require-explicit-emits': 'warn',
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['**/*.spec.js'],
|
|
rules: {
|
|
'node/no-unpublished-import': 'off',
|
|
},
|
|
},
|
|
],
|
|
}
|