ff6433128a
* Add Dialog * Add options to embed dialog * Min Height of Clipboard Input multiline to 3 lines * Check for visibility * Link to change access of project * Rename to guided mode * Change icon when user clicks copy button * Update Menu styles based on agi feedback * Update graphql.ts * Embed Options as hashState * Auto grow Clipboard Input * embed state and more options * Tidyups * Footer only shows when !embedOptions.isTransparent * Add auto/manual Load * Add Pre setup component * WIP Button Group mobile * Updates around manual load * Viewer Share nav * Add embed dialog to project page * Minor fixes * Check for federated * Responsive Tidyups * Responsive Fixes. Fix console issues * Add Alert to Version Embed * Disable Zoom * GQL updates * Comment Slideshow * GraphQl changes * Fix visibility * Build fix * Revert "Build fix" This reverts commit 0e706cbd9fde78204032bb1ec4421b1742d023ac. * remove unneeded change, revert yarn.lock * Test Commit * Remove commit test * Fix build * Update Tailwind. Add base url env * fix for portal scope issue * useLogger * useLogger * chore(fe2): include NUXT_PUBLIC_BASE_URL in deployment manifests * lazy load optimization * lint fixes * Updates * Re-add guided open Dialog sections * Prevent login popup on embed * Tidy up mobile combined button group * Tidy up embed Dialogs * Small styling issues * Update scrolling in embed dialog * Move selection info when embed * Testing fixes * Discuss in Speckle * Responsive Dialog Changes * Fix bug * WIP Manual Load * Fix nuxt errors * Fix nuxt logger issue * Fix embed dialog overflows * New Dialog layout * Responsive Breakpoint change * Preview Image * Fix bug with dialogSection * Hide selection info on mobile when thread is open * Footer Model Name * Overflow on ClipboardInput * Style fixes * Tidy ups * Responsive updates * Responsive fixes * Update button * Changes from testing * Fix embed height with footer * Fix Dialog Section * Fixes from testing * Move "reset filters" on embed * Small fixes * Updates from CR 1 * CR Comments 2 * Updates from CR * Add deserializeEmbedOptions helper * DialogSection changes * Revert changes in TextArea * Updates from CR * Only check for noscroll in watch * Update useRoute * Comment Slideshow mode * Changes from testing * Fix mobile share button * onMounted warn fixes * Updates from testing * Remove nesting of ManualLoad * Keep Speckle text on mobile * minor cleanup & bugfixes * Add target prop to Logo * navbar flash fix + more cleanup * Fix urls * Footer Logo changes * Remove viewer-transparent from layout * Add Reply in Speckle * Remove Anchored Points from embed * Final changes pre CR * Fix Anchored Points * Update packages/frontend-2/components/project/model-page/dialog/embed/Embed.vue Co-authored-by: Kristaps Fabians Geikins <fabians@speckle.systems> * Fixes from CR * Updates from cr * Changes WIP * Fix for dialog opening * Changes from PR * Updates to check embed in activity * fix(fe2): project settings dialog error * Make Team open section on click of "Manage" * Fixes from merge * Changes from cr * Compare old to new in watch * Fix logo in footer of embed * Fixes from merge * Fix build. Fix lazy load * Updates from Benjamin * Fix transparent bg --------- Co-authored-by: Kristaps Fabians Geikins <fabis94@live.com> Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com> Co-authored-by: Kristaps Fabians Geikins <fabians@speckle.systems>
130 lines
3.3 KiB
JavaScript
130 lines
3.3 KiB
JavaScript
const mainExtends = [
|
|
'plugin:nuxt/recommended',
|
|
'plugin:vue/vue3-recommended',
|
|
// 'plugin:storybook/recommended',
|
|
'prettier'
|
|
]
|
|
|
|
/** @type {import('eslint').Linter.Config} */
|
|
const config = {
|
|
env: {
|
|
node: true
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 2020,
|
|
sourceType: 'module',
|
|
parser: '@typescript-eslint/parser',
|
|
tsconfigRootDir: __dirname,
|
|
project: ['./tsconfig.eslint.json'],
|
|
extraFileExtensions: ['.vue']
|
|
},
|
|
extends: [...mainExtends],
|
|
plugins: ['@typescript-eslint'],
|
|
ignorePatterns: [
|
|
'**/templates/*',
|
|
'coverage',
|
|
'lib/common/generated/**/*',
|
|
'storybook-static',
|
|
'!.storybook',
|
|
'.nuxt',
|
|
'.output'
|
|
],
|
|
rules: {
|
|
camelcase: [
|
|
'error',
|
|
{
|
|
properties: 'always',
|
|
allow: ['^[\\w]+_[\\w]+Fragment$']
|
|
}
|
|
],
|
|
'no-alert': 'error',
|
|
eqeqeq: ['error', 'always', { null: 'always' }],
|
|
'no-console': 'error',
|
|
'no-var': 'error'
|
|
},
|
|
overrides: [
|
|
{
|
|
files: '*.test.{ts,js}',
|
|
env: {
|
|
jest: true
|
|
}
|
|
},
|
|
{
|
|
files: './{components|pages|store|lib}/*.{js,ts,vue}',
|
|
env: {
|
|
node: false,
|
|
browser: true
|
|
}
|
|
},
|
|
{
|
|
files: '*.{ts,tsx,vue}',
|
|
extends: ['plugin:@typescript-eslint/recommended', ...mainExtends],
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': ['error'],
|
|
'@typescript-eslint/no-unsafe-argument': ['error'],
|
|
'@typescript-eslint/no-unsafe-assignment': 'error',
|
|
'@typescript-eslint/no-unsafe-call': 'error',
|
|
'@typescript-eslint/no-unsafe-member-access': 'error',
|
|
'@typescript-eslint/no-unsafe-return': 'error',
|
|
'@typescript-eslint/no-for-in-array': ['error'],
|
|
'@typescript-eslint/restrict-template-expressions': ['error'],
|
|
'@typescript-eslint/restrict-plus-operands': ['error'],
|
|
'@typescript-eslint/await-thenable': ['warn'],
|
|
'@typescript-eslint/ban-types': ['warn'],
|
|
'require-await': 'off',
|
|
'@typescript-eslint/require-await': 'error',
|
|
'no-undef': 'off'
|
|
}
|
|
},
|
|
{
|
|
files: '*.vue',
|
|
plugins: ['vuejs-accessibility'],
|
|
extends: [
|
|
'plugin:@typescript-eslint/recommended',
|
|
...mainExtends,
|
|
'plugin:vuejs-accessibility/recommended'
|
|
],
|
|
rules: {
|
|
'vue/component-tags-order': [
|
|
'error',
|
|
{ order: ['docs', 'template', 'script', 'style'] }
|
|
],
|
|
'vue/require-default-prop': 'off',
|
|
'vue/multi-word-component-names': 'off',
|
|
'vue/component-name-in-template-casing': [
|
|
'error',
|
|
'PascalCase',
|
|
{ registeredComponentsOnly: false }
|
|
],
|
|
'vuejs-accessibility/label-has-for': [
|
|
'error',
|
|
{
|
|
required: {
|
|
some: ['nesting', 'id']
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
files: '*.d.ts',
|
|
rules: {
|
|
'no-var': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/ban-types': 'off'
|
|
}
|
|
}
|
|
// {
|
|
// files: '*.stories.{js,ts}',
|
|
// rules: {
|
|
// // this one feels busted, tells me to await synchronous calls
|
|
// 'storybook/await-interactions': 'off',
|
|
// // storybook types suck and can't be augmented
|
|
// '@typescript-eslint/no-unsafe-call': 'off'
|
|
// }
|
|
// }
|
|
]
|
|
}
|
|
|
|
module.exports = config
|