4 Star 4 Fork 5

POLYV/polyv-web-live-watch-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
H-zk 提交于 2025-04-11 16:54 +08:00 . feat: 观看页 SDK UI 开源版 v2.2.0
/* 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'] }],
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/polyv_ef/polyv-web-live-watch-sdk.git
git@gitee.com:polyv_ef/polyv-web-live-watch-sdk.git
polyv_ef
polyv-web-live-watch-sdk
polyv-web-live-watch-sdk
master

搜索帮助