@will-stone/eslint-config 0.7.3 → 0.7.4
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 +3 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var _eslintconfigflatgitignore = require('eslint-config-flat-gitignore'); var _eslintconfigflatgitignore2 = _interopRequireDefault(_eslintconfigflatgitignore);
|
|
3
3
|
|
|
4
4
|
// src/configs/astro.ts
|
|
5
|
-
var _parser = require('@typescript-eslint/parser'); var
|
|
5
|
+
var _parser = require('@typescript-eslint/parser'); var parserTypescript2 = _interopRequireWildcard(_parser);
|
|
6
6
|
var _astroeslintparser = require('astro-eslint-parser'); var _astroeslintparser2 = _interopRequireDefault(_astroeslintparser);
|
|
7
7
|
var _eslintpluginastro = require('eslint-plugin-astro'); var _eslintpluginastro2 = _interopRequireDefault(_eslintpluginastro);
|
|
8
8
|
function astro() {
|
|
@@ -14,7 +14,7 @@ function astro() {
|
|
|
14
14
|
parser: _astroeslintparser2.default,
|
|
15
15
|
parserOptions: {
|
|
16
16
|
extraFileExtensions: [".astro"],
|
|
17
|
-
parser:
|
|
17
|
+
parser: parserTypescript2.default
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
plugins: {
|
|
@@ -1375,7 +1375,7 @@ function typescript() {
|
|
|
1375
1375
|
files: ["**/*.{ts,tsx,astro}"],
|
|
1376
1376
|
languageOptions: {
|
|
1377
1377
|
// @ts-expect-error -- does not confirm to type
|
|
1378
|
-
parser:
|
|
1378
|
+
parser: parserTypescript2
|
|
1379
1379
|
},
|
|
1380
1380
|
plugins: {
|
|
1381
1381
|
// @ts-expect-error -- does not confirm to type
|
package/dist/index.js
CHANGED
|
@@ -1368,7 +1368,7 @@ function switchCase() {
|
|
|
1368
1368
|
|
|
1369
1369
|
// src/configs/typescript.ts
|
|
1370
1370
|
import pluginTypescript from "@typescript-eslint/eslint-plugin";
|
|
1371
|
-
import parserTypescript2 from "@typescript-eslint/parser";
|
|
1371
|
+
import * as parserTypescript2 from "@typescript-eslint/parser";
|
|
1372
1372
|
function typescript() {
|
|
1373
1373
|
return [
|
|
1374
1374
|
{
|