1 Star 0 Fork 0

chris/vscode-python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc 3.47 KB
一键复制 编辑 原始数据 按行查看 历史
Kim-Adeline Miguel 提交于 2021-03-20 01:47 +08:00 . Expand no unused vars rule (#15704)
{
"env": {
"node": true,
"es6": true,
"mocha": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"prettier"
],
"rules": {
// Overriding ESLint rules with Typescript-specific ones
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-ignore": "allow-with-description"
}
],
"@typescript-eslint/explicit-module-boundary-types": "error",
"no-bitwise": "off",
"no-dupe-class-members": "off",
"@typescript-eslint/no-dupe-class-members": "error",
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": ["error"],
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "after-used",
"argsIgnorePattern": "^_"
}
],
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": false
}
],
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/no-var-requires": "off",
// Other rules
"class-methods-use-this": ["error", {"exceptMethods": ["dispose"]}],
"func-names": "off",
"import/extensions": "off",
"import/namespace": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": [
"error",
{
"ignore": ["monaco-editor", "vscode"]
}
],
"import/prefer-default-export": "off",
"linebreak-style": "off",
"no-await-in-loop": "off",
"no-console": "off",
"no-control-regex": "off",
"no-extend-native": "off",
"no-multi-str": "off",
"no-param-reassign": "off",
"no-prototype-builtins": "off",
"no-restricted-syntax": [
"error",
{
"selector": "ForInStatement",
"message": "for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array."
},
{
"selector": "LabeledStatement",
"message": "Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand."
},
{
"selector": "WithStatement",
"message": "`with` is disallowed in strict mode because it makes code impossible to predict and optimize."
}
],
"no-template-curly-in-string": "off",
"no-underscore-dangle": "off",
"no-useless-escape": "off",
"no-void": [
"error",
{
"allowAsStatement": true
}
],
"operator-assignment": "off",
"react/jsx-filename-extension": [
1,
{
"extensions": [".tsx"]
}
],
"strict": "off"
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/chriswang521/vscode-python.git
git@gitee.com:chriswang521/vscode-python.git
chriswang521
vscode-python
vscode-python
16102-jupyter-dependency

搜索帮助