Skip to content

Commit d2ea355

Browse files
committed
update deps
1 parent 014ed5b commit d2ea355

9 files changed

+1700
-1427
lines changed

.eslintrc.json

+3-10
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,8 @@
1313
"react/jsx-curly-brace-presence": "off",
1414
"require-atomic-updates": "off",
1515
"10x/no-full-import": "error",
16-
"10x/react-in-scope": "off",
17-
"10x/auto-import": [
18-
"error",
19-
{
20-
"imports": {
21-
"styled": "import styled from 'styled-components'",
22-
"lighten": "import {lighten} from 'polished'",
23-
"format": "import {format} from 'date-fns'"
24-
}
25-
}]
16+
"no-unused-vars": "off",
17+
"react/display-name": "off",
18+
"@typescript-eslint/no-unused-vars": ["error"]
2619
}
2720
}

.prettierrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
"trailingComma": "none",
66
"tabWidth": 2,
77
"useTabs": false,
8-
"arrowParens": "avoid"
8+
"arrowParens": "avoid",
9+
"plugins": ["prettier-plugin-organize-imports"]
910
}

.stylelintrc

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
2-
"processors": ["stylelint-processor-styled-components"],
2+
"customSyntax": "postcss-styled-syntax",
33
"extends": [
4-
"stylelint-config-recommended",
5-
"stylelint-config-styled-components"
4+
"stylelint-config-recommended"
65
],
76
"rules": {
87
"at-rule-no-unknown": [
@@ -21,11 +20,9 @@
2120
"no-duplicate-at-import-rules": true,
2221
"no-duplicate-selectors": true,
2322
"no-empty-source": null,
24-
"no-extra-semicolons": true,
2523
"no-invalid-double-slash-comments": true,
2624
"property-no-unknown": true,
2725
"color-no-invalid-hex": true,
28-
"color-hex-case": "lower",
2926
"color-named": "never",
3027
"color-hex-length": "long",
3128
"color-no-hex": null,
@@ -37,11 +34,8 @@
3734
"block-no-empty": null,
3835
"font-weight-notation": "named-where-possible",
3936
"font-family-name-quotes": "always-unless-keyword",
40-
"number-leading-zero": "always",
41-
"number-no-trailing-zeros": true,
4237
"value-no-vendor-prefix": true,
4338
"shorthand-property-no-redundant-values": true,
44-
"string-quotes": "single",
4539
"number-max-precision": 2,
4640
"unit-allowed-list": ["px", "%", "s", "fr", "rem", "vw", "vh", "deg"]
4741

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Next.js typescript styled-components starter
2-
This is a starter template for Next.js giving you a head start when building with **typescript** and **styled-components**.
2+
This is a starter template for Next.js giving you a headstart when building with **typescript** and **styled-components**.
33

44
## What's inside
55
- Typescript

next.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
/** @type {import('next').NextConfig} */
22
module.exports = {
3-
reactStrictMode: true
3+
reactStrictMode: true,
4+
compiler: {
5+
styledComponents: true
6+
}
47
};

package.json

+23-25
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,35 @@
77
"build": "next build",
88
"start": "next start",
99
"test": "next lint && yarn lint:css",
10-
"lint:css":"stylelint './src/**/*.{tsx,js,ts}'"
11-
10+
"lint:css": "stylelint './src/**/*.{tsx,js,ts}'"
1211
},
1312
"dependencies": {
14-
"axelra-react-utilities": "^0.1.0",
15-
"dotenv": "^10.0.0",
16-
"next": "^12.2.3",
17-
"next-seo": "^5.4.0",
18-
"react": "18.2.0",
19-
"react-dom": "18.2.0",
20-
"styled-components": "^5.3.5"
13+
"axelra-react-utilities": "^0.2.3",
14+
"next": "^14.0.4",
15+
"next-seo": "^6.4.0",
16+
"react": "^18.2.0",
17+
"react-dom": "^18.2.0",
18+
"styled-components": "^6.1.2"
2119
},
2220
"devDependencies": {
23-
"@types/node": "16.11.12",
24-
"@types/react": "^18.0.14",
25-
"@types/styled-components": "^5.1.25",
21+
"@types/node": "^18.16.0",
22+
"@types/react": "^18.2.8",
23+
"@types/react-dom": "^18.2.4",
24+
"@types/styled-components": "^5.1.26",
2625
"@typescript-eslint/eslint-plugin": "^5.10.2",
27-
"eslint": "^8.8.0",
28-
"eslint-config-next": "^12.1.6",
29-
"eslint-config-prettier": "^8.5.0",
30-
"eslint-plugin-10x": "^1.5.2",
26+
"eslint": "^8.54.0",
27+
"eslint-config-next": "^14.0.3",
28+
"eslint-config-prettier": "^9.0.0",
29+
"eslint-plugin-10x": "^1.5.0",
3130
"eslint-plugin-no-inline-styles": "^1.0.5",
32-
"eslint-plugin-prettier": "^4.0.0",
33-
"eslint-plugin-react": "^7.30.0",
34-
"prettier": "^2.7.1",
35-
"prettier-plugin-organize-imports": "^3.0.0",
36-
"stylelint": "^14.9.1",
37-
"stylelint-config-recommended": "^8.0.0",
38-
"stylelint-config-standard": "^26.0.0",
39-
"stylelint-config-styled-components": "^0.1.1",
40-
"stylelint-processor-styled-components": "^1.10.0",
31+
"eslint-plugin-prettier": "^5.0.1",
32+
"eslint-plugin-react": "^7.33.2",
33+
"postcss-styled-syntax": "^0.5.0",
34+
"prettier": "^3.1.1",
35+
"prettier-plugin-organize-imports": "^3.2.4",
36+
"stylelint": "^16.0.2",
37+
"stylelint-config-recommended": "^14.0.0",
38+
"stylelint-config-standard": "^35.0.0",
4139
"typescript": "^4.7.4"
4240
}
4341
}

src/pages/index.tsx

+4-9
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,11 @@ const Home = () => {
4343
</H2>
4444
<Text block center>
4545
Axelra-React-Utilities can be configured differently using the{' '}
46-
<a href={'https://nextjs.org/docs/basic-features/layouts'}>
46+
<Link href={'https://nextjs.org/docs/basic-features/layouts'}>
4747
layout pattern
48-
</a>
49-
.<br /> Check out this{' '}
50-
<Link href={'/other'} passHref>
51-
<Text weight={'Bold'} as={'a'}>
52-
Other Page
53-
</Text>
54-
</Link>{' '}
55-
to see it in action
48+
</Link>
49+
.<br /> Check out this <Link href={'/other'}>Other Page</Link> to see it
50+
in action
5651
</Text>
5752
</Container>
5853
);

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
3+
"target": "es6",
44
"lib": ["dom", "dom.iterable", "esnext"],
55
"allowJs": true,
66
"skipLibCheck": true,

0 commit comments

Comments
 (0)