Skip to content
This repository was archived by the owner on Feb 22, 2025. It is now read-only.

Commit 4c613e6

Browse files
committed
update files and directories structure
1 parent 6dc7ede commit 4c613e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+210
-209
lines changed

.browserslistrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
defaults and supports es6-module
2+
maintained node versions

.eslintrc.json

+108
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"plugins": [
4+
"react",
5+
"react-hooks",
6+
"simple-import-sort",
7+
"@typescript-eslint"
8+
],
9+
"ignorePatterns": [
10+
".git",
11+
".github",
12+
".next",
13+
".npm",
14+
".vscode",
15+
".yarn",
16+
"assets",
17+
"build",
18+
"coverage",
19+
"cypress",
20+
"dist",
21+
"locales",
22+
"node_modules",
23+
"public"
24+
],
25+
"extends": [
26+
"eslint:recommended",
27+
"plugin:import/recommended",
28+
"plugin:import/typescript",
29+
"plugin:react/recommended",
30+
"plugin:@typescript-eslint/recommended",
31+
"prettier",
32+
"plugin:prettier/recommended",
33+
"plugin:@next/next/recommended"
34+
],
35+
"env": {
36+
"es6": true,
37+
"browser": true,
38+
"node": true
39+
},
40+
"rules": {
41+
"react/react-in-jsx-scope": 0,
42+
"react/display-name": 0,
43+
"react/prop-types": 0,
44+
"@typescript-eslint/explicit-function-return-type": 0,
45+
"@typescript-eslint/explicit-member-accessibility": 0,
46+
"@typescript-eslint/indent": 0,
47+
"@typescript-eslint/member-delimiter-style": 0,
48+
"@typescript-eslint/no-explicit-any": 0,
49+
"@typescript-eslint/no-var-requires": 0,
50+
"@typescript-eslint/no-use-before-define": 0,
51+
"@typescript-eslint/ban-ts-comment": 0,
52+
"simple-import-sort/imports": "warn",
53+
"simple-import-sort/exports": "warn",
54+
"react-hooks/exhaustive-deps": [
55+
"warn",
56+
{
57+
"additionalHooks": "(useIsomorphicLayoutEffect)"
58+
}
59+
],
60+
"react/no-unescaped-entities": 0,
61+
"curly": [
62+
"error",
63+
"multi-line"
64+
],
65+
"react/jsx-no-target-blank": [
66+
2,
67+
{
68+
"allowReferrer": true
69+
}
70+
],
71+
"@typescript-eslint/no-unused-vars": [
72+
2,
73+
{
74+
"argsIgnorePattern": "^_"
75+
}
76+
],
77+
"no-console": [
78+
1,
79+
{
80+
"allow": [
81+
"warn",
82+
"error"
83+
]
84+
}
85+
],
86+
"prettier/prettier": [
87+
"warn"
88+
],
89+
"@typescript-eslint/explicit-module-boundary-types": "off"
90+
},
91+
"settings": {
92+
"import/parsers": {
93+
"@typescript-eslint/parser": [
94+
".ts",
95+
".tsx"
96+
]
97+
},
98+
"import/resolver": {
99+
"typescript": {
100+
"alwaysTryTypes": true,
101+
"project": "."
102+
}
103+
},
104+
"react": {
105+
"version": "detect"
106+
}
107+
}
108+
}

.prettierrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"semi": false,
3+
"singleQuote": false,
4+
"arrowParens": "always",
5+
"tabWidth": 2,
6+
"printWidth": 80,
7+
"trailingComma": "none"
8+
}

package.json

+6-190
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
"repository": "https://github.com/theRuslan/next-drupal-typescript-starter",
66
"author": "theRuslan <iam@theruslan.ru> (https://theruslan.ru)",
77
"private": true,
8+
"config": {
9+
"port": "2000"
10+
},
11+
"engines": {
12+
"node": "18.x"
13+
},
814
"scripts": {
915
"dev": "next dev -p $npm_package_config_port",
1016
"lint": "next lint && stylelint '**/*.{css,scss}'",
@@ -90,195 +96,5 @@
9096
"stylelint-prettier": "^3.0.0",
9197
"typescript": "^5.1.3",
9298
"webpack": "^5.88.0"
93-
},
94-
"config": {
95-
"port": "2000"
96-
},
97-
"engines": {
98-
"node": "18.x"
99-
},
100-
"browserslist": [
101-
"defaults",
102-
"node >18"
103-
],
104-
"prettier": {
105-
"semi": false,
106-
"singleQuote": false,
107-
"arrowParens": "always",
108-
"tabWidth": 2,
109-
"printWidth": 80,
110-
"trailingComma": "none"
111-
},
112-
"eslintConfig": {
113-
"parser": "@typescript-eslint/parser",
114-
"plugins": [
115-
"react",
116-
"react-hooks",
117-
"simple-import-sort",
118-
"@typescript-eslint"
119-
],
120-
"ignorePatterns": [
121-
".git",
122-
".github",
123-
".next",
124-
".npm",
125-
".vscode",
126-
".yarn",
127-
"assets",
128-
"build",
129-
"coverage",
130-
"cypress",
131-
"dist",
132-
"locales",
133-
"node_modules",
134-
"public"
135-
],
136-
"extends": [
137-
"eslint:recommended",
138-
"plugin:import/recommended",
139-
"plugin:import/typescript",
140-
"plugin:react/recommended",
141-
"plugin:@typescript-eslint/recommended",
142-
"prettier",
143-
"plugin:prettier/recommended",
144-
"plugin:@next/next/recommended"
145-
],
146-
"env": {
147-
"es6": true,
148-
"browser": true,
149-
"node": true
150-
},
151-
"rules": {
152-
"react/react-in-jsx-scope": 0,
153-
"react/display-name": 0,
154-
"react/prop-types": 0,
155-
"@typescript-eslint/explicit-function-return-type": 0,
156-
"@typescript-eslint/explicit-member-accessibility": 0,
157-
"@typescript-eslint/indent": 0,
158-
"@typescript-eslint/member-delimiter-style": 0,
159-
"@typescript-eslint/no-explicit-any": 0,
160-
"@typescript-eslint/no-var-requires": 0,
161-
"@typescript-eslint/no-use-before-define": 0,
162-
"@typescript-eslint/ban-ts-comment": 0,
163-
"simple-import-sort/imports": "warn",
164-
"simple-import-sort/exports": "warn",
165-
"react-hooks/exhaustive-deps": [
166-
"warn",
167-
{
168-
"additionalHooks": "(useIsomorphicLayoutEffect)"
169-
}
170-
],
171-
"react/no-unescaped-entities": 0,
172-
"curly": [
173-
"error",
174-
"multi-line"
175-
],
176-
"react/jsx-no-target-blank": [
177-
2,
178-
{
179-
"allowReferrer": true
180-
}
181-
],
182-
"@typescript-eslint/no-unused-vars": [
183-
2,
184-
{
185-
"argsIgnorePattern": "^_"
186-
}
187-
],
188-
"no-console": [
189-
1,
190-
{
191-
"allow": [
192-
"warn",
193-
"error"
194-
]
195-
}
196-
],
197-
"prettier/prettier": [
198-
"warn"
199-
],
200-
"@typescript-eslint/explicit-module-boundary-types": "off"
201-
},
202-
"settings": {
203-
"import/parsers": {
204-
"@typescript-eslint/parser": [
205-
".ts",
206-
".tsx"
207-
]
208-
},
209-
"import/resolver": {
210-
"typescript": {
211-
"alwaysTryTypes": true,
212-
"project": "."
213-
}
214-
},
215-
"react": {
216-
"version": "detect"
217-
}
218-
}
219-
},
220-
"stylelint": {
221-
"ignoreFiles": [
222-
"**/*.{ts,tsx,js,jsx}"
223-
],
224-
"extends": [
225-
"stylelint-config-standard",
226-
"stylelint-config-standard-scss",
227-
"stylelint-prettier/recommended"
228-
],
229-
"plugins": [
230-
"stylelint-prettier"
231-
],
232-
"rules": {
233-
"scss/at-rule-no-unknown": [
234-
true,
235-
{
236-
"ignoreAtRules": [
237-
"tailwind",
238-
"layer",
239-
"apply",
240-
"variants",
241-
"responsive",
242-
"screen",
243-
"include",
244-
"for",
245-
"mixin",
246-
"if",
247-
"else",
248-
"warn",
249-
"return",
250-
"function",
251-
"use",
252-
"each"
253-
]
254-
}
255-
],
256-
"selector-pseudo-class-no-unknown": [
257-
true,
258-
{
259-
"ignorePseudoClasses": [
260-
"global"
261-
]
262-
}
263-
],
264-
"property-no-unknown": [
265-
true,
266-
{
267-
"ignoreProperties": [
268-
"font-named-instance"
269-
]
270-
}
271-
],
272-
"declaration-property-value-no-unknown": true,
273-
"no-descending-specificity": null,
274-
"length-zero-no-unit": null,
275-
"alpha-value-notation": null,
276-
"selector-id-pattern": null,
277-
"selector-class-pattern": null,
278-
"property-no-vendor-prefix": null,
279-
"value-no-vendor-prefix": null,
280-
"scss/no-global-function-names": null,
281-
"scss/double-slash-comment-empty-line-before": null
282-
}
28399
}
284100
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

components/Layout/HeaderMobile.tsx renamed to src/components/Layout/HeaderMobile.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import LogoBox from "@/components/Logos/LogoBox"
1010
const Wrapper = dynamic(() => import("@/components/Layout/Wrapper"))
1111
const Container = dynamic(() => import("@/components/Layout/Container"))
1212
const IconClose = dynamic(() => import("@/icons/IconClose"))
13-
const IconMenu = dynamic(() => import("@/components/Icons/IconMenu"))
13+
const IconMenu = dynamic(() => import("@/icons/IconMenu"))
1414

1515
const LanguageSwitcher = dynamic(
1616
() => import("@/components/Layout/LanguageSwitcher")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

theme/components/Button.tsx renamed to src/theme/components/Button.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ const Button = {
33
// sizes: {},
44
// variants: {},
55
// defaultProps: {},
6-
};
6+
}
77

8-
export default Button;
8+
export default Button

theme/components/Heading.tsx renamed to src/theme/components/Heading.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ const Heading = {
33
// sizes: {},
44
// variants: {},
55
// defaultProps: {},
6-
};
6+
}
77

8-
export default Heading;
8+
export default Heading

theme/components/Link.tsx renamed to src/theme/components/Link.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ const Link = {
33
// sizes: {},
44
// variants: {},
55
// defaultProps: {},
6-
};
6+
}
77

8-
export default Link;
8+
export default Link
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)