@so1ve/eslint-config 1.0.1 → 1.0.2

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
@@ -1066,9 +1066,6 @@ function typescript({
1066
1066
  parserOptions: {
1067
1067
  sourceType: "module",
1068
1068
  extraFileExtensions: componentExts.map((ext) => `.${ext}`),
1069
- // EXPERIMENTAL_useProjectService: true,
1070
- project: true,
1071
- tsconfigRootDir: process.cwd(),
1072
1069
  ...parserOptions
1073
1070
  }
1074
1071
  },
@@ -1213,22 +1210,33 @@ function typescript({
1213
1210
  "ts/no-non-null-asserted-nullish-coalescing": "error",
1214
1211
  // handled by unused-imports/no-unused-imports
1215
1212
  "ts/no-unused-vars": "off",
1216
- ...typeAwareRules,
1217
1213
  ...overrides
1218
1214
  }
1219
1215
  },
1220
1216
  {
1221
- files: [GLOB_MARKDOWN_CODE],
1217
+ files: [GLOB_TS, GLOB_TSX, ...componentExts.map((ext) => `**/*.${ext}`)],
1218
+ ignores: [GLOB_MARKDOWN_CODE],
1222
1219
  languageOptions: {
1223
1220
  parser: parserTs__default["default"],
1224
1221
  parserOptions: {
1225
- sourceType: "module"
1222
+ sourceType: "module",
1223
+ // EXPERIMENTAL_useProjectService: true,
1224
+ project: true,
1225
+ tsconfigRootDir: process.cwd()
1226
+ }
1227
+ },
1228
+ settings: {
1229
+ "import/resolver": {
1230
+ node: {
1231
+ extensions: [".js", ".jsx", ".mjs", ".ts", ".tsx", ".d.ts"]
1232
+ },
1233
+ typescript: {
1234
+ extensions: [".js", ".jsx", ".mjs", ".ts", ".tsx", ".d.ts"]
1235
+ }
1226
1236
  }
1227
1237
  },
1228
1238
  rules: {
1229
- ...Object.fromEntries(
1230
- Object.keys(typeAwareRules).map((k) => [k, "off"])
1231
- )
1239
+ ...typeAwareRules
1232
1240
  }
1233
1241
  },
1234
1242
  {
package/dist/index.mjs CHANGED
@@ -1037,9 +1037,6 @@ function typescript({
1037
1037
  parserOptions: {
1038
1038
  sourceType: "module",
1039
1039
  extraFileExtensions: componentExts.map((ext) => `.${ext}`),
1040
- // EXPERIMENTAL_useProjectService: true,
1041
- project: true,
1042
- tsconfigRootDir: process.cwd(),
1043
1040
  ...parserOptions
1044
1041
  }
1045
1042
  },
@@ -1184,22 +1181,33 @@ function typescript({
1184
1181
  "ts/no-non-null-asserted-nullish-coalescing": "error",
1185
1182
  // handled by unused-imports/no-unused-imports
1186
1183
  "ts/no-unused-vars": "off",
1187
- ...typeAwareRules,
1188
1184
  ...overrides
1189
1185
  }
1190
1186
  },
1191
1187
  {
1192
- files: [GLOB_MARKDOWN_CODE],
1188
+ files: [GLOB_TS, GLOB_TSX, ...componentExts.map((ext) => `**/*.${ext}`)],
1189
+ ignores: [GLOB_MARKDOWN_CODE],
1193
1190
  languageOptions: {
1194
1191
  parser: parserTs,
1195
1192
  parserOptions: {
1196
- sourceType: "module"
1193
+ sourceType: "module",
1194
+ // EXPERIMENTAL_useProjectService: true,
1195
+ project: true,
1196
+ tsconfigRootDir: process.cwd()
1197
+ }
1198
+ },
1199
+ settings: {
1200
+ "import/resolver": {
1201
+ node: {
1202
+ extensions: [".js", ".jsx", ".mjs", ".ts", ".tsx", ".d.ts"]
1203
+ },
1204
+ typescript: {
1205
+ extensions: [".js", ".jsx", ".mjs", ".ts", ".tsx", ".d.ts"]
1206
+ }
1197
1207
  }
1198
1208
  },
1199
1209
  rules: {
1200
- ...Object.fromEntries(
1201
- Object.keys(typeAwareRules).map((k) => [k, "off"])
1202
- )
1210
+ ...typeAwareRules
1203
1211
  }
1204
1212
  },
1205
1213
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@so1ve/eslint-config",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "author": "Ray <i@mk1.io> (https://github.com/so1ve/)",
5
5
  "description": "Ray's eslint config.",
6
6
  "keywords": [
@@ -71,8 +71,8 @@
71
71
  "toml-eslint-parser": "^0.6.0",
72
72
  "vue-eslint-parser": "^9.3.1",
73
73
  "yaml-eslint-parser": "^1.2.2",
74
- "@so1ve/eslint-plugin": "1.0.1",
75
- "@so1ve/eslint-plugin-sort-imports": "1.0.1"
74
+ "@so1ve/eslint-plugin-sort-imports": "1.0.2",
75
+ "@so1ve/eslint-plugin": "1.0.2"
76
76
  },
77
77
  "devDependencies": {
78
78
  "eslint": "^8.46.0"