eslint-config-decent 2.7.1 → 2.8.1

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
@@ -920,6 +920,19 @@ function tsEslintConfig(options) {
920
920
  files: ["**/*.tsx"],
921
921
  ...configs$6.base
922
922
  },
923
+ {
924
+ name: "eslint-config-decent/tsx-components",
925
+ files: ["**/components/**/*.tsx"],
926
+ rules: {
927
+ "import/no-default-export": "error",
928
+ "unicorn/filename-case": [
929
+ "error",
930
+ {
931
+ case: "pascalCase"
932
+ }
933
+ ]
934
+ }
935
+ },
923
936
  {
924
937
  name: "eslint-config-decent/tsx-disable-ts-rules",
925
938
  files: ["**/*.tsx"],
package/dist/index.mjs CHANGED
@@ -896,6 +896,19 @@ function tsEslintConfig(options) {
896
896
  files: ["**/*.tsx"],
897
897
  ...configs$6.base
898
898
  },
899
+ {
900
+ name: "eslint-config-decent/tsx-components",
901
+ files: ["**/components/**/*.tsx"],
902
+ rules: {
903
+ "import/no-default-export": "error",
904
+ "unicorn/filename-case": [
905
+ "error",
906
+ {
907
+ case: "pascalCase"
908
+ }
909
+ ]
910
+ }
911
+ },
899
912
  {
900
913
  name: "eslint-config-decent/tsx-disable-ts-rules",
901
914
  files: ["**/*.tsx"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-decent",
3
- "version": "2.7.1",
3
+ "version": "2.8.1",
4
4
  "description": "A decent ESLint configuration",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -67,45 +67,45 @@
67
67
  },
68
68
  "dependencies": {
69
69
  "@eslint/compat": "1.2.9",
70
- "@eslint/js": "9.26.0",
71
- "@next/eslint-plugin-next": "15.3.1",
72
- "@stylistic/eslint-plugin": "4.2.0",
73
- "@typescript-eslint/utils": "8.31.1",
74
- "@vitest/eslint-plugin": "1.1.44",
75
- "eslint-config-prettier": "10.1.2",
76
- "eslint-plugin-import-x": "4.11.0",
77
- "eslint-plugin-jest": "28.11.0",
70
+ "@eslint/js": "9.27.0",
71
+ "@next/eslint-plugin-next": "15.3.2",
72
+ "@stylistic/eslint-plugin": "4.4.0",
73
+ "@typescript-eslint/utils": "8.33.0",
74
+ "@vitest/eslint-plugin": "1.2.1",
75
+ "eslint-config-prettier": "10.1.5",
76
+ "eslint-plugin-import-x": "4.13.3",
77
+ "eslint-plugin-jest": "28.11.1",
78
78
  "eslint-plugin-jest-dom": "5.5.0",
79
- "eslint-plugin-jsdoc": "50.6.11",
79
+ "eslint-plugin-jsdoc": "50.6.17",
80
80
  "eslint-plugin-jsx-a11y": "6.10.2",
81
- "eslint-plugin-mocha": "11.0.0",
81
+ "eslint-plugin-mocha": "11.1.0",
82
82
  "eslint-plugin-prettier": "5.4.0",
83
83
  "eslint-plugin-promise": "7.2.1",
84
84
  "eslint-plugin-react": "7.37.5",
85
85
  "eslint-plugin-react-hooks": "6.0.0",
86
86
  "eslint-plugin-security": "3.0.1",
87
- "eslint-plugin-testing-library": "7.1.1",
88
- "eslint-plugin-unicorn": "59.0.0",
89
- "globals": "16.0.0",
90
- "typescript-eslint": "8.31.1"
87
+ "eslint-plugin-testing-library": "7.2.2",
88
+ "eslint-plugin-unicorn": "59.0.1",
89
+ "globals": "16.2.0",
90
+ "typescript-eslint": "8.33.0"
91
91
  },
92
92
  "devDependencies": {
93
93
  "@semantic-release/changelog": "6.0.3",
94
94
  "@semantic-release/commit-analyzer": "13.0.1",
95
95
  "@semantic-release/git": "10.0.1",
96
- "@semantic-release/github": "11.0.2",
96
+ "@semantic-release/github": "11.0.3",
97
97
  "@semantic-release/npm": "12.0.1",
98
98
  "@semantic-release/release-notes-generator": "14.0.3",
99
- "@swc/core": "1.11.24",
99
+ "@swc/core": "1.11.29",
100
100
  "@types/node": ">=22",
101
- "eslint": "9.26.0",
101
+ "eslint": "9.27.0",
102
102
  "husky": "9.1.7",
103
- "lint-staged": "15.5.1",
104
- "markdownlint-cli": "0.44.0",
105
- "npm-run-all2": "8.0.1",
103
+ "lint-staged": "16.1.0",
104
+ "markdownlint-cli": "0.45.0",
105
+ "npm-run-all2": "8.0.4",
106
106
  "pinst": "3.0.0",
107
107
  "prettier": "3.5.3",
108
- "semantic-release": "24.2.3",
108
+ "semantic-release": "24.2.5",
109
109
  "typescript": "5.8.3",
110
110
  "unbuild": "3.5.0"
111
111
  },
package/src/index.ts CHANGED
@@ -134,6 +134,19 @@ export function tsEslintConfig(options?: DefaultConfigOptions): ConfigWithExtend
134
134
  files: ['**/*.tsx'],
135
135
  ...reactConfigs.base,
136
136
  },
137
+ {
138
+ name: 'eslint-config-decent/tsx-components',
139
+ files: ['**/components/**/*.tsx'],
140
+ rules: {
141
+ 'import/no-default-export': 'error',
142
+ 'unicorn/filename-case': [
143
+ 'error',
144
+ {
145
+ case: 'pascalCase',
146
+ },
147
+ ],
148
+ },
149
+ },
137
150
  {
138
151
  name: 'eslint-config-decent/tsx-disable-ts-rules',
139
152
  files: ['**/*.tsx'],