create-next-mui 0.0.1 → 0.0.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/LICENSE +21 -21
- package/next-mui-template-js/.vscode/settings.json +7 -0
- package/next-mui-template-js/.vscode/typescript.code-snippets +10 -0
- package/next-mui-template-js/esling.config.mjs +90 -0
- package/next-mui-template-js/next.config.ts +7 -0
- package/next-mui-template-js/package-lock.json +6689 -0
- package/next-mui-template-js/package.json +31 -0
- package/next-mui-template-js/public/next.svg +1 -0
- package/next-mui-template-js/public/vercel.svg +1 -0
- package/next-mui-template-js/src/app/favicon.ico +0 -0
- package/next-mui-template-js/src/app/globals.css +28 -0
- package/next-mui-template-js/src/app/layout.tsx +42 -0
- package/next-mui-template-js/src/app/page.tsx +7 -0
- package/next-mui-template-js/src/lib/router-link/index.ts +5 -0
- package/next-mui-template-js/src/sections/home/view.tsx +49 -0
- package/next-mui-template-js/src/theme/core/colors.json +46 -0
- package/next-mui-template-js/src/theme/core/components/button.ts +35 -0
- package/next-mui-template-js/src/theme/core/components/card.ts +17 -0
- package/next-mui-template-js/src/theme/core/components/index.ts +9 -0
- package/next-mui-template-js/src/theme/core/palette.ts +34 -0
- package/next-mui-template-js/src/theme/core/typography.ts +51 -0
- package/next-mui-template-js/src/theme/create-theme.ts +24 -0
- package/next-mui-template-js/src/theme/theme-provider.tsx +19 -0
- package/next-mui-template-js/tsconfig.json +34 -0
- package/next-mui-template-ts/.vscode/settings.json +7 -7
- package/next-mui-template-ts/.vscode/typescript.code-snippets +10 -10
- package/next-mui-template-ts/esling.config.mjs +90 -97
- package/next-mui-template-ts/next.config.ts +7 -7
- package/next-mui-template-ts/package-lock.json +6689 -6689
- package/next-mui-template-ts/package.json +31 -31
- package/next-mui-template-ts/src/app/globals.css +28 -28
- package/next-mui-template-ts/src/app/layout.tsx +42 -42
- package/next-mui-template-ts/src/app/page.tsx +7 -7
- package/next-mui-template-ts/src/lib/router-link/index.ts +5 -5
- package/next-mui-template-ts/src/sections/home/view.tsx +49 -49
- package/next-mui-template-ts/src/theme/core/colors.json +46 -46
- package/next-mui-template-ts/src/theme/core/components/button.ts +35 -35
- package/next-mui-template-ts/src/theme/core/components/card.ts +17 -17
- package/next-mui-template-ts/src/theme/core/components/index.ts +9 -9
- package/next-mui-template-ts/src/theme/core/palette.ts +34 -34
- package/next-mui-template-ts/src/theme/core/typography.ts +51 -51
- package/next-mui-template-ts/src/theme/create-theme.ts +24 -24
- package/next-mui-template-ts/src/theme/theme-provider.tsx +19 -19
- package/next-mui-template-ts/tsconfig.json +34 -34
- package/package.json +1 -1
- 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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"internal-
|
|
62
|
-
"internal
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"internal-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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;
|