@telepix-lab/eslint-config 0.0.3 → 0.0.6
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/cjs/index.js +77 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/index.js +75 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/index.js +23 -14
- package/dist/index.js.map +1 -1
- package/package.json +9 -2
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var eslint = require('@eslint/js');
|
|
4
|
+
var eslintConfigPrettier = require('eslint-config-prettier');
|
|
5
|
+
var eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended');
|
|
6
|
+
var eslintPluginReact = require('eslint-plugin-react');
|
|
7
|
+
var eslintPluginReactHooks = require('eslint-plugin-react-hooks');
|
|
8
|
+
var eslintPluginReactRefresh = require('eslint-plugin-react-refresh');
|
|
9
|
+
var eslintPluginTailwindcss = require('eslint-plugin-tailwindcss');
|
|
10
|
+
var tseslint = require('typescript-eslint');
|
|
11
|
+
|
|
12
|
+
var index = tseslint.config(
|
|
13
|
+
eslint.configs.recommended,
|
|
14
|
+
|
|
15
|
+
// typescript config
|
|
16
|
+
tseslint.configs.strictTypeChecked,
|
|
17
|
+
tseslint.configs.stylisticTypeChecked,
|
|
18
|
+
{
|
|
19
|
+
languageOptions: {
|
|
20
|
+
parserOptions: {
|
|
21
|
+
projectService: true,
|
|
22
|
+
tsconfigRootDir: undefined,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
// prettier config
|
|
28
|
+
eslintPluginPrettierRecommended,
|
|
29
|
+
eslintConfigPrettier,
|
|
30
|
+
{
|
|
31
|
+
rules: {
|
|
32
|
+
/* prettier 설정 경고 처리 */
|
|
33
|
+
"prettier/prettier": "warn",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
// tailwindcss config
|
|
38
|
+
eslintPluginTailwindcss.configs["flat/recommended"],
|
|
39
|
+
{
|
|
40
|
+
rules: {
|
|
41
|
+
"tailwindcss/no-custom-classname": "warn",
|
|
42
|
+
"tailwindcss/enforces-shorthand": "warn",
|
|
43
|
+
"tailwindcss/classnames-order": "warn",
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
// react config
|
|
48
|
+
eslintPluginReact.configs.flat.recommended,
|
|
49
|
+
eslintPluginReactRefresh.configs.recommended,
|
|
50
|
+
{
|
|
51
|
+
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx}"],
|
|
52
|
+
plugins: {
|
|
53
|
+
"react-hooks": eslintPluginReactHooks,
|
|
54
|
+
},
|
|
55
|
+
rules: {
|
|
56
|
+
"react/react-in-jsx-scope": "off",
|
|
57
|
+
...eslintPluginReactHooks.configs.recommended.rules,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
|
|
61
|
+
// default ignore config
|
|
62
|
+
{
|
|
63
|
+
ignores: [
|
|
64
|
+
"dist/**",
|
|
65
|
+
"node_modules/**",
|
|
66
|
+
"build/**",
|
|
67
|
+
"coverage/**",
|
|
68
|
+
"**/*.test.ts",
|
|
69
|
+
"**/*.test.tsx",
|
|
70
|
+
"eslint.config.mjs",
|
|
71
|
+
"example/**",
|
|
72
|
+
],
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
module.exports = index;
|
|
77
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../index.mjs"],"sourcesContent":["import eslint from \"@eslint/js\";\nimport eslintConfigPrettier from \"eslint-config-prettier\";\nimport eslintPluginPrettierRecommended from \"eslint-plugin-prettier/recommended\";\nimport eslintPluginReact from \"eslint-plugin-react\";\nimport eslintPluginReactHooks from \"eslint-plugin-react-hooks\";\nimport eslintPluginReactRefresh from \"eslint-plugin-react-refresh\";\nimport eslintPluginTailwindcss from \"eslint-plugin-tailwindcss\";\nimport tseslint from \"typescript-eslint\";\n\nexport default tseslint.config(\n eslint.configs.recommended,\n\n // typescript config\n tseslint.configs.strictTypeChecked,\n tseslint.configs.stylisticTypeChecked,\n {\n languageOptions: {\n parserOptions: {\n projectService: true,\n tsconfigRootDir: import.meta.dirname,\n },\n },\n },\n\n // prettier config\n eslintPluginPrettierRecommended,\n eslintConfigPrettier,\n {\n rules: {\n /* prettier 설정 경고 처리 */\n \"prettier/prettier\": \"warn\",\n },\n },\n\n // tailwindcss config\n eslintPluginTailwindcss.configs[\"flat/recommended\"],\n {\n rules: {\n \"tailwindcss/no-custom-classname\": \"warn\",\n \"tailwindcss/enforces-shorthand\": \"warn\",\n \"tailwindcss/classnames-order\": \"warn\",\n },\n },\n\n // react config\n eslintPluginReact.configs.flat.recommended,\n eslintPluginReactRefresh.configs.recommended,\n {\n files: [\"**/*.{js,jsx,mjs,cjs,ts,tsx}\"],\n plugins: {\n \"react-hooks\": eslintPluginReactHooks,\n },\n rules: {\n \"react/react-in-jsx-scope\": \"off\",\n ...eslintPluginReactHooks.configs.recommended.rules,\n },\n },\n\n // default ignore config\n {\n ignores: [\n \"dist/**\",\n \"node_modules/**\",\n \"build/**\",\n \"coverage/**\",\n \"**/*.test.ts\",\n \"**/*.test.tsx\",\n \"eslint.config.mjs\",\n \"example/**\",\n ],\n }\n);\n"],"names":[],"mappings":";;;;;;;;;;;AASA,YAAe,QAAQ,CAAC,MAAM;AAC9B,EAAE,MAAM,CAAC,OAAO,CAAC,WAAW;;AAE5B;AACA,EAAE,QAAQ,CAAC,OAAO,CAAC,iBAAiB;AACpC,EAAE,QAAQ,CAAC,OAAO,CAAC,oBAAoB;AACvC,EAAE;AACF,IAAI,eAAe,EAAE;AACrB,MAAM,aAAa,EAAE;AACrB,QAAQ,cAAc,EAAE,IAAI;AAC5B,QAAQ,eAAe,EAAE,SAAmB;AAC5C,OAAO;AACP,KAAK;AACL,GAAG;;AAEH;AACA,EAAE,+BAA+B;AACjC,EAAE,oBAAoB;AACtB,EAAE;AACF,IAAI,KAAK,EAAE;AACX;AACA,MAAM,mBAAmB,EAAE,MAAM;AACjC,KAAK;AACL,GAAG;;AAEH;AACA,EAAE,uBAAuB,CAAC,OAAO,CAAC,kBAAkB,CAAC;AACrD,EAAE;AACF,IAAI,KAAK,EAAE;AACX,MAAM,iCAAiC,EAAE,MAAM;AAC/C,MAAM,gCAAgC,EAAE,MAAM;AAC9C,MAAM,8BAA8B,EAAE,MAAM;AAC5C,KAAK;AACL,GAAG;;AAEH;AACA,EAAE,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW;AAC5C,EAAE,wBAAwB,CAAC,OAAO,CAAC,WAAW;AAC9C,EAAE;AACF,IAAI,KAAK,EAAE,CAAC,8BAA8B,CAAC;AAC3C,IAAI,OAAO,EAAE;AACb,MAAM,aAAa,EAAE,sBAAsB;AAC3C,KAAK;AACL,IAAI,KAAK,EAAE;AACX,MAAM,0BAA0B,EAAE,KAAK;AACvC,MAAM,GAAG,sBAAsB,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK;AACzD,KAAK;AACL,GAAG;;AAEH;AACA,EAAE;AACF,IAAI,OAAO,EAAE;AACb,MAAM,SAAS;AACf,MAAM,iBAAiB;AACvB,MAAM,UAAU;AAChB,MAAM,aAAa;AACnB,MAAM,cAAc;AACpB,MAAM,eAAe;AACrB,MAAM,mBAAmB;AACzB,MAAM,YAAY;AAClB,KAAK;AACL;AACA,CAAC;;;;"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import eslint from '@eslint/js';
|
|
2
|
+
import eslintConfigPrettier from 'eslint-config-prettier';
|
|
3
|
+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
|
|
4
|
+
import eslintPluginReact from 'eslint-plugin-react';
|
|
5
|
+
import eslintPluginReactHooks from 'eslint-plugin-react-hooks';
|
|
6
|
+
import eslintPluginReactRefresh from 'eslint-plugin-react-refresh';
|
|
7
|
+
import eslintPluginTailwindcss from 'eslint-plugin-tailwindcss';
|
|
8
|
+
import tseslint from 'typescript-eslint';
|
|
9
|
+
|
|
10
|
+
var index = tseslint.config(
|
|
11
|
+
eslint.configs.recommended,
|
|
12
|
+
|
|
13
|
+
// typescript config
|
|
14
|
+
tseslint.configs.strictTypeChecked,
|
|
15
|
+
tseslint.configs.stylisticTypeChecked,
|
|
16
|
+
{
|
|
17
|
+
languageOptions: {
|
|
18
|
+
parserOptions: {
|
|
19
|
+
projectService: true,
|
|
20
|
+
tsconfigRootDir: import.meta.dirname,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
// prettier config
|
|
26
|
+
eslintPluginPrettierRecommended,
|
|
27
|
+
eslintConfigPrettier,
|
|
28
|
+
{
|
|
29
|
+
rules: {
|
|
30
|
+
/* prettier 설정 경고 처리 */
|
|
31
|
+
"prettier/prettier": "warn",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
// tailwindcss config
|
|
36
|
+
eslintPluginTailwindcss.configs["flat/recommended"],
|
|
37
|
+
{
|
|
38
|
+
rules: {
|
|
39
|
+
"tailwindcss/no-custom-classname": "warn",
|
|
40
|
+
"tailwindcss/enforces-shorthand": "warn",
|
|
41
|
+
"tailwindcss/classnames-order": "warn",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
// react config
|
|
46
|
+
eslintPluginReact.configs.flat.recommended,
|
|
47
|
+
eslintPluginReactRefresh.configs.recommended,
|
|
48
|
+
{
|
|
49
|
+
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx}"],
|
|
50
|
+
plugins: {
|
|
51
|
+
"react-hooks": eslintPluginReactHooks,
|
|
52
|
+
},
|
|
53
|
+
rules: {
|
|
54
|
+
"react/react-in-jsx-scope": "off",
|
|
55
|
+
...eslintPluginReactHooks.configs.recommended.rules,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
// default ignore config
|
|
60
|
+
{
|
|
61
|
+
ignores: [
|
|
62
|
+
"dist/**",
|
|
63
|
+
"node_modules/**",
|
|
64
|
+
"build/**",
|
|
65
|
+
"coverage/**",
|
|
66
|
+
"**/*.test.ts",
|
|
67
|
+
"**/*.test.tsx",
|
|
68
|
+
"eslint.config.mjs",
|
|
69
|
+
"example/**",
|
|
70
|
+
],
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
export { index as default };
|
|
75
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../index.mjs"],"sourcesContent":["import eslint from \"@eslint/js\";\nimport eslintConfigPrettier from \"eslint-config-prettier\";\nimport eslintPluginPrettierRecommended from \"eslint-plugin-prettier/recommended\";\nimport eslintPluginReact from \"eslint-plugin-react\";\nimport eslintPluginReactHooks from \"eslint-plugin-react-hooks\";\nimport eslintPluginReactRefresh from \"eslint-plugin-react-refresh\";\nimport eslintPluginTailwindcss from \"eslint-plugin-tailwindcss\";\nimport tseslint from \"typescript-eslint\";\n\nexport default tseslint.config(\n eslint.configs.recommended,\n\n // typescript config\n tseslint.configs.strictTypeChecked,\n tseslint.configs.stylisticTypeChecked,\n {\n languageOptions: {\n parserOptions: {\n projectService: true,\n tsconfigRootDir: import.meta.dirname,\n },\n },\n },\n\n // prettier config\n eslintPluginPrettierRecommended,\n eslintConfigPrettier,\n {\n rules: {\n /* prettier 설정 경고 처리 */\n \"prettier/prettier\": \"warn\",\n },\n },\n\n // tailwindcss config\n eslintPluginTailwindcss.configs[\"flat/recommended\"],\n {\n rules: {\n \"tailwindcss/no-custom-classname\": \"warn\",\n \"tailwindcss/enforces-shorthand\": \"warn\",\n \"tailwindcss/classnames-order\": \"warn\",\n },\n },\n\n // react config\n eslintPluginReact.configs.flat.recommended,\n eslintPluginReactRefresh.configs.recommended,\n {\n files: [\"**/*.{js,jsx,mjs,cjs,ts,tsx}\"],\n plugins: {\n \"react-hooks\": eslintPluginReactHooks,\n },\n rules: {\n \"react/react-in-jsx-scope\": \"off\",\n ...eslintPluginReactHooks.configs.recommended.rules,\n },\n },\n\n // default ignore config\n {\n ignores: [\n \"dist/**\",\n \"node_modules/**\",\n \"build/**\",\n \"coverage/**\",\n \"**/*.test.ts\",\n \"**/*.test.tsx\",\n \"eslint.config.mjs\",\n \"example/**\",\n ],\n }\n);\n"],"names":[],"mappings":";;;;;;;;;AASA,YAAe,QAAQ,CAAC,MAAM;AAC9B,EAAE,MAAM,CAAC,OAAO,CAAC,WAAW;;AAE5B;AACA,EAAE,QAAQ,CAAC,OAAO,CAAC,iBAAiB;AACpC,EAAE,QAAQ,CAAC,OAAO,CAAC,oBAAoB;AACvC,EAAE;AACF,IAAI,eAAe,EAAE;AACrB,MAAM,aAAa,EAAE;AACrB,QAAQ,cAAc,EAAE,IAAI;AAC5B,QAAQ,eAAe,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO;AAC5C,OAAO;AACP,KAAK;AACL,GAAG;;AAEH;AACA,EAAE,+BAA+B;AACjC,EAAE,oBAAoB;AACtB,EAAE;AACF,IAAI,KAAK,EAAE;AACX;AACA,MAAM,mBAAmB,EAAE,MAAM;AACjC,KAAK;AACL,GAAG;;AAEH;AACA,EAAE,uBAAuB,CAAC,OAAO,CAAC,kBAAkB,CAAC;AACrD,EAAE;AACF,IAAI,KAAK,EAAE;AACX,MAAM,iCAAiC,EAAE,MAAM;AAC/C,MAAM,gCAAgC,EAAE,MAAM;AAC9C,MAAM,8BAA8B,EAAE,MAAM;AAC5C,KAAK;AACL,GAAG;;AAEH;AACA,EAAE,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW;AAC5C,EAAE,wBAAwB,CAAC,OAAO,CAAC,WAAW;AAC9C,EAAE;AACF,IAAI,KAAK,EAAE,CAAC,8BAA8B,CAAC;AAC3C,IAAI,OAAO,EAAE;AACb,MAAM,aAAa,EAAE,sBAAsB;AAC3C,KAAK;AACL,IAAI,KAAK,EAAE;AACX,MAAM,0BAA0B,EAAE,KAAK;AACvC,MAAM,GAAG,sBAAsB,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK;AACzD,KAAK;AACL,GAAG;;AAEH;AACA,EAAE;AACF,IAAI,OAAO,EAAE;AACb,MAAM,SAAS;AACf,MAAM,iBAAiB;AACvB,MAAM,UAAU;AAChB,MAAM,aAAa;AACnB,MAAM,cAAc;AACpB,MAAM,eAAe;AACrB,MAAM,mBAAmB;AACzB,MAAM,YAAY;AAClB,KAAK;AACL;AACA,CAAC;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var eslint = require('@eslint/js');
|
|
6
4
|
var eslintConfigPrettier = require('eslint-config-prettier');
|
|
7
5
|
var eslintPluginPrettierRecommended = require('eslint-plugin-prettier/recommended');
|
|
@@ -11,12 +9,23 @@ var eslintPluginReactRefresh = require('eslint-plugin-react-refresh');
|
|
|
11
9
|
var eslintPluginTailwindcss = require('eslint-plugin-tailwindcss');
|
|
12
10
|
var tseslint = require('typescript-eslint');
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
|
|
14
|
+
var eslint__default = /*#__PURE__*/_interopDefault(eslint);
|
|
15
|
+
var eslintConfigPrettier__default = /*#__PURE__*/_interopDefault(eslintConfigPrettier);
|
|
16
|
+
var eslintPluginPrettierRecommended__default = /*#__PURE__*/_interopDefault(eslintPluginPrettierRecommended);
|
|
17
|
+
var eslintPluginReact__default = /*#__PURE__*/_interopDefault(eslintPluginReact);
|
|
18
|
+
var eslintPluginReactHooks__default = /*#__PURE__*/_interopDefault(eslintPluginReactHooks);
|
|
19
|
+
var eslintPluginReactRefresh__default = /*#__PURE__*/_interopDefault(eslintPluginReactRefresh);
|
|
20
|
+
var eslintPluginTailwindcss__default = /*#__PURE__*/_interopDefault(eslintPluginTailwindcss);
|
|
21
|
+
var tseslint__default = /*#__PURE__*/_interopDefault(tseslint);
|
|
22
|
+
|
|
23
|
+
var index = tseslint__default.default.config(
|
|
24
|
+
eslint__default.default.configs.recommended,
|
|
16
25
|
|
|
17
26
|
// typescript config
|
|
18
|
-
|
|
19
|
-
|
|
27
|
+
tseslint__default.default.configs.strictTypeChecked,
|
|
28
|
+
tseslint__default.default.configs.stylisticTypeChecked,
|
|
20
29
|
{
|
|
21
30
|
languageOptions: {
|
|
22
31
|
parserOptions: {
|
|
@@ -27,8 +36,8 @@ var index = tseslint.config(
|
|
|
27
36
|
},
|
|
28
37
|
|
|
29
38
|
// prettier config
|
|
30
|
-
|
|
31
|
-
|
|
39
|
+
eslintPluginPrettierRecommended__default.default,
|
|
40
|
+
eslintConfigPrettier__default.default,
|
|
32
41
|
{
|
|
33
42
|
rules: {
|
|
34
43
|
/* prettier 설정 경고 처리 */
|
|
@@ -37,7 +46,7 @@ var index = tseslint.config(
|
|
|
37
46
|
},
|
|
38
47
|
|
|
39
48
|
// tailwindcss config
|
|
40
|
-
|
|
49
|
+
eslintPluginTailwindcss__default.default.configs["flat/recommended"],
|
|
41
50
|
{
|
|
42
51
|
rules: {
|
|
43
52
|
"tailwindcss/no-custom-classname": "warn",
|
|
@@ -47,16 +56,16 @@ var index = tseslint.config(
|
|
|
47
56
|
},
|
|
48
57
|
|
|
49
58
|
// react config
|
|
50
|
-
|
|
51
|
-
|
|
59
|
+
eslintPluginReact__default.default.configs.flat.recommended,
|
|
60
|
+
eslintPluginReactRefresh__default.default.configs.recommended,
|
|
52
61
|
{
|
|
53
62
|
files: ["**/*.{js,jsx,mjs,cjs,ts,tsx}"],
|
|
54
63
|
plugins: {
|
|
55
|
-
"react-hooks":
|
|
64
|
+
"react-hooks": eslintPluginReactHooks__default.default,
|
|
56
65
|
},
|
|
57
66
|
rules: {
|
|
58
67
|
"react/react-in-jsx-scope": "off",
|
|
59
|
-
...
|
|
68
|
+
...eslintPluginReactHooks__default.default.configs.recommended.rules,
|
|
60
69
|
},
|
|
61
70
|
},
|
|
62
71
|
|
|
@@ -75,5 +84,5 @@ var index = tseslint.config(
|
|
|
75
84
|
}
|
|
76
85
|
);
|
|
77
86
|
|
|
78
|
-
exports
|
|
87
|
+
module.exports = index;
|
|
79
88
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../index.mjs"],"sourcesContent":["import eslint from \"@eslint/js\";\nimport eslintConfigPrettier from \"eslint-config-prettier\";\nimport eslintPluginPrettierRecommended from \"eslint-plugin-prettier/recommended\";\nimport eslintPluginReact from \"eslint-plugin-react\";\nimport eslintPluginReactHooks from \"eslint-plugin-react-hooks\";\nimport eslintPluginReactRefresh from \"eslint-plugin-react-refresh\";\nimport eslintPluginTailwindcss from \"eslint-plugin-tailwindcss\";\nimport tseslint from \"typescript-eslint\";\n\nexport default tseslint.config(\n eslint.configs.recommended,\n\n // typescript config\n tseslint.configs.strictTypeChecked,\n tseslint.configs.stylisticTypeChecked,\n {\n languageOptions: {\n parserOptions: {\n projectService: true,\n tsconfigRootDir: import.meta.dirname,\n },\n },\n },\n\n // prettier config\n eslintPluginPrettierRecommended,\n eslintConfigPrettier,\n {\n rules: {\n /* prettier 설정 경고 처리 */\n \"prettier/prettier\": \"warn\",\n },\n },\n\n // tailwindcss config\n eslintPluginTailwindcss.configs[\"flat/recommended\"],\n {\n rules: {\n \"tailwindcss/no-custom-classname\": \"warn\",\n \"tailwindcss/enforces-shorthand\": \"warn\",\n \"tailwindcss/classnames-order\": \"warn\",\n },\n },\n\n // react config\n eslintPluginReact.configs.flat.recommended,\n eslintPluginReactRefresh.configs.recommended,\n {\n files: [\"**/*.{js,jsx,mjs,cjs,ts,tsx}\"],\n plugins: {\n \"react-hooks\": eslintPluginReactHooks,\n },\n rules: {\n \"react/react-in-jsx-scope\": \"off\",\n ...eslintPluginReactHooks.configs.recommended.rules,\n },\n },\n\n // default ignore config\n {\n ignores: [\n \"dist/**\",\n \"node_modules/**\",\n \"build/**\",\n \"coverage/**\",\n \"**/*.test.ts\",\n \"**/*.test.tsx\",\n \"eslint.config.mjs\",\n \"example/**\",\n ],\n }\n);\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../index.mjs"],"sourcesContent":["import eslint from \"@eslint/js\";\nimport eslintConfigPrettier from \"eslint-config-prettier\";\nimport eslintPluginPrettierRecommended from \"eslint-plugin-prettier/recommended\";\nimport eslintPluginReact from \"eslint-plugin-react\";\nimport eslintPluginReactHooks from \"eslint-plugin-react-hooks\";\nimport eslintPluginReactRefresh from \"eslint-plugin-react-refresh\";\nimport eslintPluginTailwindcss from \"eslint-plugin-tailwindcss\";\nimport tseslint from \"typescript-eslint\";\n\nexport default tseslint.config(\n eslint.configs.recommended,\n\n // typescript config\n tseslint.configs.strictTypeChecked,\n tseslint.configs.stylisticTypeChecked,\n {\n languageOptions: {\n parserOptions: {\n projectService: true,\n tsconfigRootDir: import.meta.dirname,\n },\n },\n },\n\n // prettier config\n eslintPluginPrettierRecommended,\n eslintConfigPrettier,\n {\n rules: {\n /* prettier 설정 경고 처리 */\n \"prettier/prettier\": \"warn\",\n },\n },\n\n // tailwindcss config\n eslintPluginTailwindcss.configs[\"flat/recommended\"],\n {\n rules: {\n \"tailwindcss/no-custom-classname\": \"warn\",\n \"tailwindcss/enforces-shorthand\": \"warn\",\n \"tailwindcss/classnames-order\": \"warn\",\n },\n },\n\n // react config\n eslintPluginReact.configs.flat.recommended,\n eslintPluginReactRefresh.configs.recommended,\n {\n files: [\"**/*.{js,jsx,mjs,cjs,ts,tsx}\"],\n plugins: {\n \"react-hooks\": eslintPluginReactHooks,\n },\n rules: {\n \"react/react-in-jsx-scope\": \"off\",\n ...eslintPluginReactHooks.configs.recommended.rules,\n },\n },\n\n // default ignore config\n {\n ignores: [\n \"dist/**\",\n \"node_modules/**\",\n \"build/**\",\n \"coverage/**\",\n \"**/*.test.ts\",\n \"**/*.test.tsx\",\n \"eslint.config.mjs\",\n \"example/**\",\n ],\n }\n);\n"],"names":["tseslint","eslint","eslintPluginPrettierRecommended","eslintConfigPrettier","eslintPluginTailwindcss","eslintPluginReact","eslintPluginReactRefresh","eslintPluginReactHooks"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AASA,YAAeA,yBAAQ,CAAC,MAAM;AAC9B,EAAEC,uBAAM,CAAC,OAAO,CAAC,WAAW;;AAE5B;AACA,EAAED,yBAAQ,CAAC,OAAO,CAAC,iBAAiB;AACpC,EAAEA,yBAAQ,CAAC,OAAO,CAAC,oBAAoB;AACvC,EAAE;AACF,IAAI,eAAe,EAAE;AACrB,MAAM,aAAa,EAAE;AACrB,QAAQ,cAAc,EAAE,IAAI;AAC5B,QAAQ,eAAe,EAAE,SAAmB;AAC5C,OAAO;AACP,KAAK;AACL,GAAG;;AAEH;AACA,EAAEE,gDAA+B;AACjC,EAAEC,qCAAoB;AACtB,EAAE;AACF,IAAI,KAAK,EAAE;AACX;AACA,MAAM,mBAAmB,EAAE,MAAM;AACjC,KAAK;AACL,GAAG;;AAEH;AACA,EAAEC,wCAAuB,CAAC,OAAO,CAAC,kBAAkB,CAAC;AACrD,EAAE;AACF,IAAI,KAAK,EAAE;AACX,MAAM,iCAAiC,EAAE,MAAM;AAC/C,MAAM,gCAAgC,EAAE,MAAM;AAC9C,MAAM,8BAA8B,EAAE,MAAM;AAC5C,KAAK;AACL,GAAG;;AAEH;AACA,EAAEC,kCAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW;AAC5C,EAAEC,yCAAwB,CAAC,OAAO,CAAC,WAAW;AAC9C,EAAE;AACF,IAAI,KAAK,EAAE,CAAC,8BAA8B,CAAC;AAC3C,IAAI,OAAO,EAAE;AACb,MAAM,aAAa,EAAEC,uCAAsB;AAC3C,KAAK;AACL,IAAI,KAAK,EAAE;AACX,MAAM,0BAA0B,EAAE,KAAK;AACvC,MAAM,GAAGA,uCAAsB,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK;AACzD,KAAK;AACL,GAAG;;AAEH;AACA,EAAE;AACF,IAAI,OAAO,EAAE;AACb,MAAM,SAAS;AACf,MAAM,iBAAiB;AACvB,MAAM,UAAU;AAChB,MAAM,aAAa;AACnB,MAAM,cAAc;AACpB,MAAM,eAAe;AACrB,MAAM,mBAAmB;AACzB,MAAM,YAAY;AAClB,KAAK;AACL;AACA,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telepix-lab/eslint-config",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Telepix ESLint configuration",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
5
|
"type": "module",
|
|
6
|
+
"main": "./dist/cjs/index.js",
|
|
7
|
+
"module": "./dist/esm/index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/esm/index.js",
|
|
11
|
+
"require": "./dist/cjs/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
7
14
|
"files": [
|
|
8
15
|
"dist"
|
|
9
16
|
],
|