97 Star 458 Fork 115

GVPantv / F2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
索丘 提交于 2023-02-13 19:46 . fix: 修复 lint 的 warnings (#1724)
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
jest: true,
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: 12,
ecmaFeatures: {
jsx: true,
},
jsxPragma: 'jsx',
jsxFragmentName: 'Fragment',
},
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/no-inferrable-types': 0,
'no-constant-condition': 0,
'@typescript-eslint/ban-types': 0,
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/no-empty-function': 0,
'no-prototype-builtins': 0,
'no-case-declarations': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-namespace': 0,
'@typescript-eslint/no-explicit-any': 0,
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
typescript: {
alwaysTryTypes: true,
},
},
},
};
JavaScript
1
https://gitee.com/antv/f2.git
git@gitee.com:antv/f2.git
antv
f2
F2
master

搜索帮助