create-next-mui 0.0.2 → 0.0.4

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.
Files changed (47) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +108 -0
  3. package/next-mui-template-js/.vscode/settings.json +7 -0
  4. package/next-mui-template-js/.vscode/typescript.code-snippets +10 -0
  5. package/next-mui-template-js/esling.config.mjs +90 -0
  6. package/next-mui-template-js/next.config.ts +7 -0
  7. package/next-mui-template-js/package-lock.json +6689 -0
  8. package/next-mui-template-js/package.json +31 -0
  9. package/next-mui-template-js/public/next.svg +1 -0
  10. package/next-mui-template-js/public/vercel.svg +1 -0
  11. package/next-mui-template-js/src/app/favicon.ico +0 -0
  12. package/next-mui-template-js/src/app/globals.css +28 -0
  13. package/next-mui-template-js/src/app/layout.tsx +42 -0
  14. package/next-mui-template-js/src/app/page.tsx +7 -0
  15. package/next-mui-template-js/src/lib/router-link/index.ts +5 -0
  16. package/next-mui-template-js/src/sections/home/view.tsx +49 -0
  17. package/next-mui-template-js/src/theme/core/colors.json +46 -0
  18. package/next-mui-template-js/src/theme/core/components/button.ts +35 -0
  19. package/next-mui-template-js/src/theme/core/components/card.ts +17 -0
  20. package/next-mui-template-js/src/theme/core/components/index.ts +9 -0
  21. package/next-mui-template-js/src/theme/core/palette.ts +34 -0
  22. package/next-mui-template-js/src/theme/core/typography.ts +51 -0
  23. package/next-mui-template-js/src/theme/create-theme.ts +24 -0
  24. package/next-mui-template-js/src/theme/theme-provider.tsx +19 -0
  25. package/next-mui-template-js/tsconfig.json +34 -0
  26. package/next-mui-template-ts/.vscode/settings.json +7 -7
  27. package/next-mui-template-ts/.vscode/typescript.code-snippets +10 -10
  28. package/next-mui-template-ts/esling.config.mjs +90 -97
  29. package/next-mui-template-ts/next.config.ts +7 -7
  30. package/next-mui-template-ts/package-lock.json +6689 -6689
  31. package/next-mui-template-ts/package.json +31 -31
  32. package/next-mui-template-ts/src/app/globals.css +28 -28
  33. package/next-mui-template-ts/src/app/layout.tsx +42 -42
  34. package/next-mui-template-ts/src/app/page.tsx +7 -7
  35. package/next-mui-template-ts/src/lib/router-link/index.ts +5 -5
  36. package/next-mui-template-ts/src/sections/home/view.tsx +49 -49
  37. package/next-mui-template-ts/src/theme/core/colors.json +46 -46
  38. package/next-mui-template-ts/src/theme/core/components/button.ts +35 -35
  39. package/next-mui-template-ts/src/theme/core/components/card.ts +17 -17
  40. package/next-mui-template-ts/src/theme/core/components/index.ts +9 -9
  41. package/next-mui-template-ts/src/theme/core/palette.ts +34 -34
  42. package/next-mui-template-ts/src/theme/core/typography.ts +51 -51
  43. package/next-mui-template-ts/src/theme/create-theme.ts +24 -24
  44. package/next-mui-template-ts/src/theme/theme-provider.tsx +19 -19
  45. package/next-mui-template-ts/tsconfig.json +34 -34
  46. package/package.json +1 -1
  47. package/src/index.js +88 -88
@@ -1,97 +1,90 @@
1
- import perfectionist from "eslint-plugin-perfectionist";
2
- import unusedImports from "eslint-plugin-unused-imports";
3
- import nextTypeScript from "eslint-config-next/typescript";
4
- import { defineConfig, globalIgnores } from "eslint/config";
5
- import nextVitals from "eslint-config-next/core-web-vitals";
6
-
7
- const eslintConfig = defineConfig([
8
- ...nextVitals,
9
- ...nextTypeScript,
10
- // Override default ignores of eslint-config-next.
11
- globalIgnores([
12
- // Default ignores of eslint-config-next:
13
- ".next/**",
14
- "out/**",
15
- "build/**",
16
- "next-env.d.ts",
17
- ]),
18
- {
19
- plugins: {
20
- perfectionist,
21
- "unused-imports": unusedImports,
22
- },
23
- rules: {
24
- "unused-imports/no-unused-imports": "error",
25
- "no-unused-vars": "off",
26
- "@typescript-eslint/no-unused-vars": "off",
27
- "unused-imports/no-unused-vars": [
28
- "off",
29
- {
30
- args: "after-used",
31
- argsIgnorePattern: "^_",
32
- vars: "all",
33
- varsIgnorePattern: "^_",
34
- },
35
- ],
36
- "perfectionist/sort-exports": [1, { order: "asc", type: "line-length" }],
37
- "perfectionist/sort-named-imports": [
38
- 1,
39
- { order: "asc", type: "line-length" },
40
- ],
41
- "perfectionist/sort-named-exports": [
42
- 1,
43
- { order: "asc", type: "line-length" },
44
- ],
45
- "perfectionist/sort-imports": [
46
- "warn",
47
- {
48
- order: "asc",
49
- ignoreCase: true,
50
- type: "line-length",
51
- specialCharacters: "keep",
52
- internalPattern: ["^@/.*"],
53
- newlinesBetween: "always",
54
- groups: [
55
- "style",
56
- "react",
57
- "next",
58
- "mui",
59
- "external",
60
- "type",
61
- "internal-types",
62
- "internal-lib",
63
- "internal-hooks",
64
- "internal-actions",
65
- "internal-components",
66
- "internal-auth",
67
- "internal-routes",
68
- "internal-theme",
69
- "internal",
70
- ["parent", "sibling", "index"],
71
- "icons",
72
- "object",
73
- "unknown",
74
- ],
75
- customGroups: {
76
- value: {
77
- react: ["react"],
78
- next: ["^next", "^next/.*", "cookies-next"],
79
- mui: ["^@mui/.*", "^@emotion/.*"],
80
- icons: ["^lucide-react$"],
81
- "internal-types": ["^@/types/.*"],
82
- "internal-lib": ["^@/lib/.*"],
83
- "internal-actions": ["^@/actions/.*"],
84
- "internal-hooks": ["^@/hooks/.*"],
85
- "internal-components": ["^@/components/.*"],
86
- "internal-auth": ["^@/auth/.*"],
87
- "internal-routes": ["^@/routes/.*"],
88
- "internal-theme": ["^@/theme/.*"],
89
- },
90
- },
91
- },
92
- ],
93
- },
94
- },
95
- ]);
96
-
97
- export default eslintConfig;
1
+ import perfectionist from "eslint-plugin-perfectionist";
2
+ import unusedImports from "eslint-plugin-unused-imports";
3
+ import nextTypeScript from "eslint-config-next/typescript";
4
+ import { defineConfig, globalIgnores } from "eslint/config";
5
+ import nextVitals from "eslint-config-next/core-web-vitals";
6
+
7
+ const eslintConfig = defineConfig([
8
+ ...nextVitals,
9
+ ...nextTypeScript,
10
+ globalIgnores([".next/**", "out/**", "build/**", "next-env.d.ts"]),
11
+ {
12
+ plugins: {
13
+ perfectionist,
14
+ "unused-imports": unusedImports,
15
+ },
16
+ rules: {
17
+ "unused-imports/no-unused-imports": "error",
18
+ "no-unused-vars": "off",
19
+ "@typescript-eslint/no-unused-vars": "off",
20
+ "unused-imports/no-unused-vars": [
21
+ "off",
22
+ {
23
+ args: "after-used",
24
+ argsIgnorePattern: "^_",
25
+ vars: "all",
26
+ varsIgnorePattern: "^_",
27
+ },
28
+ ],
29
+ "perfectionist/sort-exports": [1, { order: "asc", type: "line-length" }],
30
+ "perfectionist/sort-named-imports": [
31
+ 1,
32
+ { order: "asc", type: "line-length" },
33
+ ],
34
+ "perfectionist/sort-named-exports": [
35
+ 1,
36
+ { order: "asc", type: "line-length" },
37
+ ],
38
+ "perfectionist/sort-imports": [
39
+ "warn",
40
+ {
41
+ order: "asc",
42
+ ignoreCase: true,
43
+ type: "line-length",
44
+ specialCharacters: "keep",
45
+ internalPattern: ["^@/.*"],
46
+ newlinesBetween: "always",
47
+ groups: [
48
+ "style",
49
+ "react",
50
+ "next",
51
+ "mui",
52
+ "external",
53
+ "type",
54
+ "internal-types",
55
+ "internal-lib",
56
+ "internal-hooks",
57
+ "internal-actions",
58
+ "internal-components",
59
+ "internal-auth",
60
+ "internal-routes",
61
+ "internal-theme",
62
+ "internal",
63
+ ["parent", "sibling", "index"],
64
+ "icons",
65
+ "object",
66
+ "unknown",
67
+ ],
68
+ customGroups: {
69
+ value: {
70
+ react: ["react"],
71
+ next: ["^next", "^next/.*", "cookies-next"],
72
+ mui: ["^@mui/.*", "^@emotion/.*"],
73
+ icons: ["^lucide-react$"],
74
+ "internal-types": ["^@/types/.*"],
75
+ "internal-lib": ["^@/lib/.*"],
76
+ "internal-actions": ["^@/actions/.*"],
77
+ "internal-hooks": ["^@/hooks/.*"],
78
+ "internal-components": ["^@/components/.*"],
79
+ "internal-auth": ["^@/auth/.*"],
80
+ "internal-routes": ["^@/routes/.*"],
81
+ "internal-theme": ["^@/theme/.*"],
82
+ },
83
+ },
84
+ },
85
+ ],
86
+ },
87
+ },
88
+ ]);
89
+
90
+ export default eslintConfig;
@@ -1,7 +1,7 @@
1
- import type { NextConfig } from "next";
2
-
3
- const nextConfig: NextConfig = {
4
- trailingSlash: true,
5
- };
6
-
7
- export default nextConfig;
1
+ import type { NextConfig } from "next";
2
+
3
+ const nextConfig: NextConfig = {
4
+ trailingSlash: true,
5
+ };
6
+
7
+ export default nextConfig;