uni-helper / eslint-config Goto Github PK
View Code? Open in Web Editor NEW适用于 uni-app 的 Anthony's ESLint 配置预设
License: MIT License
适用于 uni-app 的 Anthony's ESLint 配置预设
License: MIT License
Error: Invalid Options:
- Unknown options: reportUnusedDisableDirectives
- 'reportUnusedDisableDirectives' has been removed. Please use the 'overrideConfig.linterOptions.reportUnusedDisableDirectives' option instead.
System:
OS: macOS 12.6.5
CPU: (4) x64 Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Memory: 172.86 MB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.17.0/bin/yarn
npm: 8.15.0 - ~/.nvm/versions/node/v16.17.0/bin/npm
Browsers:
Chrome: 120.0.6099.109
Firefox: 63.0.3
yarn
截至目前, @antfu/eslint-config 的版本更新到了2.21.2 ,对应的eslint版本也升级到了9.5.0(虽然是补丁版:npm:[email protected])。
而本仓库已经6个月未更新了......
更新并适配@antfu/eslint-config 和eslint的新版本。
No response
https://github.com/antfu/eslint-config
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are awaiting their schedule. Click on a checkbox to get an update now.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/release.yml
actions/checkout v3
pnpm/action-setup v2
actions/setup-node v3
package.json
@antfu/eslint-config ^2.1.1
local-pkg ^0.5.0
@types/fs-extra ^11.0.4
@types/node ^20.10.0
bumpp ^9.2.0
eslint ^8.54.0
esno ^4.0.0
execa ^8.0.1
fast-glob ^3.3.2
fs-extra ^11.2.0
typescript ^5.3.2
unbuild ^2.0.0
vite ^5.0.3
vitest ^0.34.6
pnpm 8.11.0
基于 eslint-plugin-vue 改一个出来? 但是这样又会多一套配置,也许扩展一下能支持就好了
No response
看了下 vue-eslint-parser 大于 2 个 script node 直接只取第一个
const uni = require('@uni-helper/eslint-config')
const unocss = require('@unocss/eslint-plugin')
module.exports = uni(
{
overrides: {
uni: {
'vue/component-name-in-template-casing': ['error', 'PascalCase'],
},
},
ignores: [
'./src/**/*.js',
],
},
unocss.configs.flat,
)
"eslint": "^8.56.0",
"@uni-helper/eslint-config": "^0.0.6",
"@unocss/eslint-config": "^0.58.3",
System:
OS: macOS 12.6.1
CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
Memory: 356.16 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.19.0 - ~/Library/Caches/fnm_multishells/4880_1706113613238/bin/node
Yarn: 1.22.21 - ~/Library/Caches/fnm_multishells/4880_1706113613238/bin/yarn
npm: 10.2.3 - ~/Library/Caches/fnm_multishells/4880_1706113613238/bin/npm
Browsers:
Chrome: 123.0.6312.107
Safari: 16.1
yarn
为什么要强制锁定组件命名模式呢?我并不是很能接受自定义组件 kebab-case 写法。
eslint-config/src/configs/uni.ts
Lines 14 to 16 in 2bbdf42
这个地方如果不设置的话,antfu 默认应该是 registeredComponentsOnly: true
仅检查已注册的组件 ,应该是不会影响到 uni-app
原生标签的。
虽然可以自定义修改规则,但我觉得保持默认是最好的选择。
ps: 是不是最好能提供一下怎么自定义规则文档,我刚刚在第一个参数里直接写了规则,ts 也没有报错,我就以为配置成功了,但是半天不生效,所以我去看了源码好像不是这样用的 :)。
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.