1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/ttqf-FFBox

Клонировать/Скачать
.eslintrc.cjs 1.4 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
ttqf Отправлено 08.02.2023 22:00 845b203
/* eslint-disable */
// require('@rushstack/eslint-patch/modern-module-resolution');
module.exports = {
root: true,
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
// 'vue/setup-compiler-macros': true,
},
extends: [
// 'plugin:vue/vue3-recommended',
// 'eslint:recommended',
// '@vue/eslint-config-typescript/recommended',
// '@vue/eslint-config-prettier',
],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/explicit-function-return-type': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': ['warn', { allow: ['arrowFunctions'] }],
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-var-requires': 'off',
'vue/require-default-prop': 'off',
'vue/multi-word-component-names': 'off',
'indent': ['warn', 'tab', { 'SwitchCase': 1 }],
'no-irregular-whitespace': 'off',
'no-empty': 'off',
'no-constant-condition': 'off',
},
overrides: [
{
files: ['*.js'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
},
},
],
// plugins: ["react", "react-hooks"],
parser: 'babel-eslint', // 支持 jsx 识别
parserOptions: {
sourceType: "module", // 解决 Parsing error: 'import' and 'export' may appear only with 'sourceType'
}
};

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/ttqf-FFBox.git
git@api.gitlife.ru:oschina-mirror/ttqf-FFBox.git
oschina-mirror
ttqf-FFBox
ttqf-FFBox
4.0+