草庐IT

eslint-config-defaults

全部标签

vite vue3配置eslint和prettier以及sass

准备教程安装eslint官网vue-eslintts-eslint安装eslintyarnaddeslint-D生成配置文件npxeslint--init安装其他插件yarnadd-Deslint-plugin-importeslint-plugin-vueeslint-plugin-nodeeslint-plugin-prettiereslint-config-prettiereslint-plugin-node@babel/eslint-parservue-eslint-parser修改.eslintrc.cjsmodule.exports={env:{browser:true,es202

httpie 报错 无法使用: ImportError: cannot import name ‘DEFAULT_CIPHERS‘ from ‘urllib3.util.ssl_‘

http--versionTraceback(mostrecentcalllast): File"",line198,in_run_module_as_main File"",line88,in_run_code File"C:\Python\Python311\Scripts\http.exe\__main__.py",line7,in File"C:\Python\Python311\Lib\site-packages\httpie\__main__.py",line8,inmain  fromhttpie.coreimportmain File"C:\Python\Python311\L

问题记录:jenkins流水线报错ERROR: Couldn‘t find any revision to build. Verify the repository and branch config

原因1:gitlab本身配置不正确注意配置的gitlab仓库地址是否正确,是否少一个端口号,这是gitlab本身问题,导致的URL不正确。gitlab配置不正确时可能如下:git@192.168.130.131/xxx/yyy.git也就是clone时去访问80端口去了?而实际上宿主机80端口已被占用为其他组件的访问地址,此时去访问80的xxx/yyy.git能访问到才怪呢。流水线脚本中最终所填正确的URL格式如下(gitclone时可看到):ssh://git@192.168.130.131:29000/xxx/yyy.git其中29000是ssh连接端口,在gitlab配置文件gitlab

android - 项目没有 default.properties 文件!

这个问题在这里已经有了答案:Projecthasnodefault.propertiesfile!Edittheprojectpropertiestosetone(22个答案)关闭9年前。我从网站下载了一个示例项目。当我将此项目导入到Eclipse工作空间时。我收到这个错误项目没有default.properties文件!编辑项目属性以设置一个。我怎样才能摆脱这个问题。请告诉我谢谢

android - 扩展 EditText 以赋予它额外的 "default"功能的正确方法是什么

我想知道是否可以向EditText添加功能,这样当我在布局xml中包含我新扩展的字段时,我不必再向Activity类添加任何代码来让它以特定方式运行方式。例如,我想制作一个EditPhone字段,它只是一个EditText,具有监听关键事件和修改字段以在适当位置包含括号和破折号的附加功能。目前,我总是必须手动包含监听器代码并将其附加到View。但很明显,该类包含大量默认行为(例如,当您单击它时它会调出键盘)。所以,我猜应该不会那么难,但我不清楚要采取什么步骤才能实现这一点。需要说明的是,我不需要有关上述电话特定功能的帮助(我已经解决了所有问题),我正在尝试了解如何以一种方式扩展View

android - FirebaseApp 名称 [DEFAULT] 已存在

我正在尝试在应用程序上手动初始化FirebaseApp但出现此错误。publicclassBaseApplicationextendsApplication{@OverridepublicvoidonCreate(){super.onCreate();FirebaseOptionsfirebaseOptions=newFirebaseOptions.Builder().setDatabaseUrl("[DATABASE_URL]").setApiKey("API_KEY").setApplicationId("PROJECT_ID").build();FirebaseApp.initi

阿里云配置docker报错[Errno 256]No more mirrors to try.以及bash: yum-config-manager: 未找到命令

阿里云配置docker报错Nomoremirrorstotry.Errordownloadingpackages:docker-compose-plugin-2.21.0-1.el7.x86_64:[Errno256]Nomoremirrorstotry.docker-ce-rootless-extras-24.0.6-1.el7.x86_64:[Errno256]Nomoremirrorstotry.1:docker-ce-cli-24.0.6-1.el7.x86_64:[Errno256]Nomoremirrorstotry.1.已配设置(个人项目所需,切勿轻易关闭!!!这些配置并不与问题

android - 用于 Android 工具链的 FFMPEG : arm-linux-armeabi-eabi-pkg-config - is there any toolchain in existence containing the pkg-config tool

有人知道包含arm-linux-androideabi-pkg-config工具的ffmpeglinuxarm平台的任何工具链吗?AndroidNDK不包含它。还有人成功地为包含alsa设备的android构建ffmpeg吗?请注意,libasound存在于我的Ubuntux86PC上。经过非常广泛的研究访问论坛,包括ffmpeg.org、ffmpeg--nabbles、groups.google.com,包括andro和android-ndkgropus,和整个互联网一样,我还没有成功找到任何似乎知道它存在的人。充其量,我读过人们说忽略它。考虑到它的用途,我认为这样说很天真。仔细查看

android - 如何解决多个 D8 警告 : <Class X> was not found, 它是 default 或静态接口(interface)方法 desugaring <Class Y> 所必需的?

将AndroidGradle插件从3.1.4升级到3.2.x后,我收到多个警告,例如:D8:Type`com.google.gson.reflect.TypeToken`wasnotfound,itisrequiredfordefaultorstaticinterfacemethodsdesugaringof`com.google.gson.reflect.TypeTokenorg.springframework.http.converter.json.GsonHttpMessageConverter.getTypeToken(java.lang.reflect.Type)`D8:Ty

vue3.0之全局变量app.config.globalProperties的使用

globalProperties类型:[key:string]:any默认:undefined用法添加一个可以在应用的任何组件实例中访问的全局property。组件的property在命名冲突具有优先权。这可以代替Vue2.xVue.prototype扩展://之前(Vue2.x)Vue.prototype.$http=()=>{}//之后(Vue3.x)constapp=Vue.createApp({})app.config.globalProperties.$http=()=>{}当我们想在组件内调用http时需要使用getCurrentInstance()来获取。import{getCu