@citrus-linting/eslint-config 1.2.1 → 1.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citrus-linting/eslint-config",
3
- "version": "1.2.1",
3
+ "version": "1.3.1",
4
4
  "description": "ESLint config used by CitRUS.",
5
5
  "keywords": [
6
6
  "config",
@@ -60,9 +60,17 @@ export default {
60
60
  leadingUnderscore: "require"
61
61
  },
62
62
  { selector: ["enumMember", "typeLike"], format: ["PascalCase"] },
63
- { selector: "import", modifiers: ["default"], format: ["camelCase", "PascalCase"] },
63
+ {
64
+ selector: "import",
65
+ modifiers: ["default"],
66
+ format: ["camelCase", "PascalCase"]
67
+ },
64
68
  { selector: ["objectLiteralProperty", "typeProperty"], format: null },
65
- { selector: "import", filter: { regex: "^_$", match: true }, format: null }
69
+ {
70
+ selector: "import",
71
+ filter: { regex: "^_$", match: true },
72
+ format: null
73
+ }
66
74
  ],
67
75
  "no-array-constructor": 0,
68
76
  "@typescript-eslint/no-array-constructor": 2,
@@ -18,6 +18,12 @@ export default [
18
18
  extraFileExtensions: [".svelte"]
19
19
  }
20
20
  },
21
+ settings: {
22
+ "import/parsers": {
23
+ "@typescript-eslint/parser": [".ts", ".tsx", ".cts", ".mts"],
24
+ espree: [".js", ".jsx", ".cjs", ".mjs"]
25
+ }
26
+ },
21
27
  rules: {
22
28
  ...baseRules,
23
29
  ...typescriptRules,
package/svelte.js CHANGED
@@ -11,6 +11,11 @@ export default [
11
11
  languageOptions: {
12
12
  parser: svelteParser
13
13
  },
14
+ settings: {
15
+ "import/parsers": {
16
+ espree: [".js", ".jsx", ".cjs", ".mjs"]
17
+ }
18
+ },
14
19
  rules: {
15
20
  ...baseRules,
16
21
  ...svelteRules
package/typescript.js CHANGED
@@ -10,7 +10,7 @@ export default [
10
10
  languageOptions: {
11
11
  parser: typescriptEslint.parser,
12
12
  parserOptions: {
13
- project: ["./tsconfig.json", "./{apps,packages}/*/tsconfig.json"]
13
+ project: "./tsconfig.json"
14
14
  }
15
15
  },
16
16
  rules: {