代码拉取完成,页面将自动刷新
/* eslint-env node */
module.exports = {
root: true,
extends: [
'./node_modules/@polyv/eslint-config/lib/for-vue2-js',
'./node_modules/@polyv/eslint-config/lib/for-ts',
'plugin:prettier/recommended',
],
parserOptions: {
parser: '@typescript-eslint/parser',
extraFileExtensions: ['.vue'],
ecmaFeatures: {
jsx: true,
},
},
globals: {
PROJECT_BUILD_TIME: 'readonly',
PROJECT_VERSION: 'readonly',
WATCH_SDK_ENV: 'readonly',
IN_SDK_INJECT_MODE: 'readonly',
ENABLE_RUNTIME_PUBLIC_PATH: 'readonly',
BUILD_ENV: 'readonly',
},
rules: {
'import/named': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'@typescript-eslint/no-for-in-array': 'off',
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'enumMember',
format: ['PascalCase', 'UPPER_CASE'],
},
],
'prettier/prettier': 'warn',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'vue/component-name-in-template-casing': [
'error',
'kebab-case',
{
registeredComponentsOnly: true,
ignores: [],
},
],
// 'vue/enforce-style-attribute': ['warn', { allow: ['plain'] }],
},
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。