12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- module.exports = {
-
- root: true,
- env: {
- node: true,
- browser: true
- },
- globals: {
- uni: true,
- wx: true,
- App: true,
- getApp: true,
- Page: true,
- getCurrentPages: true,
- Component: true,
- Behavior: true
- },
-
- extends: [
- 'plugin:vue/essential',
- '@vue/standard',
- '@vue/typescript',
- '@vue/prettier/@typescript-eslint'
- ],
- plugins: ['@typescript-eslint'],
- parserOptions: {
-
-
- ecmaVersion: 2020,
- sourceType: 'module',
- ecmaFeatures: {
- jsx: true
- },
- parser: '@typescript-eslint/parser'
- },
- rules: {
- 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
- 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
- 'no-unused-vars': [
- 1,
- {
- vars: 'all',
- args: 'none'
- }
- ],
- 'no-tabs': 0,
- 'no-mixed-spaces-and-tabs': 0,
- indent: [2, 2, { SwitchCase: 1 }],
- 'space-before-function-paren': [0, 'never']
- }
- }
|