34 lines
968 B
JavaScript
34 lines
968 B
JavaScript
const js = require('@eslint/js');
|
|
const vue = require('eslint-plugin-vue');
|
|
|
|
module.exports = [
|
|
js.configs.recommended,
|
|
...vue.configs['flat/essential'],
|
|
{
|
|
languageOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
globals: {
|
|
uni: 'readonly',
|
|
wx: 'readonly',
|
|
plus: 'readonly',
|
|
console: 'readonly',
|
|
process: 'readonly',
|
|
EventSource: 'readonly',
|
|
setTimeout: 'readonly',
|
|
setInterval: 'readonly',
|
|
clearInterval: 'readonly',
|
|
},
|
|
},
|
|
rules: {
|
|
'vue/multi-word-component-names': 'off',
|
|
'no-console': 'warn',
|
|
'no-debugger': 'warn',
|
|
'no-unused-vars': 'warn',
|
|
// indent: ['error', 2],
|
|
quotes: ['error', 'single'],
|
|
// semi: ['error', 'never'],
|
|
},
|
|
},
|
|
];
|