Skip to content

Commit f0da481

Browse files
committedJan 25, 2025·
feat: upgrade packages / linters
1 parent 2ca12c1 commit f0da481

File tree

6 files changed

+266
-189
lines changed

6 files changed

+266
-189
lines changed
 

‎.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
root = true
33

44
[*]
5+
max_line_length = 120
56
indent_style = space
67
indent_size = 2
78
end_of_line = lf

‎.eslintrc.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ module.exports = {
77
parserOptions: {
88
parser: '@babel/eslint-parser',
99
requireConfigFile: false,
10+
ecmaVersion: 'latest',
11+
sourceType: 'module',
1012
},
11-
extends: ['@nuxtjs', 'plugin:nuxt/recommended', 'prettier'],
13+
extends: ['@nuxtjs', 'plugin:nuxt/recommended', 'eslint:recommended', 'prettier'],
1214
plugins: [],
1315
// add your custom rules here
14-
rules: {},
16+
rules: {
17+
'vue/multi-word-component-names': 'off',
18+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
19+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
20+
},
1521
}

‎.prettierrc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
22
"semi": false,
3-
"singleQuote": true
3+
"singleQuote": true,
4+
"printWidth": 120,
5+
"trailingComma": "all",
6+
"arrowParens": "avoid",
7+
"bracketSpacing": true,
8+
"htmlWhitespaceSensitivity": "ignore"
49
}

‎nuxt.config.js

Lines changed: 40 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,39 @@ export default {
88
title: 'Style-Forge',
99
htmlAttrs: {
1010
lang: 'en',
11-
'data-theme': 'auto'
11+
'data-theme': 'auto',
1212
},
1313
meta: [
1414
{ charset: 'utf-8' },
1515
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
16-
{ hid: 'description', name: 'description', content: 'CSS framework with themes, utilities, flexbox, and grid for creating responsive websites' },
17-
{ name: 'keywords', content: 'style-forge, CSS framework, modern design, responsive design, utilities, web development, frontend, UI components, CSS grid, CSS flexbox, themes, form validation, custom themes, grid, flex, input, select, switch, textarea, helpers, colors' },
16+
{
17+
hid: 'description',
18+
name: 'description',
19+
content: 'CSS framework with themes, utilities, flexbox, and grid for creating responsive websites',
20+
},
21+
{
22+
name: 'keywords',
23+
content:
24+
'style-forge, CSS framework, modern design, responsive design, utilities, web development, frontend, UI components, CSS grid, CSS flexbox, themes, form validation, custom themes, grid, flex, input, select, switch, textarea, helpers, colors',
25+
},
1826

1927
{ name: 'format-detection', content: 'telephone=no' },
2028

2129
{ property: 'og:title', content: 'Style-Forge' },
22-
{ property: 'og:description', content: 'CSS framework with themes, utilities, flexbox, and grid for creating responsive websites' },
30+
{
31+
property: 'og:description',
32+
content: 'CSS framework with themes, utilities, flexbox, and grid for creating responsive websites',
33+
},
2334
{ property: 'og:url', content: 'https://style-forge.github.io/' },
2435
{ property: 'og:image', content: '/images/main.png' },
2536
{ property: 'og:type', content: 'website' },
2637
{ name: 'twitter:title', content: 'Style-Forge' },
27-
{ name: 'twitter:description', content: 'CSS framework with themes, utilities, flexbox, and grid for creating responsive websites' },
38+
{
39+
name: 'twitter:description',
40+
content: 'CSS framework with themes, utilities, flexbox, and grid for creating responsive websites',
41+
},
2842
{ name: 'twitter:card', content: 'summary_large_image' },
29-
{ name: 'twitter:image', content: '/images/main.png' }
43+
{ name: 'twitter:image', content: '/images/main.png' },
3044
],
3145
link: [
3246
{ rel: 'apple-touch-icon', size: '180x180', href: '/icons/icon-180x180.png' },
@@ -35,58 +49,63 @@ export default {
3549
{ rel: 'manifest', href: '/site.webmanifest' },
3650
{ rel: 'preconnect', href: 'https://fonts.googleapis.com' },
3751
{ rel: 'preconnect', href: 'https://fonts.gstatic.com', crossOrigin: true },
38-
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap' },
39-
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,200,0,0' }
40-
]
52+
{
53+
rel: 'stylesheet',
54+
href: 'https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap',
55+
},
56+
{
57+
rel: 'stylesheet',
58+
href: 'https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,200,0,0',
59+
},
60+
],
4161
},
4262

4363
// Global CSS: https://go.nuxtjs.dev/config-css
4464
css: ['~/assets/main.css'],
4565

4666
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
47-
plugins: [
48-
{ src: '~/plugins/support.js', mode: 'client' }
49-
],
67+
plugins: [{ src: '~/plugins/support.js', mode: 'client' }],
5068

5169
// Auto import components: https://go.nuxtjs.dev/config-components
5270
components: true,
5371

5472
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
5573
buildModules: [
5674
// https://go.nuxtjs.dev/eslint
57-
'@nuxtjs/eslint-module'
75+
'@nuxtjs/eslint-module',
5876
],
5977

6078
// Modules: https://go.nuxtjs.dev/config-modules
6179
modules: [],
6280

6381
// Build Configuration: https://go.nuxtjs.dev/config-build
6482
build: {
83+
friendlyErrors: false,
6584
publicPath: '_',
6685
extractCSS: true,
6786
postcss: {
6887
postcssOptions: {
6988
plugins: {
70-
'postcss-preset-env': false
71-
}
72-
}
73-
}
89+
'postcss-preset-env': false,
90+
},
91+
},
92+
},
7493
},
7594

7695
/* /// */
7796
loading: false,
7897
loadingIndicator: false,
7998

8099
router: {
81-
mode: 'abstract'
100+
mode: 'abstract',
82101
},
83102

84103
generate: {
85104
cache: false,
86-
fallback: false
105+
fallback: false,
87106
},
88107

89108
server: {
90-
port: 5173
91-
}
109+
port: 5173,
110+
},
92111
}

‎package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,29 @@
1414
"lintfix": "prettier --write --list-different . && yarn lint:js --fix"
1515
},
1616
"dependencies": {
17-
"core-js": "^3.25.3",
18-
"nuxt": "^2.15.8",
1917
"style-forge.base": "^2025.1.22",
2018
"style-forge.colors": "^2025.1.24",
2119
"style-forge.form": "^2025.1.25",
2220
"style-forge.helpers": "^2025.1.25",
2321
"style-forge.media": "^2025.1.25",
2422
"style-forge.patterns": "^2025.1.18",
25-
"style-forge.themes": "^2025.1.18",
26-
"vue": "^2.7.10",
27-
"vue-server-renderer": "^2.7.10",
28-
"vue-template-compiler": "^2.7.10"
23+
"style-forge.themes": "^2025.1.18"
2924
},
3025
"devDependencies": {
31-
"@babel/eslint-parser": "^7.19.1",
32-
"@nuxt/types": "~2.18.0",
33-
"@nuxtjs/eslint-config": "^11.0.0",
26+
"@babel/eslint-parser": "^7.26.5",
27+
"@nuxt/types": "~2.18.1",
28+
"@nuxtjs/eslint-config": "^12.0.0",
3429
"@nuxtjs/eslint-module": "^3.1.0",
35-
"eslint": "^8.24.0",
36-
"eslint-config-prettier": "^8.5.0",
30+
"core-js": "^3.40.0",
31+
"eslint": "^8.57.1",
32+
"eslint-config-prettier": "^10.0.1",
3733
"eslint-plugin-nuxt": "^4.0.0",
38-
"eslint-plugin-vue": "^9.5.1",
39-
"prettier": "^2.7.1"
34+
"eslint-plugin-prettier": "^5.2.3",
35+
"eslint-plugin-vue": "^9.32.0",
36+
"nuxt": "^2.18.1",
37+
"prettier": "^2.8.8",
38+
"vue": "^2.7.16",
39+
"vue-server-renderer": "^2.7.16",
40+
"vue-template-compiler": "^2.7.16"
4041
}
4142
}

‎yarn.lock

Lines changed: 197 additions & 152 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.