File tree 2 files changed +8
-5
lines changed
packages/eslint-config/src/config
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ if (pkg) {
46
46
anolilabEslintConfig = pkg ?. [ "anolilab" ] ?. [ "eslint-config" ] ;
47
47
}
48
48
49
+ let showUnsupportedTypeScriptVersionWarning : boolean = env [ "DISABLE_ESLINT_WARN_UNSUPPORTED_TYPESCRIPT_VERSION" ] !== "true" ;
50
+
51
+ if ( anolilabEslintConfig ?. [ "warn_on_unsupported_typescript_version" ] !== undefined ) {
52
+ showUnsupportedTypeScriptVersionWarning = anolilabEslintConfig ?. [ "warn_on_unsupported_typescript_version" ] ;
53
+ }
54
+
49
55
const config : Linter . Config = {
50
56
overrides : [
51
57
{
@@ -58,10 +64,7 @@ const config: Linter.Config = {
58
64
ecmaFeatures : {
59
65
jsx : true ,
60
66
} ,
61
- warnOnUnsupportedTypeScriptVersion :
62
- typeof anolilabEslintConfig ?. [ "warn_on_unsupported_typescript_version" ] !== "undefined"
63
- ? anolilabEslintConfig ?. [ "warn_on_unsupported_typescript_version" ]
64
- : env [ "DISABLE_ESLINT_WARN_UNSUPPORTED_TYPESCRIPT_VERSION" ] !== "true" ,
67
+ warnOnUnsupportedTypeScriptVersion : showUnsupportedTypeScriptVersionWarning ,
65
68
} ,
66
69
settings : {
67
70
// Apply special parsing for TypeScript files
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ const config: Linter.Config = {
130
130
131
131
// require function expressions to have a name
132
132
// https://eslint.org/docs/rules/func-names
133
- "func-names" : "warn" ,
133
+ "func-names" : [ "error" , "as-needed" ] ,
134
134
135
135
// enforces use of function declarations or expressions
136
136
// https://eslint.org/docs/rules/func-style
You can’t perform that action at this time.
0 commit comments