Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

1.1 KB
Raw Blame
import js from '@eslint/js'
import vue from 'eslint-plugin-vue'
import globals from 'globals'

export default [
    js.configs.recommended,
    ...vue.configs['flat/essential'],
    {
        files: ['src/**/*.js'],
        languageOptions: {
            ecmaVersion: 'latest',
            sourceType: 'module',
            globals: {
                ...globals.browser,
                //set by the Razor views and theme scripts, not by this bundle
                AxiosCart: 'readonly',
                //optional global from the AjaxFilter plugin; guarded with typeof
                AjaxFilter: 'readonly',
                //loaded from the Firebase CDN by the push notification component
                firebase: 'readonly',
                grandRes: 'readonly',
                grandRoutes: 'readonly'
            }
        },
        rules: {
            //<countdown> is written literally in the Razor views; the multi-word
            //convention would mean renaming the tag in every template that uses it
            'vue/multi-word-component-names': 'off'
        }
    }
]