1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| module.exports = { env: { browser: true, es2021: true, node: true }, extends: ['eslint:recommended', 'plugin:prettier/recommended'], parser: 'vue-eslint-parser', parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, plugins: ['vue'], rules: { indent: ['error', 2, { SwitchCase: 1 }], eqeqeq: ['error', 'always'], 'linebreak-style': ['error', 'windows'], quotes: ['error', 'single'], semi: ['error', 'never'], camelcase: 2 }, globals: { document: true, window: true, uni: true, wx: true, ROUTES: true } }
|