@stzhu/eslint-config 0.8.1 → 0.9.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/dist/{chunk-AKYUAI22.js → chunk-E7RK5RTJ.js} +7 -7
- package/dist/chunk-E7RK5RTJ.js.map +1 -0
- package/dist/{chunk-W7DGUSEO.js → chunk-NVDKHLI3.js} +2 -2
- package/dist/expo.cjs +6 -6
- package/dist/expo.cjs.map +1 -1
- package/dist/expo.d.cts +2 -3
- package/dist/expo.d.ts +2 -3
- package/dist/expo.js +5 -5
- package/dist/expo.js.map +1 -1
- package/dist/import.d.cts +2 -3
- package/dist/import.d.ts +2 -3
- package/dist/lingui.d.cts +2 -3
- package/dist/lingui.d.ts +2 -3
- package/dist/node.cjs +4 -4
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.cts +2 -3
- package/dist/node.d.ts +2 -3
- package/dist/node.js +2 -2
- package/dist/react.cjs +5 -5
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +2 -3
- package/dist/react.d.ts +2 -3
- package/dist/react.js +3 -3
- package/dist/react.js.map +1 -1
- package/dist/storybook.cjs +4 -12
- package/dist/storybook.cjs.map +1 -1
- package/dist/storybook.d.cts +2 -3
- package/dist/storybook.d.ts +2 -3
- package/dist/storybook.js +4 -2
- package/dist/storybook.js.map +1 -1
- package/dist/tailwind.d.cts +2 -3
- package/dist/tailwind.d.ts +2 -3
- package/dist/ts.cjs +4 -4
- package/dist/ts.cjs.map +1 -1
- package/dist/ts.d.cts +2 -3
- package/dist/ts.d.ts +2 -3
- package/dist/ts.js +2 -2
- package/dist/turbo.d.cts +2 -3
- package/dist/turbo.d.ts +2 -3
- package/dist/vitest.d.cts +2 -3
- package/dist/vitest.d.ts +2 -3
- package/package.json +18 -14
- package/dist/chunk-AKYUAI22.js.map +0 -1
- package/dist/types.d-DV2WF_ti.d.cts +0 -1142
- package/dist/types.d-DV2WF_ti.d.ts +0 -1142
- /package/dist/{chunk-W7DGUSEO.js.map → chunk-NVDKHLI3.js.map} +0 -0
package/dist/ts.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/ts.ts","../src/configs/import.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 importPlugin from 'eslint-plugin-import';\nimport simpleImportSort from 'eslint-plugin-simple-import-sort';\n\nexport const
|
|
1
|
+
{"version":3,"sources":["../src/ts.ts","../src/configs/import.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 importPlugin from 'eslint-plugin-import';\nimport simpleImportSort from 'eslint-plugin-simple-import-sort';\n\nexport const importPluginConfig = 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 simpleImportSortPluginConfig = 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 importPluginConfig,\n simpleImportSortPluginConfig,\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":";;;;;;;;;;;;;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ACd,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,yBAAAA,QAAgB,kBAAkB;AAAA,EAC9C;AACF;;;AFjDA,IAAO,aAAQ;AAAA,EACb,SAAS;AAAA,IACP,iBAAa;AAAA,MACX,OAAO,OAAO,EAAE,MAAM,yBAAyB,GAAG,UAAAC,QAAG,QAAQ,WAAW;AAAA,MACxE;AAAA,MACA,6BAAAC,QAAa,YAAY;AAAA,MACzB;AAAA,QACE,MAAM;AAAA,QACN,OAAO,CAAC,0BAA0B;AAAA,QAClC,iBAAiB;AAAA,UACf,SAAS,eAAAC,QAAQ;AAAA,QACnB;AAAA,MACF;AAAA,MACA;AAAA,MACA,8BAAAC;AAAA,IACF;AAAA,EACF;AACF;","names":["import_config","import_eslint_plugin_import","simpleImportSort","importPlugin","import_config","tseslintConfigs","js","importPlugin","globals","prettier"]}
|
package/dist/ts.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/ts.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/ts.js
CHANGED
package/dist/turbo.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/turbo.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/vitest.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/dist/vitest.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import 'json-schema';
|
|
1
|
+
import * as eslint_config from 'eslint/config';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
|
-
recommended:
|
|
5
|
+
recommended: eslint_config.Config[];
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stzhu/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Shared config for ESLint",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint"
|
|
@@ -119,27 +119,27 @@
|
|
|
119
119
|
],
|
|
120
120
|
"dependencies": {
|
|
121
121
|
"@eslint/core": "^0.16.0",
|
|
122
|
-
"@eslint/js": "^9.
|
|
123
|
-
"@typescript-eslint/eslint-plugin": "^8.46.
|
|
124
|
-
"@typescript-eslint/parser": "^8.46.
|
|
125
|
-
"@vitest/eslint-plugin": "^1.3.
|
|
122
|
+
"@eslint/js": "^9.38.0",
|
|
123
|
+
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
124
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
125
|
+
"@vitest/eslint-plugin": "^1.3.26",
|
|
126
126
|
"eslint-config-expo": "^10.0.0",
|
|
127
127
|
"eslint-config-prettier": "^10.1.8",
|
|
128
128
|
"eslint-config-turbo": "^2.5.8",
|
|
129
129
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
130
|
-
"eslint-plugin-better-tailwindcss": "^3.7.
|
|
130
|
+
"eslint-plugin-better-tailwindcss": "^3.7.10",
|
|
131
131
|
"eslint-plugin-expo": "^1.0.0",
|
|
132
132
|
"eslint-plugin-import": "^2.32.0",
|
|
133
133
|
"eslint-plugin-lingui": "^0.11.0",
|
|
134
134
|
"eslint-plugin-n": "^17.23.1",
|
|
135
135
|
"eslint-plugin-react": "^7.37.5",
|
|
136
|
-
"eslint-plugin-react-hooks": "^7.0.
|
|
137
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
136
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
137
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
138
138
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
139
|
-
"eslint-plugin-storybook": "^
|
|
139
|
+
"eslint-plugin-storybook": "^10.0.0",
|
|
140
140
|
"eslint-plugin-turbo": "^2.5.8",
|
|
141
141
|
"globals": "^16.4.0",
|
|
142
|
-
"typescript-eslint": "^8.46.
|
|
142
|
+
"typescript-eslint": "^8.46.2"
|
|
143
143
|
},
|
|
144
144
|
"devDependencies": {
|
|
145
145
|
"@eslint/config-inspector": "^1.3.0",
|
|
@@ -149,14 +149,18 @@
|
|
|
149
149
|
"prettier": "^3.6.2",
|
|
150
150
|
"prettier-plugin-packagejson": "^2.5.19",
|
|
151
151
|
"tsup": "^8.5.0",
|
|
152
|
-
"vitest": "^
|
|
152
|
+
"vitest": "^4.0.4"
|
|
153
153
|
},
|
|
154
154
|
"peerDependencies": {
|
|
155
|
-
"eslint": "
|
|
156
|
-
"
|
|
157
|
-
"
|
|
155
|
+
"eslint": "9.x",
|
|
156
|
+
"storybook": "10.x",
|
|
157
|
+
"tailwindcss": "4.x",
|
|
158
|
+
"typescript": "5.x"
|
|
158
159
|
},
|
|
159
160
|
"peerDependenciesMeta": {
|
|
161
|
+
"storybook": {
|
|
162
|
+
"optional": true
|
|
163
|
+
},
|
|
160
164
|
"tailwindcss": {
|
|
161
165
|
"optional": true
|
|
162
166
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/configs/import.ts"],"sourcesContent":["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,SAAS,oBAAoB;AAC7B,OAAO,kBAAkB;AACzB,OAAO,sBAAsB;AAEtB,IAAM,eAAe,aAAa;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,yBAAyB,aAAa;AAAA,EACjD,MAAM;AAAA,EACN,SAAS;AAAA,IACP,sBAAsB;AAAA,EACxB;AAAA,EACA,OAAO;AAAA,IACL,8BAA8B;AAAA,IAC9B,8BAA8B;AAAA,EAChC;AACF,CAAC;AAED,IAAO,iBAAQ;AAAA,EACb,aAAa,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;","names":[]}
|