@telepix-lab/eslint-config 0.0.7 → 0.0.8

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 CHANGED
@@ -27,16 +27,6 @@ var index = tseslint.config(
27
27
  },
28
28
  },
29
29
 
30
- // prettier config
31
- eslintPluginPrettierRecommended,
32
- eslintConfigPrettier,
33
- {
34
- rules: {
35
- /* prettier 설정 경고 처리 */
36
- "prettier/prettier": "warn",
37
- },
38
- },
39
-
40
30
  // tailwindcss config
41
31
  ...eslintPluginTailwindcss.configs["flat/recommended"],
42
32
  {
@@ -47,6 +37,16 @@ var index = tseslint.config(
47
37
  },
48
38
  },
49
39
 
40
+ // prettier config
41
+ eslintPluginPrettierRecommended,
42
+ eslintConfigPrettier,
43
+ {
44
+ rules: {
45
+ /* prettier 설정 경고 처리 */
46
+ "prettier/prettier": "warn",
47
+ },
48
+ },
49
+
50
50
  // react config
51
51
  eslintPluginReact.configs.flat.recommended,
52
52
  eslintPluginReact.configs.flat["jsx-runtime"],
@@ -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 globals from \"globals\";\nimport tseslint from \"typescript-eslint\";\n\nexport default tseslint.config(\n eslint.configs.recommended,\n\n {\n files: [\"**/*.ts\", \"**/*.tsx\"],\n extends: [\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 eslintPluginReact.configs.flat[\"jsx-runtime\"],\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 languageOptions: {\n globals: {\n ...globals.browser,\n },\n },\n settings: {\n react: {\n createClass: \"createReactClass\", // Regex for Component Factory to use,\n // default to \"createReactClass\"\n pragma: \"React\", // Pragma to use, default to \"React\"\n fragment: \"Fragment\", // Fragment to use (may be a property of <pragma>), default to \"Fragment\"\n version: \"detect\", // React version. \"detect\" automatically picks the version you have installed.\n // You can also use `16.0`, `16.3`, etc, if you want to override the detected value.\n // Defaults to the \"defaultVersion\" setting and warns if missing, and to \"detect\" in the future\n defaultVersion: \"\", // Default React version to use when the version you have installed cannot be detected.\n // If not provided, defaults to the latest React version.\n flowVersion: \"0.53\", // Flow version\n },\n propWrapperFunctions: [\n // The names of any function used to wrap propTypes, e.g. `forbidExtraProps`. If this isn't set, any propTypes wrapped in a function will be skipped.\n \"forbidExtraProps\",\n { property: \"freeze\", object: \"Object\" },\n { property: \"myFavoriteWrapper\" },\n // for rules that check exact prop wrappers\n { property: \"forbidExtraProps\", exact: true },\n ],\n componentWrapperFunctions: [\n // The name of any function used to wrap components, e.g. Mobx `observer` function. If this isn't set, components wrapped by these functions will be skipped.\n \"observer\", // `property`\n { property: \"styled\" }, // `object` is optional\n { property: \"observer\", object: \"Mobx\" },\n { property: \"observer\", object: \"<pragma>\" }, // sets `object` to whatever value `settings.react.pragma` is set to\n ],\n formComponents: [\n // Components used as alternatives to <form> for forms, eg. <Form endpoint={ url } />\n \"CustomForm\",\n { name: \"SimpleForm\", formAttribute: \"endpoint\" },\n { name: \"Form\", formAttribute: [\"registerEndpoint\", \"loginEndpoint\"] }, // allows specifying multiple properties if necessary\n ],\n linkComponents: [\n // Components used as alternatives to <a> for linking, eg. <Link to={ url } />\n \"Hyperlink\",\n { name: \"MyLink\", linkAttribute: \"to\" },\n { name: \"Link\", linkAttribute: [\"to\", \"href\"] }, // allows specifying multiple properties if necessary\n ],\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":";;;;;;;;;;;;AAUA,YAAe,QAAQ,CAAC,MAAM;AAC9B,EAAE,MAAM,CAAC,OAAO,CAAC,WAAW;;AAE5B,EAAE;AACF,IAAI,KAAK,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;AAClC,IAAI,OAAO,EAAE;AACb,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,iBAAiB;AAC3C,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,oBAAoB;AAC9C,KAAK;AACL,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,GAAG,uBAAuB,CAAC,OAAO,CAAC,kBAAkB,CA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,MAAM,yBAAyB,EAAE;AACjC;AACA,QAAQ,UAAU;AAClB,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE;AAC9B,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE;AAChD,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE;AACpD,OAAO;AACP,MAAM,cAAc,EAAE;AACtB;AACA,QAAQ,YAAY;AACpB,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE;AACzD,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,kBAAkB,EAAE,eAAe,CAAC,EAAE;AAC9E,OAAO;AACP,MAAM,cAAc,EAAE;AACtB;AACA,QAAQ,WAAW;AACnB,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE;AAC/C,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE;AACvD,OAAO;AACP,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;;;;"}
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 globals from \"globals\";\nimport tseslint from \"typescript-eslint\";\n\nexport default tseslint.config(\n eslint.configs.recommended,\n\n {\n files: [\"**/*.ts\", \"**/*.tsx\"],\n extends: [\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 // 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 // prettier config\n eslintPluginPrettierRecommended,\n eslintConfigPrettier,\n {\n rules: {\n /* prettier 설정 경고 처리 */\n \"prettier/prettier\": \"warn\",\n },\n },\n\n // react config\n eslintPluginReact.configs.flat.recommended,\n eslintPluginReact.configs.flat[\"jsx-runtime\"],\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 languageOptions: {\n globals: {\n ...globals.browser,\n },\n },\n settings: {\n react: {\n createClass: \"createReactClass\", // Regex for Component Factory to use,\n // default to \"createReactClass\"\n pragma: \"React\", // Pragma to use, default to \"React\"\n fragment: \"Fragment\", // Fragment to use (may be a property of <pragma>), default to \"Fragment\"\n version: \"detect\", // React version. \"detect\" automatically picks the version you have installed.\n // You can also use `16.0`, `16.3`, etc, if you want to override the detected value.\n // Defaults to the \"defaultVersion\" setting and warns if missing, and to \"detect\" in the future\n defaultVersion: \"\", // Default React version to use when the version you have installed cannot be detected.\n // If not provided, defaults to the latest React version.\n flowVersion: \"0.53\", // Flow version\n },\n propWrapperFunctions: [\n // The names of any function used to wrap propTypes, e.g. `forbidExtraProps`. If this isn't set, any propTypes wrapped in a function will be skipped.\n \"forbidExtraProps\",\n { property: \"freeze\", object: \"Object\" },\n { property: \"myFavoriteWrapper\" },\n // for rules that check exact prop wrappers\n { property: \"forbidExtraProps\", exact: true },\n ],\n componentWrapperFunctions: [\n // The name of any function used to wrap components, e.g. Mobx `observer` function. If this isn't set, components wrapped by these functions will be skipped.\n \"observer\", // `property`\n { property: \"styled\" }, // `object` is optional\n { property: \"observer\", object: \"Mobx\" },\n { property: \"observer\", object: \"<pragma>\" }, // sets `object` to whatever value `settings.react.pragma` is set to\n ],\n formComponents: [\n // Components used as alternatives to <form> for forms, eg. <Form endpoint={ url } />\n \"CustomForm\",\n { name: \"SimpleForm\", formAttribute: \"endpoint\" },\n { name: \"Form\", formAttribute: [\"registerEndpoint\", \"loginEndpoint\"] }, // allows specifying multiple properties if necessary\n ],\n linkComponents: [\n // Components used as alternatives to <a> for linking, eg. <Link to={ url } />\n \"Hyperlink\",\n { name: \"MyLink\", linkAttribute: \"to\" },\n { name: \"Link\", linkAttribute: [\"to\", \"href\"] }, // allows specifying multiple properties if necessary\n ],\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":";;;;;;;;;;;;AAUA,YAAe,QAAQ,CAAC,MAAM;AAC9B,EAAE,MAAM,CAAC,OAAO,CAAC,WAAW;;AAE5B,EAAE;AACF,IAAI,KAAK,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;AAClC,IAAI,OAAO,EAAE;AACb,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,iBAAiB;AAC3C,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,oBAAoB;AAC9C,KAAK;AACL,IAAI,eAAe,EAAE;AACrB,MAAM,aAAa,EAAE;AACrB,QAAQ,cAAc,EAAE,IAAI;AAC5B,QAAQ,eA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(
25
25
  },
26
26
  },
27
27
 
28
- // prettier config
29
- eslintPluginPrettierRecommended,
30
- eslintConfigPrettier,
31
- {
32
- rules: {
33
- /* prettier 설정 경고 처리 */
34
- "prettier/prettier": "warn",
35
- },
36
- },
37
-
38
28
  // tailwindcss config
39
29
  ...eslintPluginTailwindcss.configs["flat/recommended"],
40
30
  {
@@ -45,6 +35,16 @@ var index = tseslint.config(
45
35
  },
46
36
  },
47
37
 
38
+ // prettier config
39
+ eslintPluginPrettierRecommended,
40
+ eslintConfigPrettier,
41
+ {
42
+ rules: {
43
+ /* prettier 설정 경고 처리 */
44
+ "prettier/prettier": "warn",
45
+ },
46
+ },
47
+
48
48
  // react config
49
49
  eslintPluginReact.configs.flat.recommended,
50
50
  eslintPluginReact.configs.flat["jsx-runtime"],
@@ -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 globals from \"globals\";\nimport tseslint from \"typescript-eslint\";\n\nexport default tseslint.config(\n eslint.configs.recommended,\n\n {\n files: [\"**/*.ts\", \"**/*.tsx\"],\n extends: [\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 eslintPluginReact.configs.flat[\"jsx-runtime\"],\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 languageOptions: {\n globals: {\n ...globals.browser,\n },\n },\n settings: {\n react: {\n createClass: \"createReactClass\", // Regex for Component Factory to use,\n // default to \"createReactClass\"\n pragma: \"React\", // Pragma to use, default to \"React\"\n fragment: \"Fragment\", // Fragment to use (may be a property of <pragma>), default to \"Fragment\"\n version: \"detect\", // React version. \"detect\" automatically picks the version you have installed.\n // You can also use `16.0`, `16.3`, etc, if you want to override the detected value.\n // Defaults to the \"defaultVersion\" setting and warns if missing, and to \"detect\" in the future\n defaultVersion: \"\", // Default React version to use when the version you have installed cannot be detected.\n // If not provided, defaults to the latest React version.\n flowVersion: \"0.53\", // Flow version\n },\n propWrapperFunctions: [\n // The names of any function used to wrap propTypes, e.g. `forbidExtraProps`. If this isn't set, any propTypes wrapped in a function will be skipped.\n \"forbidExtraProps\",\n { property: \"freeze\", object: \"Object\" },\n { property: \"myFavoriteWrapper\" },\n // for rules that check exact prop wrappers\n { property: \"forbidExtraProps\", exact: true },\n ],\n componentWrapperFunctions: [\n // The name of any function used to wrap components, e.g. Mobx `observer` function. If this isn't set, components wrapped by these functions will be skipped.\n \"observer\", // `property`\n { property: \"styled\" }, // `object` is optional\n { property: \"observer\", object: \"Mobx\" },\n { property: \"observer\", object: \"<pragma>\" }, // sets `object` to whatever value `settings.react.pragma` is set to\n ],\n formComponents: [\n // Components used as alternatives to <form> for forms, eg. <Form endpoint={ url } />\n \"CustomForm\",\n { name: \"SimpleForm\", formAttribute: \"endpoint\" },\n { name: \"Form\", formAttribute: [\"registerEndpoint\", \"loginEndpoint\"] }, // allows specifying multiple properties if necessary\n ],\n linkComponents: [\n // Components used as alternatives to <a> for linking, eg. <Link to={ url } />\n \"Hyperlink\",\n { name: \"MyLink\", linkAttribute: \"to\" },\n { name: \"Link\", linkAttribute: [\"to\", \"href\"] }, // allows specifying multiple properties if necessary\n ],\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":";;;;;;;;;;AAUA,YAAe,QAAQ,CAAC,MAAM;AAC9B,EAAE,MAAM,CAAC,OAAO,CAAC,WAAW;;AAE5B,EAAE;AACF,IAAI,KAAK,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;AAClC,IAAI,OAAO,EAAE;AACb,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,iBAAiB;AAC3C,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,oBAAoB;AAC9C,KAAK;AACL,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,GAAG,uBAAuB,CAAC,OAAO,CAAC,kBAAkB,CAAC;AACxD,EAAE;AACF,IAAI,KAAK,EAAE;AACX,MAAM,iCAAiC,EAAE,MAAM;AAC/C,MAAM,gCAAgC,EAAE,MAAM;AAC9C,MAAM,8BAA8B,EAAE,MAAM;AAC5C,KAA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,MAAM,EAAE;AAChD,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE;AACpD,OAAO;AACP,MAAM,cAAc,EAAE;AACtB;AACA,QAAQ,YAAY;AACpB,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE;AACzD,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,kBAAkB,EAAE,eAAe,CAAC,EAAE;AAC9E,OAAO;AACP,MAAM,cAAc,EAAE;AACtB;AACA,QAAQ,WAAW;AACnB,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE;AAC/C,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE;AACvD,OAAO;AACP,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;;;;"}
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 globals from \"globals\";\nimport tseslint from \"typescript-eslint\";\n\nexport default tseslint.config(\n eslint.configs.recommended,\n\n {\n files: [\"**/*.ts\", \"**/*.tsx\"],\n extends: [\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 // 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 // prettier config\n eslintPluginPrettierRecommended,\n eslintConfigPrettier,\n {\n rules: {\n /* prettier 설정 경고 처리 */\n \"prettier/prettier\": \"warn\",\n },\n },\n\n // react config\n eslintPluginReact.configs.flat.recommended,\n eslintPluginReact.configs.flat[\"jsx-runtime\"],\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 languageOptions: {\n globals: {\n ...globals.browser,\n },\n },\n settings: {\n react: {\n createClass: \"createReactClass\", // Regex for Component Factory to use,\n // default to \"createReactClass\"\n pragma: \"React\", // Pragma to use, default to \"React\"\n fragment: \"Fragment\", // Fragment to use (may be a property of <pragma>), default to \"Fragment\"\n version: \"detect\", // React version. \"detect\" automatically picks the version you have installed.\n // You can also use `16.0`, `16.3`, etc, if you want to override the detected value.\n // Defaults to the \"defaultVersion\" setting and warns if missing, and to \"detect\" in the future\n defaultVersion: \"\", // Default React version to use when the version you have installed cannot be detected.\n // If not provided, defaults to the latest React version.\n flowVersion: \"0.53\", // Flow version\n },\n propWrapperFunctions: [\n // The names of any function used to wrap propTypes, e.g. `forbidExtraProps`. If this isn't set, any propTypes wrapped in a function will be skipped.\n \"forbidExtraProps\",\n { property: \"freeze\", object: \"Object\" },\n { property: \"myFavoriteWrapper\" },\n // for rules that check exact prop wrappers\n { property: \"forbidExtraProps\", exact: true },\n ],\n componentWrapperFunctions: [\n // The name of any function used to wrap components, e.g. Mobx `observer` function. If this isn't set, components wrapped by these functions will be skipped.\n \"observer\", // `property`\n { property: \"styled\" }, // `object` is optional\n { property: \"observer\", object: \"Mobx\" },\n { property: \"observer\", object: \"<pragma>\" }, // sets `object` to whatever value `settings.react.pragma` is set to\n ],\n formComponents: [\n // Components used as alternatives to <form> for forms, eg. <Form endpoint={ url } />\n \"CustomForm\",\n { name: \"SimpleForm\", formAttribute: \"endpoint\" },\n { name: \"Form\", formAttribute: [\"registerEndpoint\", \"loginEndpoint\"] }, // allows specifying multiple properties if necessary\n ],\n linkComponents: [\n // Components used as alternatives to <a> for linking, eg. <Link to={ url } />\n \"Hyperlink\",\n { name: \"MyLink\", linkAttribute: \"to\" },\n { name: \"Link\", linkAttribute: [\"to\", \"href\"] }, // allows specifying multiple properties if necessary\n ],\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":";;;;;;;;;;AAUA,YAAe,QAAQ,CAAC,MAAM;AAC9B,EAAE,MAAM,CAAC,OAAO,CAAC,WAAW;;AAE5B,EAAE;AACF,IAAI,KAAK,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;AAClC,IAAI,OAAO,EAAE;AACb,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,iBAAiB;AAC3C,MAAM,GAAG,QAAQ,CAAC,OAAO,CAAC,oBAAoB;AAC9C,KAAK;AACL,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,GAAG,uBAAuB,CAAC,OAAO,CAAC,kBAAkB,CAAC;AACxD,EAAE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,EAAE,QAAQ,EAAE,mBAAmB,EAAE;AACzC;AACA,QAAQ,EAAE,QAAQ,EAAE,kBAAkB,EAAE,KAAK,EAAE,IAAI,EAAE;AACrD,OAAO;AACP,MAAM,yBAAyB,EAAE;AACjC;AACA,QAAQ,UAAU;AAClB,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE;AAC9B,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE;AAChD,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE;AACpD,OAAO;AACP,MAAM,cAAc,EAAE;AACtB;AACA,QAAQ,YAAY;AACpB,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE;AACzD,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,kBAAkB,EAAE,eAAe,CAAC,EAAE;AAC9E,OAAO;AACP,MAAM,cAAc,EAAE;AACtB;AACA,QAAQ,WAAW;AACnB,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE;AAC/C,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE;AACvD,OAAO;AACP,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,6 +1,6 @@
1
1
  {
2
2
  "name": "@telepix-lab/eslint-config",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Telepix ESLint configuration",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",
@@ -14,15 +14,12 @@
14
14
  "files": [
15
15
  "dist"
16
16
  ],
17
- "scripts": {
18
- "build": "rollup -c",
19
- "prepublishOnly": "npm run build"
20
- },
21
17
  "keywords": [
22
18
  "eslint",
23
19
  "eslintconfig",
24
- "typescript",
25
- "react"
20
+ "telepix",
21
+ "react",
22
+ "typescript"
26
23
  ],
27
24
  "author": "Telepix",
28
25
  "license": "MIT",
@@ -44,7 +41,9 @@
44
41
  "devDependencies": {
45
42
  "@rollup/plugin-commonjs": "^25.0.0",
46
43
  "@rollup/plugin-json": "^6.0.0",
47
- "@rollup/plugin-node-resolve": "^15.0.0",
48
44
  "rollup": "^4.0.0"
45
+ },
46
+ "scripts": {
47
+ "build": "rollup -c"
49
48
  }
50
- }
49
+ }
package/readme.md ADDED
@@ -0,0 +1,30 @@
1
+ # Installation
2
+
3
+ ## npm
4
+
5
+ ```bash
6
+ npm install -D eslint typescript-eslint @telepix-lab/eslint-config
7
+ ```
8
+
9
+ ## yarn
10
+
11
+ ```bash
12
+ yarn add -D eslint typescript-eslint @telepix-lab/eslint-config
13
+ ```
14
+
15
+ ## pnpm
16
+
17
+ ```bash
18
+ pnpm add -D eslint typescript-eslint @telepix-lab/eslint-config
19
+ ```
20
+
21
+ # Usage
22
+
23
+ ```ts
24
+ // eslint.config.js
25
+
26
+ import telepixConfig from "@telepix-lab/eslint-config";
27
+ import tseslint from "typescript-eslint";
28
+
29
+ export default tseslint.config(telepixConfig);
30
+ ```