eslint-config-decent 2.5.0-beta1 → 2.5.0

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
@@ -771,7 +771,7 @@ function tsEslintConfig(options) {
771
771
  const enableJest = options?.enableJest ?? true;
772
772
  const enableMocha = options?.enableMocha ?? true;
773
773
  const enableReact = options?.enableReact ?? true;
774
- const enableNextJs = options?.enableNextJs ?? true;
774
+ const enableNextJs = options?.enableNextJs ?? false;
775
775
  const enableTestingLibrary = options?.enableTestingLibrary ?? true;
776
776
  const languageOptions = {
777
777
  globals: {
@@ -851,7 +851,7 @@ function tsEslintConfig(options) {
851
851
  files: ["**/*.tsx"],
852
852
  settings: {
853
853
  next: {
854
- rootDir: options?.nextJsRootDir ?? undefined
854
+ rootDir: options?.nextJsRootDir
855
855
  }
856
856
  },
857
857
  ...configs$6.base
package/dist/index.mjs CHANGED
@@ -749,7 +749,7 @@ function tsEslintConfig(options) {
749
749
  const enableJest = options?.enableJest ?? true;
750
750
  const enableMocha = options?.enableMocha ?? true;
751
751
  const enableReact = options?.enableReact ?? true;
752
- const enableNextJs = options?.enableNextJs ?? true;
752
+ const enableNextJs = options?.enableNextJs ?? false;
753
753
  const enableTestingLibrary = options?.enableTestingLibrary ?? true;
754
754
  const languageOptions = {
755
755
  globals: {
@@ -829,7 +829,7 @@ function tsEslintConfig(options) {
829
829
  files: ["**/*.tsx"],
830
830
  settings: {
831
831
  next: {
832
- rootDir: options?.nextJsRootDir ?? import.meta.dirname
832
+ rootDir: options?.nextJsRootDir
833
833
  }
834
834
  },
835
835
  ...configs$6.base
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-decent",
3
- "version": "2.5.0-beta1",
3
+ "version": "2.5.0",
4
4
  "description": "A decent ESLint configuration",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -25,7 +25,7 @@
25
25
  "scripts": {
26
26
  "build": "unbuild",
27
27
  "test": "tsc --noEmit --skipLibCheck",
28
- "lint:markdown": "prettier --cache --write '*.md' '!(node_modules|dist)/**/*.md' && markdownlint '*.md' '!(node_modules|dist)/**/*.md' --config=.github/linters/.markdown-lint.yml --fix",
28
+ "lint:markdown": "prettier --cache --write '*.md' '!**/(node_modules|dist)/**/*.md' && markdownlint '*.md' '!**/(node_modules|dist)/**/*.md' --config=.github/linters/.markdown-lint.yml --fix",
29
29
  "lint:code": "eslint --fix",
30
30
  "prelint": "npm run build",
31
31
  "lint": "run-p lint:*",
@@ -74,8 +74,8 @@
74
74
  "dependencies": {
75
75
  "@eslint/compat": "1.2.6",
76
76
  "@eslint/js": "9.20.0",
77
+ "@typescript-eslint/utils": "8.24.0",
77
78
  "@next/eslint-plugin-next": "^15.1.7",
78
- "@typescript-eslint/utils": "8.23.0",
79
79
  "eslint-config-prettier": "10.0.1",
80
80
  "eslint-plugin-import-x": "4.6.1",
81
81
  "eslint-plugin-jest": "28.11.0",
@@ -91,7 +91,7 @@
91
91
  "eslint-plugin-testing-library": "7.1.1",
92
92
  "eslint-plugin-unicorn": "56.0.1",
93
93
  "globals": "15.14.0",
94
- "typescript-eslint": "8.23.0"
94
+ "typescript-eslint": "8.24.0"
95
95
  },
96
96
  "devDependencies": {
97
97
  "@swc/core": "^1.10.15",
@@ -102,7 +102,7 @@
102
102
  "markdownlint-cli": "^0.44.0",
103
103
  "npm-run-all": "^4.1.5",
104
104
  "pinst": "^3.0.0",
105
- "prettier": "^3.4.2",
105
+ "prettier": "3.4.2",
106
106
  "typescript": "^5.7.3",
107
107
  "unbuild": "3.3.1"
108
108
  },
package/src/index.ts CHANGED
@@ -61,7 +61,7 @@ export function tsEslintConfig(options?: DefaultConfigOptions): ConfigWithExtend
61
61
  const enableJest = options?.enableJest ?? true;
62
62
  const enableMocha = options?.enableMocha ?? true;
63
63
  const enableReact = options?.enableReact ?? true;
64
- const enableNextJs = options?.enableNextJs ?? true;
64
+ const enableNextJs = options?.enableNextJs ?? false;
65
65
  const enableTestingLibrary = options?.enableTestingLibrary ?? true;
66
66
  const languageOptions: ConfigWithExtends['languageOptions'] = {
67
67
  globals: {
@@ -145,7 +145,7 @@ export function tsEslintConfig(options?: DefaultConfigOptions): ConfigWithExtend
145
145
  files: ['**/*.tsx'],
146
146
  settings: {
147
147
  next: {
148
- rootDir: options?.nextJsRootDir ?? import.meta.dirname,
148
+ rootDir: options?.nextJsRootDir,
149
149
  },
150
150
  },
151
151
  ...nextJsConfigs.base,