1 Star 0 Fork 0

RHQYZ / x.naive-ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.cjs 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
RHQYZ 提交于 2023-08-27 09:37 . build: ifdef DEV
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution');
module.exports = {
env: {
'vue/setup-compiler-macros': true,
'node': true
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript/recommended',
'@vue/eslint-config-prettier'
],
globals: {
__DEV__: 'readonly'
},
parserOptions: {
ecmaVersion: 'latest'
},
root: true,
rules: {
'indent': ['error', 4, { SwitchCase: 1 }],
'linebreak-style': ['warn', 'windows'],
'max-len': ['warn', 120],
'no-console': 'off',
'no-extra-boolean-cast': 'off',
'prettier/prettier': ['warn', { trailingComma: 'none' }],
'quotes': ['error', 'single'],
'semi': ['error', 'always'],
'@typescript-eslint/ban-ts-comment': 'warn',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/indent': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/triple-slash-reference': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
varsIgnorePattern: '^__',
argsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_'
}
]
}
};
TypeScript
1
https://gitee.com/fudiwei/x.naive-ui.git
git@gitee.com:fudiwei/x.naive-ui.git
fudiwei
x.naive-ui
x.naive-ui
main

搜索帮助