56 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			JavaScript
		
	
	
module.exports = {
 | 
						|
  env: {
 | 
						|
    browser: true,
 | 
						|
    es2021: true,
 | 
						|
    node: true
 | 
						|
  },
 | 
						|
  extends: [
 | 
						|
    "plugin:vue/vue3-recommended",
 | 
						|
    "standard",
 | 
						|
    "@vue/prettier",
 | 
						|
    "eslint:recommended"
 | 
						|
  ],
 | 
						|
  parserOptions: {
 | 
						|
    ecmaVersion: "latest",
 | 
						|
    sourceType: "module"
 | 
						|
  },
 | 
						|
  plugins: ["vue"],
 | 
						|
  rules: {
 | 
						|
    "no-console": "warn",
 | 
						|
    "vue/multi-word-component-names": "off",
 | 
						|
    "vue/no-v-html": "off",
 | 
						|
    "vue/require-default-prop": "off",
 | 
						|
    "camelcase": "off",
 | 
						|
    "eqeqeq": "error",
 | 
						|
    "vue/no-template-shadow": "error",
 | 
						|
    "vue/attribute-hyphenation": "off",
 | 
						|
    "vue/html-end-tags": "error",
 | 
						|
    "vue/eqeqeq": "error",
 | 
						|
    "vue/component-name-in-template-casing": ["error", "kebab-case"],
 | 
						|
    "vue/enforce-style-attribute": [
 | 
						|
      "error",
 | 
						|
      { "allow": ["scoped", "module"] }
 | 
						|
    ],
 | 
						|
    "vue/v-on-event-hyphenation": ["error", "always",{
 | 
						|
      "autofix": true,
 | 
						|
    }],
 | 
						|
    "vue/require-explicit-emits": "error",
 | 
						|
    "no-unused-vars": [
 | 
						|
      "error",
 | 
						|
      { vars: "all", args: "after-used", ignoreRestSiblings: false }
 | 
						|
    ],
 | 
						|
    "linebreak-style": ["off",'windows'],
 | 
						|
    "no-restricted-properties": [
 | 
						|
      "error",
 | 
						|
      { "object": "Object", "property": "assign"}
 | 
						|
    ],
 | 
						|
    "no-debugger": 0
 | 
						|
  },
 | 
						|
  globals: {
 | 
						|
    BMapGL: "readonly",
 | 
						|
    JSEncrypt: "readonly",
 | 
						|
    Aliplayer: "readonly",
 | 
						|
    AliyunUpload: "readonly",
 | 
						|
  }
 | 
						|
};
 |