@@ -33,6 +33,7 @@ func TestCreateEslintConfigEmptyConfig(t *testing.T) {
3333 []domain.PatternConfiguration {},
3434 `export default [
3535 {
36+ files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx", "**/*.mjs", "**/*.cjs", "**/*.vue"],
3637 rules: {
3738 }
3839 }
@@ -50,6 +51,7 @@ func TestCreateEslintConfigConfig1(t *testing.T) {
5051 },
5152 `export default [
5253 {
54+ files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx", "**/*.mjs", "**/*.cjs", "**/*.vue"],
5355 rules: {
5456 "semi": ["error"],
5557 }
@@ -74,6 +76,7 @@ func TestCreateEslintConfigUnnamedParam(t *testing.T) {
7476 },
7577 `export default [
7678 {
79+ files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx", "**/*.mjs", "**/*.cjs", "**/*.vue"],
7780 rules: {
7881 "semi": ["error", "never"],
7982 }
@@ -98,6 +101,7 @@ func TestCreateEslintConfigNamedParam(t *testing.T) {
98101 },
99102 `export default [
100103 {
104+ files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx", "**/*.mjs", "**/*.cjs", "**/*.vue"],
101105 rules: {
102106 "consistent-return": ["error", {"treatUndefinedAsUnspecified": false}],
103107 }
@@ -126,6 +130,7 @@ func TestCreateEslintConfigUnnamedAndNamedParam(t *testing.T) {
126130 },
127131 `export default [
128132 {
133+ files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx", "**/*.mjs", "**/*.cjs", "**/*.vue"],
129134 rules: {
130135 "consistent-return": ["error", "foo", {"treatUndefinedAsUnspecified": false}],
131136 }
@@ -144,6 +149,7 @@ func TestCreateEslintConfigDoNotSupportPlugins(t *testing.T) {
144149 },
145150 `export default [
146151 {
152+ files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx", "**/*.mjs", "**/*.cjs", "**/*.vue"],
147153 rules: {
148154 }
149155 }
@@ -181,6 +187,7 @@ func TestCreateEslintConfigWithDefaultValues(t *testing.T) {
181187 },
182188 `export default [
183189 {
190+ files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx", "**/*.mjs", "**/*.cjs", "**/*.vue"],
184191 rules: {
185192 "no-fallthrough": ["error", {"allowEmptyCase": false}],
186193 }
@@ -211,6 +218,7 @@ func TestCreateEslintConfigWithUnnamedDefaultValues(t *testing.T) {
211218 },
212219 `export default [
213220 {
221+ files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx", "**/*.mjs", "**/*.cjs", "**/*.vue"],
214222 rules: {
215223 "no-inner-declarations": ["error", "functions"],
216224 }
0 commit comments