@stzhu/eslint-config 0.8.0 → 0.8.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/dist/expo.js +0 -1
- package/dist/expo.js.map +1 -1
- package/dist/import.cjs +1 -39353
- package/dist/import.cjs.map +1 -1
- package/dist/import.js +2 -39357
- package/dist/import.js.map +1 -1
- package/dist/lingui.js +0 -2
- package/dist/lingui.js.map +1 -1
- package/dist/node.js +0 -1
- package/dist/node.js.map +1 -1
- package/dist/react.js +0 -1
- package/dist/react.js.map +1 -1
- package/dist/storybook.js +0 -2
- package/dist/storybook.js.map +1 -1
- package/dist/tailwind.js +0 -2
- package/dist/tailwind.js.map +1 -1
- package/dist/ts.js +0 -1
- package/dist/turbo.js +0 -2
- package/dist/turbo.js.map +1 -1
- package/dist/vitest.js +0 -2
- package/dist/vitest.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-7D4SUZUM.js +0 -38
- package/dist/chunk-7D4SUZUM.js.map +0 -1
package/dist/lingui.js
CHANGED
package/dist/lingui.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lingui.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport pluginLingui from 'eslint-plugin-lingui';\n\nexport default {\n configs: {\n recommended: defineConfig(pluginLingui.configs['flat/recommended']),\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/lingui.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport pluginLingui from 'eslint-plugin-lingui';\n\nexport default {\n configs: {\n recommended: defineConfig(pluginLingui.configs['flat/recommended']),\n },\n};\n"],"mappings":";AAAA,SAAS,oBAAoB;AAC7B,OAAO,kBAAkB;AAEzB,IAAO,iBAAQ;AAAA,EACb,SAAS;AAAA,IACP,aAAa,aAAa,aAAa,QAAQ,kBAAkB,CAAC;AAAA,EACpE;AACF;","names":[]}
|
package/dist/node.js
CHANGED
package/dist/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/node.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport globals from 'globals';\n\nimport baseConfig from './ts.js';\n\nexport default {\n configs: {\n recommended: defineConfig(baseConfig.configs.recommended, {\n languageOptions: {\n globals: globals.node,\n },\n }),\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/node.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport globals from 'globals';\n\nimport baseConfig from './ts.js';\n\nexport default {\n configs: {\n recommended: defineConfig(baseConfig.configs.recommended, {\n languageOptions: {\n globals: globals.node,\n },\n }),\n },\n};\n"],"mappings":";;;;;;AAAA,SAAS,oBAAoB;AAC7B,OAAO,aAAa;AAIpB,IAAO,eAAQ;AAAA,EACb,SAAS;AAAA,IACP,aAAa,aAAa,WAAW,QAAQ,aAAa;AAAA,MACxD,iBAAiB;AAAA,QACf,SAAS,QAAQ;AAAA,MACnB;AAAA,IACF,CAAC;AAAA,EACH;AACF;","names":[]}
|
package/dist/react.js
CHANGED
package/dist/react.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/react.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport prettier from 'eslint-config-prettier';\nimport importPlugin from 'eslint-plugin-import';\nimport react from 'eslint-plugin-react';\nimport reactHooks from 'eslint-plugin-react-hooks';\nimport reactRefresh from 'eslint-plugin-react-refresh';\nimport globals from 'globals';\n\nimport baseConfig from './ts.js';\n\nexport default {\n configs: {\n recommended: defineConfig(\n baseConfig.configs.recommended,\n importPlugin.flatConfigs.react,\n {\n name: 'react/src-browser-globals',\n files: ['**/*.{ts,tsx}'],\n languageOptions: {\n globals: globals.browser,\n },\n },\n react.configs.flat['recommended'] ?? [],\n react.configs.flat['jsx-runtime'] ?? [],\n {\n name: 'react/custom',\n settings: {\n react: {\n version: 'detect',\n },\n },\n rules: {\n 'react/function-component-definition': [\n 'error',\n { namedComponents: 'function-declaration' },\n ],\n },\n },\n reactHooks.configs.flat['recommended-latest'] ?? [],\n {\n name: 'react-refresh/custom',\n plugins: {\n 'react-refresh': reactRefresh,\n },\n rules: {\n 'react-refresh/only-export-components': 'warn',\n },\n },\n prettier,\n ),\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/react.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport prettier from 'eslint-config-prettier';\nimport importPlugin from 'eslint-plugin-import';\nimport react from 'eslint-plugin-react';\nimport reactHooks from 'eslint-plugin-react-hooks';\nimport reactRefresh from 'eslint-plugin-react-refresh';\nimport globals from 'globals';\n\nimport baseConfig from './ts.js';\n\nexport default {\n configs: {\n recommended: defineConfig(\n baseConfig.configs.recommended,\n importPlugin.flatConfigs.react,\n {\n name: 'react/src-browser-globals',\n files: ['**/*.{ts,tsx}'],\n languageOptions: {\n globals: globals.browser,\n },\n },\n react.configs.flat['recommended'] ?? [],\n react.configs.flat['jsx-runtime'] ?? [],\n {\n name: 'react/custom',\n settings: {\n react: {\n version: 'detect',\n },\n },\n rules: {\n 'react/function-component-definition': [\n 'error',\n { namedComponents: 'function-declaration' },\n ],\n },\n },\n reactHooks.configs.flat['recommended-latest'] ?? [],\n {\n name: 'react-refresh/custom',\n plugins: {\n 'react-refresh': reactRefresh,\n },\n rules: {\n 'react-refresh/only-export-components': 'warn',\n },\n },\n prettier,\n ),\n },\n};\n"],"mappings":";;;;;;AAAA,SAAS,oBAAoB;AAC7B,OAAO,cAAc;AACrB,OAAO,kBAAkB;AACzB,OAAO,WAAW;AAClB,OAAO,gBAAgB;AACvB,OAAO,kBAAkB;AACzB,OAAO,aAAa;AAIpB,IAAO,gBAAQ;AAAA,EACb,SAAS;AAAA,IACP,aAAa;AAAA,MACX,WAAW,QAAQ;AAAA,MACnB,aAAa,YAAY;AAAA,MACzB;AAAA,QACE,MAAM;AAAA,QACN,OAAO,CAAC,eAAe;AAAA,QACvB,iBAAiB;AAAA,UACf,SAAS,QAAQ;AAAA,QACnB;AAAA,MACF;AAAA,MACA,MAAM,QAAQ,KAAK,aAAa,KAAK,CAAC;AAAA,MACtC,MAAM,QAAQ,KAAK,aAAa,KAAK,CAAC;AAAA,MACtC;AAAA,QACE,MAAM;AAAA,QACN,UAAU;AAAA,UACR,OAAO;AAAA,YACL,SAAS;AAAA,UACX;AAAA,QACF;AAAA,QACA,OAAO;AAAA,UACL,uCAAuC;AAAA,YACrC;AAAA,YACA,EAAE,iBAAiB,uBAAuB;AAAA,UAC5C;AAAA,QACF;AAAA,MACF;AAAA,MACA,WAAW,QAAQ,KAAK,oBAAoB,KAAK,CAAC;AAAA,MAClD;AAAA,QACE,MAAM;AAAA,QACN,SAAS;AAAA,UACP,iBAAiB;AAAA,QACnB;AAAA,QACA,OAAO;AAAA,UACL,wCAAwC;AAAA,QAC1C;AAAA,MACF;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
package/dist/storybook.js
CHANGED
package/dist/storybook.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/storybook.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport storybook from 'eslint-plugin-storybook';\n\nexport default {\n configs: {\n recommended: defineConfig(storybook.configs['flat/recommended']),\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/storybook.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport storybook from 'eslint-plugin-storybook';\n\nexport default {\n configs: {\n recommended: defineConfig(storybook.configs['flat/recommended']),\n },\n};\n"],"mappings":";AAAA,SAAS,oBAAoB;AAC7B,OAAO,eAAe;AAEtB,IAAO,oBAAQ;AAAA,EACb,SAAS;AAAA,IACP,aAAa,aAAa,UAAU,QAAQ,kBAAkB,CAAC;AAAA,EACjE;AACF;","names":[]}
|
package/dist/tailwind.js
CHANGED
package/dist/tailwind.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/tailwind.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport eslintPluginBetterTailwindcss from 'eslint-plugin-better-tailwindcss';\n\nexport default {\n configs: {\n recommended: defineConfig({\n files: ['**/*.tsx'],\n plugins: {\n 'better-tailwindcss': eslintPluginBetterTailwindcss,\n },\n rules: {\n ...eslintPluginBetterTailwindcss.configs['recommended-error']?.rules,\n 'better-tailwindcss/no-deprecated-classes': 'warn',\n },\n }),\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/tailwind.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport eslintPluginBetterTailwindcss from 'eslint-plugin-better-tailwindcss';\n\nexport default {\n configs: {\n recommended: defineConfig({\n files: ['**/*.tsx'],\n plugins: {\n 'better-tailwindcss': eslintPluginBetterTailwindcss,\n },\n rules: {\n ...eslintPluginBetterTailwindcss.configs['recommended-error']?.rules,\n 'better-tailwindcss/no-deprecated-classes': 'warn',\n },\n }),\n },\n};\n"],"mappings":";AAAA,SAAS,oBAAoB;AAC7B,OAAO,mCAAmC;AAE1C,IAAO,mBAAQ;AAAA,EACb,SAAS;AAAA,IACP,aAAa,aAAa;AAAA,MACxB,OAAO,CAAC,UAAU;AAAA,MAClB,SAAS;AAAA,QACP,sBAAsB;AAAA,MACxB;AAAA,MACA,OAAO;AAAA,QACL,GAAG,8BAA8B,QAAQ,mBAAmB,GAAG;AAAA,QAC/D,4CAA4C;AAAA,MAC9C;AAAA,IACF,CAAC;AAAA,EACH;AACF;","names":[]}
|
package/dist/ts.js
CHANGED
package/dist/turbo.js
CHANGED
package/dist/turbo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/turbo.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport { configs as turboConfigs } from 'eslint-plugin-turbo';\n\nexport default {\n configs: {\n recommended: defineConfig(turboConfigs['flat/recommended']),\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/turbo.ts"],"sourcesContent":["import { defineConfig } from 'eslint/config';\nimport { configs as turboConfigs } from 'eslint-plugin-turbo';\n\nexport default {\n configs: {\n recommended: defineConfig(turboConfigs['flat/recommended']),\n },\n};\n"],"mappings":";AAAA,SAAS,oBAAoB;AAC7B,SAAS,WAAW,oBAAoB;AAExC,IAAO,gBAAQ;AAAA,EACb,SAAS;AAAA,IACP,aAAa,aAAa,aAAa,kBAAkB,CAAC;AAAA,EAC5D;AACF;","names":[]}
|
package/dist/vitest.js
CHANGED
package/dist/vitest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/vitest.ts"],"sourcesContent":["import vitest from '@vitest/eslint-plugin';\nimport { Linter } from 'eslint';\nimport { defineConfig } from 'eslint/config';\n\nexport default {\n configs: {\n recommended: defineConfig(\n // XXX: temp fix for https://github.com/vitest-dev/eslint-plugin-vitest/issues/771\n vitest.configs.recommended as unknown as Linter.Config[],\n {\n name: 'custom/vitest',\n files: ['**/*.test.{ts,tsx}'],\n rules: {\n 'vitest/consistent-test-it': [\n 'error',\n {\n fn: 'test',\n withinDescribe: 'test',\n },\n ],\n 'vitest/no-focused-tests': 'error',\n 'vitest/no-disabled-tests': 'error',\n 'vitest/prefer-lowercase-title': [\n 'warn',\n {\n ignoreTopLevelDescribe: true,\n },\n ],\n // Disable certain strict typescript eslint rules for tests\n // https://github.com/vitest-dev/vitest/issues/4543#issuecomment-1824881253\n '@typescript-eslint/no-unsafe-assignment': 'off',\n },\n },\n ),\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/vitest.ts"],"sourcesContent":["import vitest from '@vitest/eslint-plugin';\nimport { Linter } from 'eslint';\nimport { defineConfig } from 'eslint/config';\n\nexport default {\n configs: {\n recommended: defineConfig(\n // XXX: temp fix for https://github.com/vitest-dev/eslint-plugin-vitest/issues/771\n vitest.configs.recommended as unknown as Linter.Config[],\n {\n name: 'custom/vitest',\n files: ['**/*.test.{ts,tsx}'],\n rules: {\n 'vitest/consistent-test-it': [\n 'error',\n {\n fn: 'test',\n withinDescribe: 'test',\n },\n ],\n 'vitest/no-focused-tests': 'error',\n 'vitest/no-disabled-tests': 'error',\n 'vitest/prefer-lowercase-title': [\n 'warn',\n {\n ignoreTopLevelDescribe: true,\n },\n ],\n // Disable certain strict typescript eslint rules for tests\n // https://github.com/vitest-dev/vitest/issues/4543#issuecomment-1824881253\n '@typescript-eslint/no-unsafe-assignment': 'off',\n },\n },\n ),\n },\n};\n"],"mappings":";AAAA,OAAO,YAAY;AAEnB,SAAS,oBAAoB;AAE7B,IAAO,iBAAQ;AAAA,EACb,SAAS;AAAA,IACP,aAAa;AAAA;AAAA,MAEX,OAAO,QAAQ;AAAA,MACf;AAAA,QACE,MAAM;AAAA,QACN,OAAO,CAAC,oBAAoB;AAAA,QAC5B,OAAO;AAAA,UACL,6BAA6B;AAAA,YAC3B;AAAA,YACA;AAAA,cACE,IAAI;AAAA,cACJ,gBAAgB;AAAA,YAClB;AAAA,UACF;AAAA,UACA,2BAA2B;AAAA,UAC3B,4BAA4B;AAAA,UAC5B,iCAAiC;AAAA,YAC/B;AAAA,YACA;AAAA,cACE,wBAAwB;AAAA,YAC1B;AAAA,UACF;AAAA;AAAA;AAAA,UAGA,2CAA2C;AAAA,QAC7C;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stzhu/eslint-config",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Shared config for ESLint",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint"
|
|
@@ -131,6 +131,7 @@
|
|
|
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
|
+
"eslint-plugin-n": "^17.23.1",
|
|
134
135
|
"eslint-plugin-react": "^7.37.5",
|
|
135
136
|
"eslint-plugin-react-hooks": "^7.0.0",
|
|
136
137
|
"eslint-plugin-react-refresh": "^0.4.23",
|
|
@@ -145,7 +146,6 @@
|
|
|
145
146
|
"@stzhu/prettier-plugin-tsconfig": "^0.6.1",
|
|
146
147
|
"@stzhu/tsconfig": "^0.1.0",
|
|
147
148
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
148
|
-
"eslint-plugin-n": "^17.23.1",
|
|
149
149
|
"prettier": "^3.6.2",
|
|
150
150
|
"prettier-plugin-packagejson": "^2.5.19",
|
|
151
151
|
"tsup": "^8.5.0",
|
package/dist/chunk-7D4SUZUM.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|