@so1ve/eslint-config 1.0.0 → 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,8 +1066,6 @@ function typescript({
1066
1066
  parserOptions: {
1067
1067
  sourceType: "module",
1068
1068
  extraFileExtensions: componentExts.map((ext) => `.${ext}`),
1069
- EXPERIMENTAL_useProjectService: true,
1070
- // eslint-disable-next-line ts/no-unnecessary-type-assertion
1071
1069
  ...parserOptions
1072
1070
  }
1073
1071
  },
@@ -1212,22 +1210,33 @@ function typescript({
1212
1210
  "ts/no-non-null-asserted-nullish-coalescing": "error",
1213
1211
  // handled by unused-imports/no-unused-imports
1214
1212
  "ts/no-unused-vars": "off",
1215
- ...typeAwareRules,
1216
1213
  ...overrides
1217
1214
  }
1218
1215
  },
1219
1216
  {
1220
- files: [GLOB_MARKDOWN_CODE],
1217
+ files: [GLOB_TS, GLOB_TSX, ...componentExts.map((ext) => `**/*.${ext}`)],
1218
+ ignores: [GLOB_MARKDOWN_CODE],
1221
1219
  languageOptions: {
1222
1220
  parser: parserTs__default["default"],
1223
1221
  parserOptions: {
1224
- 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
+ }
1225
1236
  }
1226
1237
  },
1227
1238
  rules: {
1228
- ...Object.fromEntries(
1229
- Object.keys(typeAwareRules).map((k) => [k, "off"])
1230
- )
1239
+ ...typeAwareRules
1231
1240
  }
1232
1241
  },
1233
1242
  {
package/dist/index.mjs CHANGED
@@ -1037,8 +1037,6 @@ function typescript({
1037
1037
  parserOptions: {
1038
1038
  sourceType: "module",
1039
1039
  extraFileExtensions: componentExts.map((ext) => `.${ext}`),
1040
- EXPERIMENTAL_useProjectService: true,
1041
- // eslint-disable-next-line ts/no-unnecessary-type-assertion
1042
1040
  ...parserOptions
1043
1041
  }
1044
1042
  },
@@ -1183,22 +1181,33 @@ function typescript({
1183
1181
  "ts/no-non-null-asserted-nullish-coalescing": "error",
1184
1182
  // handled by unused-imports/no-unused-imports
1185
1183
  "ts/no-unused-vars": "off",
1186
- ...typeAwareRules,
1187
1184
  ...overrides
1188
1185
  }
1189
1186
  },
1190
1187
  {
1191
- files: [GLOB_MARKDOWN_CODE],
1188
+ files: [GLOB_TS, GLOB_TSX, ...componentExts.map((ext) => `**/*.${ext}`)],
1189
+ ignores: [GLOB_MARKDOWN_CODE],
1192
1190
  languageOptions: {
1193
1191
  parser: parserTs,
1194
1192
  parserOptions: {
1195
- 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
+ }
1196
1207
  }
1197
1208
  },
1198
1209
  rules: {
1199
- ...Object.fromEntries(
1200
- Object.keys(typeAwareRules).map((k) => [k, "off"])
1201
- )
1210
+ ...typeAwareRules
1202
1211
  }
1203
1212
  },
1204
1213
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@so1ve/eslint-config",
3
- "version": "1.0.0",
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.0",
75
- "@so1ve/eslint-plugin-sort-imports": "1.0.0"
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"