eslint-config-decent 1.2.7 → 1.2.8

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 CHANGED
@@ -646,6 +646,7 @@ function defaultConfig(options) {
646
646
  },
647
647
  parserOptions: {
648
648
  projectService: {
649
+ allowDefaultProject: ["./*.{js,cjs,mjs}"],
649
650
  defaultProject: "tsconfig.json"
650
651
  },
651
652
  tsconfigRootDir: undefined,
@@ -657,8 +658,23 @@ function defaultConfig(options) {
657
658
  ignores: ["**/dist/**", "**/node_modules/**"]
658
659
  },
659
660
  eslint__default.configs.recommended,
660
- ...tsEslint__default.configs.strictTypeChecked,
661
- ...tsEslint__default.configs.stylisticTypeChecked,
661
+ {
662
+ languageOptions: {
663
+ ...tsEslint__default.configs.base.languageOptions
664
+ }
665
+ },
666
+ ...tsEslint__default.configs.strictTypeChecked.map((config) => {
667
+ return {
668
+ ...config,
669
+ files: ["**/*.ts", "**/*.tsx"]
670
+ };
671
+ }),
672
+ ...tsEslint__default.configs.stylisticTypeChecked.map((config) => {
673
+ return {
674
+ ...config,
675
+ files: ["**/*.ts", "**/*.tsx"]
676
+ };
677
+ }),
662
678
  {
663
679
  languageOptions,
664
680
  settings: {
package/dist/index.mjs CHANGED
@@ -628,6 +628,7 @@ function defaultConfig(options) {
628
628
  },
629
629
  parserOptions: {
630
630
  projectService: {
631
+ allowDefaultProject: ["./*.{js,cjs,mjs}"],
631
632
  defaultProject: "tsconfig.json"
632
633
  },
633
634
  tsconfigRootDir: import.meta.dirname,
@@ -639,8 +640,23 @@ function defaultConfig(options) {
639
640
  ignores: ["**/dist/**", "**/node_modules/**"]
640
641
  },
641
642
  eslint.configs.recommended,
642
- ...tsEslint.configs.strictTypeChecked,
643
- ...tsEslint.configs.stylisticTypeChecked,
643
+ {
644
+ languageOptions: {
645
+ ...tsEslint.configs.base.languageOptions
646
+ }
647
+ },
648
+ ...tsEslint.configs.strictTypeChecked.map((config) => {
649
+ return {
650
+ ...config,
651
+ files: ["**/*.ts", "**/*.tsx"]
652
+ };
653
+ }),
654
+ ...tsEslint.configs.stylisticTypeChecked.map((config) => {
655
+ return {
656
+ ...config,
657
+ files: ["**/*.ts", "**/*.tsx"]
658
+ };
659
+ }),
644
660
  {
645
661
  languageOptions,
646
662
  settings: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-decent",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "A decent ESLint configuration",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
package/src/index.ts CHANGED
@@ -35,6 +35,7 @@ export function defaultConfig(options?: DefaultConfigOptions): ConfigWithExtends
35
35
  },
36
36
  parserOptions: {
37
37
  projectService: {
38
+ allowDefaultProject: ['./*.{js,cjs,mjs}'],
38
39
  defaultProject: 'tsconfig.json',
39
40
  },
40
41
  tsconfigRootDir: import.meta.dirname,
@@ -47,8 +48,23 @@ export function defaultConfig(options?: DefaultConfigOptions): ConfigWithExtends
47
48
  ignores: ['**/dist/**', '**/node_modules/**'],
48
49
  },
49
50
  eslint.configs.recommended,
50
- ...tsEslint.configs.strictTypeChecked,
51
- ...tsEslint.configs.stylisticTypeChecked,
51
+ {
52
+ languageOptions: {
53
+ ...tsEslint.configs.base.languageOptions,
54
+ },
55
+ },
56
+ ...tsEslint.configs.strictTypeChecked.map((config) => {
57
+ return {
58
+ ...config,
59
+ files: ['**/*.ts', '**/*.tsx'],
60
+ };
61
+ }),
62
+ ...tsEslint.configs.stylisticTypeChecked.map((config) => {
63
+ return {
64
+ ...config,
65
+ files: ['**/*.ts', '**/*.tsx'],
66
+ };
67
+ }),
52
68
  {
53
69
  languageOptions,
54
70
  settings: {