@stzhu/eslint-config 0.7.1 → 0.8.0
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/README.md +19 -12
- package/dist/chunk-7D4SUZUM.js +38 -0
- package/dist/chunk-7D4SUZUM.js.map +1 -0
- package/dist/{chunk-GNAVZXLX.js → chunk-W7DGUSEO.js} +19 -15
- package/dist/chunk-W7DGUSEO.js.map +1 -0
- package/dist/expo.cjs +11 -7
- package/dist/expo.cjs.map +1 -1
- package/dist/expo.d.cts +5 -1
- package/dist/expo.d.ts +5 -1
- package/dist/expo.js +12 -7
- package/dist/expo.js.map +1 -1
- package/dist/import.cjs +39403 -0
- package/dist/import.cjs.map +1 -0
- package/dist/import.d.cts +10 -0
- package/dist/import.d.ts +10 -0
- package/dist/import.js +39375 -0
- package/dist/import.js.map +1 -0
- package/dist/lingui.cjs +5 -1
- package/dist/lingui.cjs.map +1 -1
- package/dist/lingui.d.cts +5 -1
- package/dist/lingui.d.ts +5 -1
- package/dist/lingui.js +7 -1
- package/dist/lingui.js.map +1 -1
- package/dist/node.cjs +26 -18
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.cts +5 -1
- package/dist/node.d.ts +5 -1
- package/dist/node.js +10 -5
- package/dist/node.js.map +1 -1
- package/dist/react.cjs +60 -52
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +5 -1
- package/dist/react.d.ts +5 -1
- package/dist/react.js +44 -39
- package/dist/react.js.map +1 -1
- package/dist/storybook.cjs +5 -1
- package/dist/storybook.cjs.map +1 -1
- package/dist/storybook.d.cts +5 -1
- package/dist/storybook.d.ts +5 -1
- package/dist/storybook.js +7 -1
- package/dist/storybook.js.map +1 -1
- package/dist/tailwind.cjs +13 -9
- package/dist/tailwind.cjs.map +1 -1
- package/dist/tailwind.d.cts +5 -1
- package/dist/tailwind.d.ts +5 -1
- package/dist/tailwind.js +15 -9
- package/dist/tailwind.js.map +1 -1
- package/dist/ts.cjs +18 -14
- package/dist/ts.cjs.map +1 -1
- package/dist/ts.d.cts +5 -1
- package/dist/ts.d.ts +5 -1
- package/dist/ts.js +2 -1
- package/dist/turbo.cjs +5 -1
- package/dist/turbo.cjs.map +1 -1
- package/dist/turbo.d.cts +5 -1
- package/dist/turbo.d.ts +5 -1
- package/dist/turbo.js +7 -1
- package/dist/turbo.js.map +1 -1
- package/dist/vitest.cjs +30 -26
- package/dist/vitest.cjs.map +1 -1
- package/dist/vitest.d.cts +5 -1
- package/dist/vitest.d.ts +5 -1
- package/dist/vitest.js +32 -26
- package/dist/vitest.js.map +1 -1
- package/package.json +12 -1
- package/dist/chunk-GNAVZXLX.js.map +0 -1
package/README.md
CHANGED
|
@@ -34,12 +34,12 @@ Create an `eslint.config.js` (or `eslint.config.ts` for TypeScript projects) fil
|
|
|
34
34
|
```javascript
|
|
35
35
|
// @ts-check
|
|
36
36
|
|
|
37
|
-
import
|
|
37
|
+
import ts from '@stzhu/eslint-config/ts';
|
|
38
38
|
import { defineConfig } from 'eslint/config';
|
|
39
39
|
|
|
40
40
|
export default defineConfig(
|
|
41
41
|
// select from one of the configs below
|
|
42
|
-
|
|
42
|
+
ts.configs.recommended,
|
|
43
43
|
);
|
|
44
44
|
```
|
|
45
45
|
|
|
@@ -65,43 +65,50 @@ Add these as needed:
|
|
|
65
65
|
- `@stzhu/eslint-config/tailwind`: Tailwind CSS configuration (applies to `**/*.tsx` files only)
|
|
66
66
|
- `@stzhu/eslint-config/turbo`: Turborepo monorepo configuration
|
|
67
67
|
- `@stzhu/eslint-config/lingui`: Lingui internationalization configuration
|
|
68
|
+
- `@stzhu/eslint-config/import`: Extra import configurations
|
|
68
69
|
|
|
69
70
|
## Example Configurations
|
|
70
71
|
|
|
71
72
|
### TypeScript Project
|
|
72
73
|
|
|
73
74
|
```javascript
|
|
74
|
-
import
|
|
75
|
+
import ts from '@stzhu/eslint-config/ts';
|
|
75
76
|
import { defineConfig } from 'eslint/config';
|
|
76
77
|
|
|
77
|
-
export default defineConfig(
|
|
78
|
+
export default defineConfig(ts.configs.recommended);
|
|
78
79
|
```
|
|
79
80
|
|
|
80
81
|
### React Project
|
|
81
82
|
|
|
82
83
|
```javascript
|
|
83
|
-
import
|
|
84
|
+
import react from '@stzhu/eslint-config/react';
|
|
84
85
|
import { defineConfig } from 'eslint/config';
|
|
85
86
|
|
|
86
|
-
export default defineConfig(
|
|
87
|
+
export default defineConfig();
|
|
87
88
|
```
|
|
88
89
|
|
|
89
90
|
### React Project with Testing
|
|
90
91
|
|
|
91
92
|
```javascript
|
|
92
|
-
import
|
|
93
|
-
import
|
|
93
|
+
import react from '@stzhu/eslint-config/react';
|
|
94
|
+
import vitest from '@stzhu/eslint-config/vitest';
|
|
94
95
|
import { defineConfig } from 'eslint/config';
|
|
95
96
|
|
|
96
|
-
export default defineConfig(
|
|
97
|
+
export default defineConfig(
|
|
98
|
+
react.configs.recommended,
|
|
99
|
+
vitest.configs.recommended,
|
|
100
|
+
);
|
|
97
101
|
```
|
|
98
102
|
|
|
99
103
|
### Expo Project with Tailwind
|
|
100
104
|
|
|
101
105
|
```javascript
|
|
102
|
-
import
|
|
103
|
-
import
|
|
106
|
+
import expo from '@stzhu/eslint-config/expo';
|
|
107
|
+
import tailwind from '@stzhu/eslint-config/tailwind';
|
|
104
108
|
import { defineConfig } from 'eslint/config';
|
|
105
109
|
|
|
106
|
-
export default defineConfig(
|
|
110
|
+
export default defineConfig(
|
|
111
|
+
expo.configs.recommended,
|
|
112
|
+
tailwind.configs.recommended,
|
|
113
|
+
);
|
|
107
114
|
```
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
+
});
|
|
13
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
14
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
|
+
};
|
|
16
|
+
var __copyProps = (to, from, except, desc) => {
|
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
+
for (let key of __getOwnPropNames(from))
|
|
19
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
20
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
24
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
|
+
mod
|
|
31
|
+
));
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
__require,
|
|
35
|
+
__commonJS,
|
|
36
|
+
__toESM
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=chunk-7D4SUZUM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -73,22 +73,26 @@ var typescript_default = defineConfig(
|
|
|
73
73
|
);
|
|
74
74
|
|
|
75
75
|
// src/ts.ts
|
|
76
|
-
var ts_default =
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
76
|
+
var ts_default = {
|
|
77
|
+
configs: {
|
|
78
|
+
recommended: defineConfig2(
|
|
79
|
+
Object.assign({ name: "@eslint/js/recommended" }, js.configs.recommended),
|
|
80
|
+
import_default,
|
|
81
|
+
importPlugin.flatConfigs.typescript,
|
|
82
|
+
{
|
|
83
|
+
name: "ts/config-file-globals",
|
|
84
|
+
files: ["*.config.{mjs,cjs,js,ts}"],
|
|
85
|
+
languageOptions: {
|
|
86
|
+
globals: globals.node
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
typescript_default,
|
|
90
|
+
prettier
|
|
91
|
+
)
|
|
92
|
+
}
|
|
93
|
+
};
|
|
90
94
|
|
|
91
95
|
export {
|
|
92
96
|
ts_default
|
|
93
97
|
};
|
|
94
|
-
//# sourceMappingURL=chunk-
|
|
98
|
+
//# sourceMappingURL=chunk-W7DGUSEO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ts.ts","../src/configs/typescript.ts"],"sourcesContent":["import js from '@eslint/js';\nimport { defineConfig } from 'eslint/config';\nimport prettier from 'eslint-config-prettier';\nimport importPlugin from 'eslint-plugin-import';\nimport globals from 'globals';\n\nimport importConfig from './configs/import.js';\nimport typescriptConfig from './configs/typescript.js';\n\n// the difference between this and the `configs/typescript.js` file is that this is the entire\n// config for typescript projects, while that file is the eslint typescript config itself\n\nexport default {\n configs: {\n recommended: defineConfig(\n Object.assign({ name: '@eslint/js/recommended' }, js.configs.recommended),\n importConfig,\n importPlugin.flatConfigs.typescript,\n {\n name: 'ts/config-file-globals',\n files: ['*.config.{mjs,cjs,js,ts}'],\n languageOptions: {\n globals: globals.node,\n },\n },\n typescriptConfig,\n prettier,\n ),\n },\n};\n","import { defineConfig } from 'eslint/config';\nimport { configs as tseslintConfigs } from 'typescript-eslint';\n\nexport default defineConfig(\n tseslintConfigs.strictTypeChecked,\n {\n name: 'typescript/languageOptions',\n languageOptions: {\n parserOptions: {\n projectService: true,\n },\n },\n },\n {\n name: 'typescript/custom',\n rules: {\n '@typescript-eslint/consistent-type-definitions': 'off',\n '@typescript-eslint/no-misused-promises': [\n 'error',\n {\n checksVoidReturn: {\n attributes: false,\n },\n },\n ],\n '@typescript-eslint/no-unused-vars': [\n 'error',\n {\n args: 'all',\n argsIgnorePattern: '^_',\n caughtErrors: 'all',\n caughtErrorsIgnorePattern: '^_',\n destructuredArrayIgnorePattern: '^_',\n varsIgnorePattern: '^_',\n },\n ],\n '@typescript-eslint/restrict-template-expressions': [\n 'error',\n {\n allowNumber: true,\n },\n ],\n // https://tanstack.com/router/v1/docs/framework/react/api/router/redirectFunction\n '@typescript-eslint/only-throw-error': [\n 'warn',\n {\n allow: [\n {\n from: 'package',\n name: 'Redirect',\n package: '@tanstack/router-core',\n },\n ],\n },\n ],\n },\n },\n {\n files: ['**/*.{cjs,js}'],\n extends: [tseslintConfigs.disableTypeChecked],\n },\n);\n"],"mappings":";;;;;AAAA,OAAO,QAAQ;AACf,SAAS,gBAAAA,qBAAoB;AAC7B,OAAO,cAAc;AACrB,OAAO,kBAAkB;AACzB,OAAO,aAAa;;;ACJpB,SAAS,oBAAoB;AAC7B,SAAS,WAAW,uBAAuB;AAE3C,IAAO,qBAAQ;AAAA,EACb,gBAAgB;AAAA,EAChB;AAAA,IACE,MAAM;AAAA,IACN,iBAAiB;AAAA,MACf,eAAe;AAAA,QACb,gBAAgB;AAAA,MAClB;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IACN,OAAO;AAAA,MACL,kDAAkD;AAAA,MAClD,0CAA0C;AAAA,QACxC;AAAA,QACA;AAAA,UACE,kBAAkB;AAAA,YAChB,YAAY;AAAA,UACd;AAAA,QACF;AAAA,MACF;AAAA,MACA,qCAAqC;AAAA,QACnC;AAAA,QACA;AAAA,UACE,MAAM;AAAA,UACN,mBAAmB;AAAA,UACnB,cAAc;AAAA,UACd,2BAA2B;AAAA,UAC3B,gCAAgC;AAAA,UAChC,mBAAmB;AAAA,QACrB;AAAA,MACF;AAAA,MACA,oDAAoD;AAAA,QAClD;AAAA,QACA;AAAA,UACE,aAAa;AAAA,QACf;AAAA,MACF;AAAA;AAAA,MAEA,uCAAuC;AAAA,QACrC;AAAA,QACA;AAAA,UACE,OAAO;AAAA,YACL;AAAA,cACE,MAAM;AAAA,cACN,MAAM;AAAA,cACN,SAAS;AAAA,YACX;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,IACE,OAAO,CAAC,eAAe;AAAA,IACvB,SAAS,CAAC,gBAAgB,kBAAkB;AAAA,EAC9C;AACF;;;ADjDA,IAAO,aAAQ;AAAA,EACb,SAAS;AAAA,IACP,aAAaC;AAAA,MACX,OAAO,OAAO,EAAE,MAAM,yBAAyB,GAAG,GAAG,QAAQ,WAAW;AAAA,MACxE;AAAA,MACA,aAAa,YAAY;AAAA,MACzB;AAAA,QACE,MAAM;AAAA,QACN,OAAO,CAAC,0BAA0B;AAAA,QAClC,iBAAiB;AAAA,UACf,SAAS,QAAQ;AAAA,QACnB;AAAA,MACF;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF;","names":["defineConfig","defineConfig"]}
|
package/dist/expo.cjs
CHANGED
|
@@ -75,11 +75,15 @@ var import_default = (0, import_config.defineConfig)(
|
|
|
75
75
|
);
|
|
76
76
|
|
|
77
77
|
// src/expo.ts
|
|
78
|
-
var expo_default =
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
78
|
+
var expo_default = {
|
|
79
|
+
configs: {
|
|
80
|
+
recommended: (0, import_config2.defineConfig)(
|
|
81
|
+
import_flat.default,
|
|
82
|
+
// import these separately because expo already includes the recommended import config
|
|
83
|
+
importConfig,
|
|
84
|
+
simpleImportSortConfig,
|
|
85
|
+
import_eslint_config_prettier.default
|
|
86
|
+
)
|
|
87
|
+
}
|
|
88
|
+
};
|
|
85
89
|
//# sourceMappingURL=expo.cjs.map
|
package/dist/expo.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/expo.ts","../src/configs/import.ts"],"sourcesContent":["import { Linter } from 'eslint';\nimport { defineConfig } from 'eslint/config';\n// @ts-expect-error - doesn't support typescript\n// .js extension is required because eslint-config-expo doesn't define exports in package.json\nimport expo from 'eslint-config-expo/flat.js';\nimport prettier from 'eslint-config-prettier';\n\nimport { importConfig, simpleImportSortConfig } from './configs/import.js';\n\nexport default defineConfig(\n
|
|
1
|
+
{"version":3,"sources":["../src/expo.ts","../src/configs/import.ts"],"sourcesContent":["import { Linter } from 'eslint';\nimport { defineConfig } from 'eslint/config';\n// @ts-expect-error - doesn't support typescript\n// .js extension is required because eslint-config-expo doesn't define exports in package.json\nimport expo from 'eslint-config-expo/flat.js';\nimport prettier from 'eslint-config-prettier';\n\nimport { importConfig, simpleImportSortConfig } from './configs/import.js';\n\nexport default {\n configs: {\n recommended: defineConfig(\n expo as Linter.Config[],\n // import these separately because expo already includes the recommended import config\n importConfig,\n simpleImportSortConfig,\n prettier,\n ),\n },\n};\n","import { defineConfig } from 'eslint/config';\nimport importPlugin from 'eslint-plugin-import';\nimport simpleImportSort from 'eslint-plugin-simple-import-sort';\n\nexport const importConfig = defineConfig({\n name: 'import/custom',\n rules: {\n 'import/enforce-node-protocol-usage': ['error', 'always'],\n 'import/first': 'error',\n 'import/newline-after-import': 'error',\n },\n});\n\nexport const simpleImportSortConfig = defineConfig({\n name: 'simple-import-sort/custom',\n plugins: {\n 'simple-import-sort': simpleImportSort,\n },\n rules: {\n 'simple-import-sort/imports': 'error',\n 'simple-import-sort/exports': 'error',\n },\n});\n\nexport default defineConfig(\n importPlugin.flatConfigs.recommended,\n {\n name: 'import/settings',\n settings: {\n 'import/resolver': {\n typescript: true,\n node: true,\n },\n },\n },\n importConfig,\n simpleImportSortConfig,\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,IAAAA,iBAA6B;AAG7B,kBAAiB;AACjB,oCAAqB;;;ACLrB,oBAA6B;AAC7B,kCAAyB;AACzB,8CAA6B;AAEtB,IAAM,mBAAe,4BAAa;AAAA,EACvC,MAAM;AAAA,EACN,OAAO;AAAA,IACL,sCAAsC,CAAC,SAAS,QAAQ;AAAA,IACxD,gBAAgB;AAAA,IAChB,+BAA+B;AAAA,EACjC;AACF,CAAC;AAEM,IAAM,6BAAyB,4BAAa;AAAA,EACjD,MAAM;AAAA,EACN,SAAS;AAAA,IACP,sBAAsB,wCAAAC;AAAA,EACxB;AAAA,EACA,OAAO;AAAA,IACL,8BAA8B;AAAA,IAC9B,8BAA8B;AAAA,EAChC;AACF,CAAC;AAED,IAAO,qBAAQ;AAAA,EACb,4BAAAC,QAAa,YAAY;AAAA,EACzB;AAAA,IACE,MAAM;AAAA,IACN,UAAU;AAAA,MACR,mBAAmB;AAAA,QACjB,YAAY;AAAA,QACZ,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EACA;AAAA,EACA;AACF;;;AD5BA,IAAO,eAAQ;AAAA,EACb,SAAS;AAAA,IACP,iBAAa;AAAA,MACX,YAAAC;AAAA;AAAA,MAEA;AAAA,MACA;AAAA,MACA,8BAAAC;AAAA,IACF;AAAA,EACF;AACF;","names":["import_config","simpleImportSort","importPlugin","expo","prettier"]}
|
package/dist/expo.d.cts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { C as ConfigObject, R as RulesConfig } from './types.d-DV2WF_ti.cjs';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: {
|
|
5
|
+
configs: {
|
|
6
|
+
recommended: ConfigObject<RulesConfig>[];
|
|
7
|
+
};
|
|
8
|
+
};
|
|
5
9
|
|
|
6
10
|
export { _default as default };
|
package/dist/expo.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { C as ConfigObject, R as RulesConfig } from './types.d-DV2WF_ti.js';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: {
|
|
5
|
+
configs: {
|
|
6
|
+
recommended: ConfigObject<RulesConfig>[];
|
|
7
|
+
};
|
|
8
|
+
};
|
|
5
9
|
|
|
6
10
|
export { _default as default };
|
package/dist/expo.js
CHANGED
|
@@ -2,18 +2,23 @@ import {
|
|
|
2
2
|
importConfig,
|
|
3
3
|
simpleImportSortConfig
|
|
4
4
|
} from "./chunk-AKYUAI22.js";
|
|
5
|
+
import "./chunk-7D4SUZUM.js";
|
|
5
6
|
|
|
6
7
|
// src/expo.ts
|
|
7
8
|
import { defineConfig } from "eslint/config";
|
|
8
9
|
import expo from "eslint-config-expo/flat.js";
|
|
9
10
|
import prettier from "eslint-config-prettier";
|
|
10
|
-
var expo_default =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
var expo_default = {
|
|
12
|
+
configs: {
|
|
13
|
+
recommended: defineConfig(
|
|
14
|
+
expo,
|
|
15
|
+
// import these separately because expo already includes the recommended import config
|
|
16
|
+
importConfig,
|
|
17
|
+
simpleImportSortConfig,
|
|
18
|
+
prettier
|
|
19
|
+
)
|
|
20
|
+
}
|
|
21
|
+
};
|
|
17
22
|
export {
|
|
18
23
|
expo_default as default
|
|
19
24
|
};
|
package/dist/expo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/expo.ts"],"sourcesContent":["import { Linter } from 'eslint';\nimport { defineConfig } from 'eslint/config';\n// @ts-expect-error - doesn't support typescript\n// .js extension is required because eslint-config-expo doesn't define exports in package.json\nimport expo from 'eslint-config-expo/flat.js';\nimport prettier from 'eslint-config-prettier';\n\nimport { importConfig, simpleImportSortConfig } from './configs/import.js';\n\nexport default defineConfig(\n
|
|
1
|
+
{"version":3,"sources":["../src/expo.ts"],"sourcesContent":["import { Linter } from 'eslint';\nimport { defineConfig } from 'eslint/config';\n// @ts-expect-error - doesn't support typescript\n// .js extension is required because eslint-config-expo doesn't define exports in package.json\nimport expo from 'eslint-config-expo/flat.js';\nimport prettier from 'eslint-config-prettier';\n\nimport { importConfig, simpleImportSortConfig } from './configs/import.js';\n\nexport default {\n configs: {\n recommended: defineConfig(\n expo as Linter.Config[],\n // import these separately because expo already includes the recommended import config\n importConfig,\n simpleImportSortConfig,\n prettier,\n ),\n },\n};\n"],"mappings":";;;;;;;AACA,SAAS,oBAAoB;AAG7B,OAAO,UAAU;AACjB,OAAO,cAAc;AAIrB,IAAO,eAAQ;AAAA,EACb,SAAS;AAAA,IACP,aAAa;AAAA,MACX;AAAA;AAAA,MAEA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|