1 Star 0 Fork 447

guiyangyang / vue3-ts-cesium-map-show

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 2.29 KB
一键复制 编辑 原始数据 按行查看 历史
// https://eslint.org/docs/rules/
const isProduction = process.env.NODE_ENV === 'production'
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/typescript/recommended',
],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
'prefer-const': 'off',
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["off"],
"@typescript-eslint/no-this-alias": ["off"],
"@typescript-eslint/no-explicit-any": ["off"],
'@typescript-eslint/no-non-null-assertion': 'off',
'curly': ['error', 'multi-line'],
'eqeqeq': ['error', 'always'],
'semi': ['error', 'never'],
'indent': ['error', 2, {
'SwitchCase': 1,
}],
'quotes': ['error', 'single', {
'avoidEscape': true,
'allowTemplateLiterals': true,
}],
'key-spacing': ['error', {
'beforeColon': false,
'afterColon': true,
'mode': 'strict',
}],
'no-empty': 'error',
'no-else-return': 'error',
'no-multi-spaces': 'error',
'require-await': 'error',
'brace-style': ['error', 'stroustrup'],
'spaced-comment': ['error', 'always'],
'arrow-spacing': 'error',
'no-duplicate-imports': 'error',
'comma-spacing': ['error', {
'before': false,
'after': true,
}],
'default-case': 'error',
'consistent-this': ['error', '_this'],
'max-depth': ['error', 5],
'max-lines': ['error', 800],
'no-multi-str': 'error',
'space-infix-ops': 'error',
'space-before-blocks': ['error', 'always'],
'space-before-function-paren': ['error', {
'named': 'never',
'anonymous': 'never',
'asyncArrow': 'always',
}],
'keyword-spacing': ['error'],
'no-useless-return': 'error',
'array-bracket-spacing': 'error',
'no-useless-escape': 'off',
'no-eval': 'error',
'no-var': 'error',
'no-with': 'error',
// 'no-alert': isProduction ? 'error' : 'warn',
// 'no-console': isProduction ? 'error' : 'warn',
// 'no-debugger': isProduction ? 'error' : 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)'
],
env: {
jest: true,
},
},
],
}
TypeScript
1
https://gitee.com/gyy155/vue3-ts-cesium-map-show.git
git@gitee.com:gyy155/vue3-ts-cesium-map-show.git
gyy155
vue3-ts-cesium-map-show
vue3-ts-cesium-map-show
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891