@azat-io/eslint-config 2.1.0 → 2.1.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.
@@ -31,7 +31,9 @@ let astro = async (config) => {
31
31
  let files = ["**/*.astro"];
32
32
  let additionalParserOptions = {};
33
33
  if (config.typescript) {
34
- let typescriptParser = await utils.interopDefault(import("typescript-eslint"));
34
+ let { parser: typescriptParser } = await utils.interopDefault(
35
+ import("typescript-eslint")
36
+ );
35
37
  additionalParserOptions = {
36
38
  ...additionalParserOptions,
37
39
  parser: typescriptParser,
@@ -11,7 +11,9 @@ let astro = async (config) => {
11
11
  let files = ["**/*.astro"];
12
12
  let additionalParserOptions = {};
13
13
  if (config.typescript) {
14
- let typescriptParser = await interopDefault(import("typescript-eslint"));
14
+ let { parser: typescriptParser } = await interopDefault(
15
+ import("typescript-eslint")
16
+ );
15
17
  additionalParserOptions = {
16
18
  ...additionalParserOptions,
17
19
  parser: typescriptParser,
@@ -398,9 +398,9 @@ let core = (config) => {
398
398
  "error",
399
399
  {
400
400
  caseInsensitive: "lowercase",
401
- controlEscape: "lowercase",
401
+ controlEscape: "uppercase",
402
402
  hexadecimalEscape: "lowercase",
403
- unicodeEscape: "lowercase"
403
+ unicodeEscape: "uppercase"
404
404
  }
405
405
  ],
406
406
  "regexp/match-any": "error",
@@ -396,9 +396,9 @@ let core = (config) => {
396
396
  "error",
397
397
  {
398
398
  caseInsensitive: "lowercase",
399
- controlEscape: "lowercase",
399
+ controlEscape: "uppercase",
400
400
  hexadecimalEscape: "lowercase",
401
- unicodeEscape: "lowercase"
401
+ unicodeEscape: "uppercase"
402
402
  }
403
403
  ],
404
404
  "regexp/match-any": "error",
@@ -30,7 +30,9 @@ let svelte = async (config) => {
30
30
  ]);
31
31
  let additionalParserOptions = {};
32
32
  if (config.typescript) {
33
- let typescriptParser = await utils.interopDefault(import("typescript-eslint"));
33
+ let { parser: typescriptParser } = await utils.interopDefault(
34
+ import("typescript-eslint")
35
+ );
34
36
  additionalParserOptions = {
35
37
  ...additionalParserOptions,
36
38
  parser: typescriptParser,
@@ -10,7 +10,9 @@ let svelte = async (config) => {
10
10
  ]);
11
11
  let additionalParserOptions = {};
12
12
  if (config.typescript) {
13
- let typescriptParser = await interopDefault(import("typescript-eslint"));
13
+ let { parser: typescriptParser } = await interopDefault(
14
+ import("typescript-eslint")
15
+ );
14
16
  additionalParserOptions = {
15
17
  ...additionalParserOptions,
16
18
  parser: typescriptParser,
@@ -30,7 +30,9 @@ let vue = async (config) => {
30
30
  let files = ["**/*.vue"];
31
31
  let additionalParserOptions = {};
32
32
  if (config.typescript) {
33
- let typescriptParser = await utils.interopDefault(import("typescript-eslint"));
33
+ let { parser: typescriptParser } = await utils.interopDefault(
34
+ import("typescript-eslint")
35
+ );
34
36
  additionalParserOptions = {
35
37
  ...additionalParserOptions,
36
38
  parser: typescriptParser,
@@ -10,7 +10,9 @@ let vue = async (config) => {
10
10
  let files = ["**/*.vue"];
11
11
  let additionalParserOptions = {};
12
12
  if (config.typescript) {
13
- let typescriptParser = await interopDefault(import("typescript-eslint"));
13
+ let { parser: typescriptParser } = await interopDefault(
14
+ import("typescript-eslint")
15
+ );
14
16
  additionalParserOptions = {
15
17
  ...additionalParserOptions,
16
18
  parser: typescriptParser,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azat-io/eslint-config",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "ESLint shareable config",
5
5
  "keywords": [
6
6
  "eslint",