4 Star 8 Fork 1

qmake/nuts-ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.cjs 1.87 KB
一键复制 编辑 原始数据 按行查看 历史
qmake 提交于 2023-02-12 23:00 . ====项目初始化====
const path = require('path')
module.exports = {
root: true,
parser: 'vue-eslint-parser',
parserOptions: {
// Parser that checks the content of the <script> tag
parser: '@typescript-eslint/parser',
sourceType: 'module',
ecmaVersion: 2020,
ecmaFeatures: {
jsx: true,
},
},
env: {
'browser': true,
'node': true,
'es6': true,
'vue/setup-compiler-macros': true,
},
plugins: ['@typescript-eslint'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:vue/vue3-recommended',
'plugin:prettier/recommended',
],
settings: {
'import/resolver': {
typescript: {
project: path.resolve(__dirname, './tsconfig.json'),
},
},
},
rules: {
'prettier/prettier': 1,
// Vue: Recommended rules to be closed or modify
'vue/require-default-prop': 0,
'vue/singleline-html-element-content-newline': 0,
'vue/max-attributes-per-line': 0,
// Vue: Add extra rules
'vue/custom-event-name-casing': [2, 'camelCase'],
'vue/no-v-text': 1,
'vue/padding-line-between-blocks': 1,
'vue/require-direct-export': 1,
// Allow @ts-ignore comment
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/no-unused-vars': 1,
'@typescript-eslint/no-empty-function': 1,
'import/extensions': [
2,
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
'import/prefer-default-export': 0,
'import/no-extraneous-dependencies': 0,
'no-console': 1,
'no-shadow': 0,
'no-param-reassign': 0,
'no-undef': 0,
'class-methods-use-this': 'off',
'@typescript-eslint/no-explicit-any': ['off'],
'no-underscore-dangle': 'off',
'import/no-cycle': 0,
'@typescript-eslint/no-non-null-assertion': 'off'
},
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/qmake-itech/nuts-ui.git
git@gitee.com:qmake-itech/nuts-ui.git
qmake-itech
nuts-ui
nuts-ui
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385