eslint-config-decent 4.2.0 → 4.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/oxlint.cjs +2 -3
- package/dist/oxlint.mjs +2 -3
- package/package.json +1 -1
- package/src/oxlint.ts +1 -2
- package/src/typescriptEslint.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -681,7 +681,7 @@ const base$2 = {
|
|
|
681
681
|
}
|
|
682
682
|
],
|
|
683
683
|
"@typescript-eslint/default-param-last": "error",
|
|
684
|
-
"@typescript-eslint/explicit-function-return-type": "
|
|
684
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
685
685
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
686
686
|
"@typescript-eslint/naming-convention": [
|
|
687
687
|
"error",
|
package/dist/index.mjs
CHANGED
|
@@ -660,7 +660,7 @@ const base$2 = {
|
|
|
660
660
|
}
|
|
661
661
|
],
|
|
662
662
|
"@typescript-eslint/default-param-last": "error",
|
|
663
|
-
"@typescript-eslint/explicit-function-return-type": "
|
|
663
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
664
664
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
|
665
665
|
"@typescript-eslint/naming-convention": [
|
|
666
666
|
"error",
|
package/dist/oxlint.cjs
CHANGED
|
@@ -106,8 +106,7 @@ const eslintCompatRules = {
|
|
|
106
106
|
],
|
|
107
107
|
"eslint-compat/no-restricted-syntax": ["error", "DebuggerStatement", "LabeledStatement", "WithStatement"],
|
|
108
108
|
"eslint-compat/no-undef-init": "error",
|
|
109
|
-
"eslint-compat/no-unreachable-loop": ["error", { ignore: [] }]
|
|
110
|
-
"eslint-compat/prefer-arrow-callback": ["error", { allowNamedFunctions: false, allowUnboundThis: true }]
|
|
109
|
+
"eslint-compat/no-unreachable-loop": ["error", { ignore: [] }]
|
|
111
110
|
};
|
|
112
111
|
const typescriptExplicitRules = {
|
|
113
112
|
// Disable base ESLint rules that TS extends
|
|
@@ -117,7 +116,7 @@ const typescriptExplicitRules = {
|
|
|
117
116
|
"typescript/consistent-type-imports": ["error", { prefer: "type-imports", fixStyle: "inline-type-imports" }],
|
|
118
117
|
"typescript/ban-ts-comment": ["error", { minimumDescriptionLength: 10, "ts-expect-error": { descriptionFormat: "^ - [^ ].*$" } }],
|
|
119
118
|
"typescript/default-param-last": "error",
|
|
120
|
-
"typescript/explicit-function-return-type": "
|
|
119
|
+
"typescript/explicit-function-return-type": "off",
|
|
121
120
|
"typescript/no-dupe-class-members": "error",
|
|
122
121
|
"typescript/no-loop-func": "error",
|
|
123
122
|
"typescript/no-redeclare": "error",
|
package/dist/oxlint.mjs
CHANGED
|
@@ -104,8 +104,7 @@ const eslintCompatRules = {
|
|
|
104
104
|
],
|
|
105
105
|
"eslint-compat/no-restricted-syntax": ["error", "DebuggerStatement", "LabeledStatement", "WithStatement"],
|
|
106
106
|
"eslint-compat/no-undef-init": "error",
|
|
107
|
-
"eslint-compat/no-unreachable-loop": ["error", { ignore: [] }]
|
|
108
|
-
"eslint-compat/prefer-arrow-callback": ["error", { allowNamedFunctions: false, allowUnboundThis: true }]
|
|
107
|
+
"eslint-compat/no-unreachable-loop": ["error", { ignore: [] }]
|
|
109
108
|
};
|
|
110
109
|
const typescriptExplicitRules = {
|
|
111
110
|
// Disable base ESLint rules that TS extends
|
|
@@ -115,7 +114,7 @@ const typescriptExplicitRules = {
|
|
|
115
114
|
"typescript/consistent-type-imports": ["error", { prefer: "type-imports", fixStyle: "inline-type-imports" }],
|
|
116
115
|
"typescript/ban-ts-comment": ["error", { minimumDescriptionLength: 10, "ts-expect-error": { descriptionFormat: "^ - [^ ].*$" } }],
|
|
117
116
|
"typescript/default-param-last": "error",
|
|
118
|
-
"typescript/explicit-function-return-type": "
|
|
117
|
+
"typescript/explicit-function-return-type": "off",
|
|
119
118
|
"typescript/no-dupe-class-members": "error",
|
|
120
119
|
"typescript/no-loop-func": "error",
|
|
121
120
|
"typescript/no-redeclare": "error",
|
package/package.json
CHANGED
package/src/oxlint.ts
CHANGED
|
@@ -158,7 +158,6 @@ const eslintCompatRules: Record<string, RuleEntry> = {
|
|
|
158
158
|
'eslint-compat/no-restricted-syntax': ['error', 'DebuggerStatement', 'LabeledStatement', 'WithStatement'],
|
|
159
159
|
'eslint-compat/no-undef-init': 'error',
|
|
160
160
|
'eslint-compat/no-unreachable-loop': ['error', { ignore: [] }],
|
|
161
|
-
'eslint-compat/prefer-arrow-callback': ['error', { allowNamedFunctions: false, allowUnboundThis: true }],
|
|
162
161
|
};
|
|
163
162
|
|
|
164
163
|
// ─── TypeScript rules (src/typescriptEslint.ts) ────────────────────────────
|
|
@@ -171,7 +170,7 @@ const typescriptExplicitRules: Record<string, RuleEntry> = {
|
|
|
171
170
|
'typescript/consistent-type-imports': ['error', { prefer: 'type-imports', fixStyle: 'inline-type-imports' }],
|
|
172
171
|
'typescript/ban-ts-comment': ['error', { minimumDescriptionLength: 10, 'ts-expect-error': { descriptionFormat: '^ - [^ ].*$' } }],
|
|
173
172
|
'typescript/default-param-last': 'error',
|
|
174
|
-
'typescript/explicit-function-return-type': '
|
|
173
|
+
'typescript/explicit-function-return-type': 'off',
|
|
175
174
|
'typescript/no-dupe-class-members': 'error',
|
|
176
175
|
'typescript/no-loop-func': 'error',
|
|
177
176
|
'typescript/no-redeclare': 'error',
|
package/src/typescriptEslint.ts
CHANGED
|
@@ -25,7 +25,7 @@ const base: Config = {
|
|
|
25
25
|
},
|
|
26
26
|
],
|
|
27
27
|
'@typescript-eslint/default-param-last': 'error',
|
|
28
|
-
'@typescript-eslint/explicit-function-return-type': '
|
|
28
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
29
29
|
'@typescript-eslint/explicit-member-accessibility': 'error',
|
|
30
30
|
'@typescript-eslint/naming-convention': [
|
|
31
31
|
'error',
|