42 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
		
		
			
		
	
	
			42 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
| 
								 | 
							
								/* eslint-env node */
							 | 
						||
| 
								 | 
							
								require('@rushstack/eslint-patch/modern-module-resolution')
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								module.exports = {
							 | 
						||
| 
								 | 
							
								    root: true,
							 | 
						||
| 
								 | 
							
								    extends: ['plugin:vue/vue3-essential', 'eslint:recommended', '@vue/eslint-config-prettier'],
							 | 
						||
| 
								 | 
							
								    // 小程序全局变量
							 | 
						||
| 
								 | 
							
								    globals: {
							 | 
						||
| 
								 | 
							
								        uni: true,
							 | 
						||
| 
								 | 
							
								        wx: true,
							 | 
						||
| 
								 | 
							
								        WechatMiniprogram: true,
							 | 
						||
| 
								 | 
							
								        getCurrentPages: true,
							 | 
						||
| 
								 | 
							
								        getApp: true,
							 | 
						||
| 
								 | 
							
								        UniApp: true,
							 | 
						||
| 
								 | 
							
								        UniHelper: true,
							 | 
						||
| 
								 | 
							
								        App: true,
							 | 
						||
| 
								 | 
							
								        Page: true,
							 | 
						||
| 
								 | 
							
								        Component: true,
							 | 
						||
| 
								 | 
							
								        AnyObject: true,
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								    parserOptions: {
							 | 
						||
| 
								 | 
							
								        ecmaVersion: 'latest',
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								    rules: {
							 | 
						||
| 
								 | 
							
								        'prettier/prettier': [
							 | 
						||
| 
								 | 
							
								            'warn',
							 | 
						||
| 
								 | 
							
								            {
							 | 
						||
| 
								 | 
							
								                tabWidth: 4,
							 | 
						||
| 
								 | 
							
								                singleQuote: true,
							 | 
						||
| 
								 | 
							
								                semi: false,
							 | 
						||
| 
								 | 
							
								                printWidth: 100,
							 | 
						||
| 
								 | 
							
								                trailingComma: 'all',
							 | 
						||
| 
								 | 
							
								                endOfLine: 'auto',
							 | 
						||
| 
								 | 
							
								            },
							 | 
						||
| 
								 | 
							
								        ],
							 | 
						||
| 
								 | 
							
								        'vue/multi-word-component-names': ['off'],
							 | 
						||
| 
								 | 
							
								        'vue/no-setup-props-destructure': ['off'],
							 | 
						||
| 
								 | 
							
								        'vue/no-deprecated-html-element-is': ['off'],
							 | 
						||
| 
								 | 
							
								        '@typescript-eslint/no-unused-vars': ['off'],
							 | 
						||
| 
								 | 
							
								    },
							 | 
						||
| 
								 | 
							
								}
							 |