A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/antfu/eslint-config/commit/a76fde9 below:

ban declarations in ts file (#264) · antfu/eslint-config@a76fde9 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+7

-3

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+7

-3

lines changed Original file line number Diff line number Diff line change

@@ -116,6 +116,8 @@ export function javascript(options: OptionsIsInEditor & OptionsOverrides = {}):

116 116

'DebuggerStatement',

117 117

'LabeledStatement',

118 118

'WithStatement',

119 +

'TSEnumDeclaration[const=true]',

120 +

'TSExportAssignment',

119 121

],

120 122

'no-self-assign': ['error', { props: true }],

121 123

'no-self-compare': 'error',

Original file line number Diff line number Diff line change

@@ -81,9 +81,7 @@ export function typescript(

81 81

'antfu/generic-spacing': 'error',

82 82

'antfu/named-tuple-spacing': 'error',

83 83

'antfu/no-cjs-exports': 'error',

84 -

'antfu/no-const-enum': 'error',

85 -

'antfu/no-ts-export-equal': 'error',

86 - 84 + 87 85

'no-dupe-class-members': OFF,

88 86

'no-invalid-this': OFF,

89 87

'no-loss-of-precision': OFF,

@@ -122,6 +120,10 @@ export function typescript(

122 120

'eslint-comments/no-unlimited-disable': OFF,

123 121

'import/no-duplicates': OFF,

124 122

'unused-imports/no-unused-vars': OFF,

123 +

'no-restricted-syntax': [

124 +

'error',

125 +

'[declare=true]',

126 +

],

125 127

},

126 128

},

127 129

{

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4