@aiou/eslint-config 1.2.2 → 1.2.3

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/index.cjs CHANGED
@@ -56,7 +56,8 @@ const ignores = () => {
56
56
  const GLOB_SCRIPT_EXT = "?([cm])[jt]s?(x)";
57
57
  const GLOB_TEST_SCRIPT = "**/*.{spec,test}.?([cm])[jt]s?(x)";
58
58
  const GLOB_TEST_DIRS = "**/{test,tests,e2e,__test__,__tests__}/**";
59
- const GLOB_PAGES_DIRS = "**/{pages,routes}/!(components)/**";
59
+ const GLOB_PAGES_DIRS = "**/{pages,routes}/**";
60
+ const GLOB_PAGES_COMPONENTS_DIRS = "**/{pages,routes}/components/**";
60
61
  const GLOB_DTS = "**/*.d.ts";
61
62
  const GLOB_TS = "**/*.?([cm])ts";
62
63
  const GLOB_TSX = "**/*.?([cm])tsx";
@@ -4017,6 +4018,9 @@ const react = () => {
4017
4018
  // RECOMMEND: pages/routes should only contain page files
4018
4019
  GLOB_PAGES_DIRS
4019
4020
  ],
4021
+ ignores: [
4022
+ GLOB_PAGES_COMPONENTS_DIRS
4023
+ ],
4020
4024
  rules: {
4021
4025
  "react-refresh/only-export-components": "off"
4022
4026
  }
package/dist/index.mjs CHANGED
@@ -54,7 +54,8 @@ const ignores = () => {
54
54
  const GLOB_SCRIPT_EXT = "?([cm])[jt]s?(x)";
55
55
  const GLOB_TEST_SCRIPT = "**/*.{spec,test}.?([cm])[jt]s?(x)";
56
56
  const GLOB_TEST_DIRS = "**/{test,tests,e2e,__test__,__tests__}/**";
57
- const GLOB_PAGES_DIRS = "**/{pages,routes}/!(components)/**";
57
+ const GLOB_PAGES_DIRS = "**/{pages,routes}/**";
58
+ const GLOB_PAGES_COMPONENTS_DIRS = "**/{pages,routes}/components/**";
58
59
  const GLOB_DTS = "**/*.d.ts";
59
60
  const GLOB_TS = "**/*.?([cm])ts";
60
61
  const GLOB_TSX = "**/*.?([cm])tsx";
@@ -4015,6 +4016,9 @@ const react = () => {
4015
4016
  // RECOMMEND: pages/routes should only contain page files
4016
4017
  GLOB_PAGES_DIRS
4017
4018
  ],
4019
+ ignores: [
4020
+ GLOB_PAGES_COMPONENTS_DIRS
4021
+ ],
4018
4022
  rules: {
4019
4023
  "react-refresh/only-export-components": "off"
4020
4024
  }
package/dts/globs.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  export declare const GLOB_SCRIPT_EXT = "?([cm])[jt]s?(x)";
2
2
  export declare const GLOB_TEST_SCRIPT = "**/*.{spec,test}.?([cm])[jt]s?(x)";
3
3
  export declare const GLOB_TEST_DIRS = "**/{test,tests,e2e,__test__,__tests__}/**";
4
- export declare const GLOB_PAGES_DIRS = "**/{pages,routes}/!(components)/**";
4
+ export declare const GLOB_PAGES_DIRS = "**/{pages,routes}/**";
5
+ export declare const GLOB_PAGES_COMPONENTS_DIRS = "**/{pages,routes}/components/**";
5
6
  export declare const GLOB_DTS = "**/*.d.ts";
6
7
  export declare const GLOB_TS = "**/*.?([cm])ts";
7
8
  export declare const GLOB_TSX = "**/*.?([cm])tsx";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiou/eslint-config",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "eslint config for aiou template",
5
5
  "keywords": [],
6
6
  "license": "MIT",