4 Star 11 Fork 0

Git游戏/协同放置(Synergism)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 3.63 KB
一键复制 编辑 原始数据 按行查看 历史
Vonuras 提交于 2022-11-08 16:43 . introduce notations (#388)
const { builtinModules } = require('node:module');
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
ignorePatterns: [
'**/*.d.ts'
],
parserOptions: {
project: [
'./tsconfig.json',
'./packages/*/tsconfig.json',
'./packages/tsconfig.base.json'
],
ecmaVersion: 99,
sourceType: 'module'
},
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-empty-function': 'off',
// style changes
'curly': ['error', 'all'],
'quotes': ['error', 'single'],
'indent': ['error', 4, { 'SwitchCase': 1 }],
'array-bracket-spacing': ['error', 'never'],
'arrow-spacing': 'error',
'brace-style': 'error',
'comma-dangle': ['error', 'never'],
'comma-style': ['error', 'last'],
'computed-property-spacing': ['error', 'never'],
'dot-location': ['error', 'property'],
'func-call-spacing': ['error', 'never'],
'generator-star-spacing': ['error', { 'before': true, 'after': true }],
'key-spacing': ['error', { 'beforeColon': false }],
'keyword-spacing': ['error', { 'before': true }],
'max-statements-per-line': ['error', { 'max': 1 }],
'newline-per-chained-call': ['error', { 'ignoreChainWithDepth': 3 }],
'no-trailing-spaces': 'error',
'no-whitespace-before-property': 'error',
'no-empty': 'off',
'no-mixed-spaces-and-tabs': 'off',
'no-loss-of-precision': 'error',
'no-promise-executor-return': 'error',
'no-unreachable-loop': 'error',
'no-unsafe-optional-chaining': 'error',
'no-useless-backreference': 'error',
'no-console': 'error',
'@typescript-eslint/no-unused-vars': ['error', { 'varsIgnorePattern': '_' }],
// TODO: enable
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/array-type': 'error',
'@typescript-eslint/consistent-type-assertions': [ 'error', { 'assertionStyle': 'as' }],
'@typescript-eslint/consistent-type-definitions': 'error',
'@typescript-eslint/consistent-type-exports': 'error',
'@typescript-eslint/consistent-type-imports': ['error', { 'disallowTypeAnnotations': false }],
'@typescript-eslint/member-delimiter-style': ['error', {
'multiline': {
'delimiter': 'none'
},
'singleline': {
'delimiter': 'comma'
}
}],
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-extra-non-null-assertion': 'error',
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-for-in-array': 'error',
'@typescript-eslint/no-inferrable-types': 'error',
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-misused-promises': 'error',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
// '@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-this-alias': 'error',
'@typescript-eslint/no-unsafe-assignment': 'error',
'@typescript-eslint/no-unsafe-call': 'error',
'@typescript-eslint/no-unsafe-member-access': 'error',
'@typescript-eslint/no-unsafe-return': 'error',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/prefer-as-const': 'error',
'@typescript-eslint/prefer-namespace-keyword': 'error',
'@typescript-eslint/prefer-regexp-exec': 'error',
'@typescript-eslint/no-unnecessary-condition': 'error'
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/idlegame/Synergism.git
[email protected]:idlegame/Synergism.git
idlegame
Synergism
协同放置(Synergism)
master

搜索帮助