Skip to content

Commit 8769db8

Browse files
author
stefanBid
committed
feat: release version 1.0.0 with major updates and new components
- Updated package version to 1.0.0 in package.json - Added support for CSS styles in exports - Removed outdated README.md and package.json files - Refactored useSbFloatingPanel to a new composables directory - Introduced new components: SbContainer, SbFloating, and SbReference - Enhanced floating panel functionality with arrow and resize support - Updated TypeScript configuration to include only src directory - Modified Vite configuration to reflect new library name - Improved code structure and organization for better maintainability
1 parent af35ccf commit 8769db8

File tree

12 files changed

+609
-1266
lines changed

12 files changed

+609
-1266
lines changed

eslint.config.cjs

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
const tsParser = require('@typescript-eslint/parser');
2-
const tsPlugin = require('@typescript-eslint/eslint-plugin');
3-
const vuePlugin = require('eslint-plugin-vue');
4-
const prettierPlugin = require('eslint-plugin-prettier');
1+
const tsParser = require('@typescript-eslint/parser')
2+
const tsPlugin = require('@typescript-eslint/eslint-plugin')
3+
const vuePlugin = require('eslint-plugin-vue')
4+
const vueParser = require('vue-eslint-parser')
5+
const prettierPlugin = require('eslint-plugin-prettier')
56

67
/** @type {import("eslint").Linter.FlatConfig[]} */
78
module.exports = [
9+
// Ignore generated and dependency folders
810
{
9-
ignores: ['node_modules/**', 'dist/**', 'types/**']
11+
ignores: ['node_modules/**', 'dist/**', 'types/**']
1012
},
13+
14+
// TypeScript support
1115
{
1216
files: ['**/*.ts'],
1317
languageOptions: {
@@ -26,11 +30,14 @@ module.exports = [
2630
'prettier/prettier': 'warn'
2731
}
2832
},
33+
34+
// Vue single-file components
2935
{
3036
files: ['**/*.vue'],
3137
languageOptions: {
32-
parser: tsParser,
38+
parser: vueParser,
3339
parserOptions: {
40+
parser: tsParser,
3441
ecmaVersion: 2021,
3542
sourceType: 'module',
3643
extraFileExtensions: ['.vue']
@@ -42,8 +49,32 @@ module.exports = [
4249
prettier: prettierPlugin
4350
},
4451
rules: {
52+
// Vue rules known to work with Flat Config
53+
'vue/no-multiple-template-root': 'off',
54+
'vue/require-prop-types': 'warn',
55+
'vue/require-default-prop': 'warn',
56+
'vue/attribute-hyphenation': ['warn', 'always'],
57+
'vue/html-self-closing': ['warn', {
58+
html: { normal: 'never', void: 'always' },
59+
svg: 'always',
60+
math: 'always',
61+
}],
4562
'vue/multi-word-component-names': 'off',
63+
'vue/component-name-in-template-casing': ['warn', 'PascalCase'],
64+
'vue/no-unused-components': 'warn',
65+
'vue/no-template-shadow': 'warn',
66+
'vue/no-mutating-props': 'warn',
67+
'vue/prop-name-casing': ['warn', 'camelCase'],
68+
'vue/no-v-text-v-html-on-component': 'warn',
69+
'vue/attributes-order': ['warn', {
70+
order: [
71+
'DEFINITION', 'LIST_RENDERING', 'CONDITIONALS', 'RENDER_MODIFIERS',
72+
'GLOBAL', 'UNIQUE', 'TWO_WAY_BINDING', 'OTHER_DIRECTIVES',
73+
'OTHER_ATTR', 'CONTENT', 'EVENTS'
74+
],
75+
alphabetical: false,
76+
}],
4677
'prettier/prettier': 'warn'
4778
}
4879
}
49-
];
80+
]

0 commit comments

Comments
 (0)