1 Star 0 Fork 0

ten2net/nebula.gl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
gdsten2net 提交于 2022-03-24 16:32 +08:00 . 不进行CR检查
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['prettier', 'babel', 'import', '@typescript-eslint', 'react', 'react-hooks'],
extends: [
'eslint-config-uber-jsx',
'eslint-config-uber-es2015',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'prettier',
],
rules: {
'callback-return': 'off',
complexity: 'off',
'max-statements': 'off',
'no-return-assign': 'off',
'func-style': 'error',
'prettier/prettier': 'off',
'react/no-multi-comp': 'off',
'react/sort-comp': 'error',
'react/jsx-no-duplicate-props': 'error',
'sort-imports': 'off',
/* This is needed for class property function declarations */
'no-invalid-this': 'off',
'babel/no-invalid-this': 'error',
/* Style guide */
'import/first': 'error',
'import/no-duplicates': 'error',
'import/extensions': 'error',
'import/order': 'error',
'import/newline-after-import': 'error',
'import/extensions': 'off',
// Those are rules for typescript migration
'@typescript-eslint/interface-name-prefix': 0,
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'no-inline-comments': 0,
// TODO: Please remove these rules and fix eslint error when possible
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/ban-ts-ignore': 0,
'@typescript-eslint/camelcase': 0,
/* Ignore rules conflicting with prettier */
'react/jsx-wrap-multilines': 'off',
'react/jsx-indent': 'off',
'func-style': 'off',
/* Use the 'query-string' module instead */
'no-restricted-imports': ['error', 'querystring'],
'no-unused-vars': ['error', { args: 'none', ignoreRestSiblings: true }],
},
globals: {
Buffer: true,
window: true,
},
env: {
// Support global Jest variables (test, expect, etc.)
jest: true,
},
settings: {
react: {
version: 'detect',
},
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/gdsten2net/nebula.gl.git
git@gitee.com:gdsten2net/nebula.gl.git
gdsten2net
nebula.gl
nebula.gl
master

搜索帮助