Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.

Commit c8ff899

Browse files
SelemondevSelemondev
Selemondev
authored and
Selemondev
committed
fix(app): eslint errors
1 parent f7a3948 commit c8ff899

File tree

4 files changed

+7
-14
lines changed

4 files changed

+7
-14
lines changed

Diff for: .eslintrc

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"react/display-name": "off",
77
"react-hooks/rules-of-hooks": "off",
88
"no-sequences": "off",
9-
"@typescript-eslint/no-require-imports": "off",
109
"no-alert": "off",
1110
"no-console": [
1211
"error",

Diff for: .github/scripts/update-readme-table.js

+5-11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable no-console */
12
/* eslint-disable n/prefer-global/process */
23
const fs = require('node:fs')
34
const path = require('node:path')
@@ -21,24 +22,17 @@ fs.readFile(packageJsonPath, 'utf8', (err, packageJsonData) => {
2122
console.error(readmeErr)
2223
process.exit(1)
2324
}
25+
const existingTableRegex = /\| nuxt-ui\s+\| nuxt-ui-vue\s+\|\s+\|[^]*?\|/m
26+
const updatedTableRow = `| nuxt-ui | nuxt-ui-vue |\n|------------------|------------------|\n| v2.7.0 | v${newNuxtUIVueVersion.padEnd(16)} |`.trim() // <-- Remove trailing whitespace
2427

25-
// Regular expression to match the table row with nuxt-ui-vue version
26-
const regex = /\| nuxt-ui\s+\| nuxt-ui-vue\s+\|\s+\| [^|]*\s+\| [^|]*\s+\|/
28+
const updatedData = data.replace(existingTableRegex, updatedTableRow)
2729

28-
// Create the replacement table row with updated nuxt-ui-vue version
29-
const newTableRow = `| nuxt-ui | nuxt-ui-vue |\n|------------------|------------------|\n| v2.7.0 | v${newNuxtUIVueVersion} |`
30-
31-
// Replace the old table row with the new one
32-
const updatedData = data.replace(regex, newTableRow)
33-
34-
// Write the updated content back to the README file
3530
fs.writeFile(readmePath, updatedData, 'utf8', (writeErr) => {
3631
if (writeErr) {
37-
console.error(writeErr)
32+
console.error('Error writing README:', writeErr)
3833
process.exit(1)
3934
}
4035

41-
// eslint-disable-next-line no-console
4236
console.log('README table updated successfully.')
4337
})
4438
})

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"pre-commit": "pnpm lint-staged"
4141
},
4242
"lint-staged": {
43-
"*.{js,ts,tsx,vue}": [
43+
"*.{ts,tsx,vue}": [
4444
"pnpm lint:fix"
4545
]
4646
}

Diff for: packages/nuxt-ui-vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuxt-ui-vue",
3-
"version": "0.10.7",
3+
"version": "0.0.7",
44
"private": false,
55
"exports": {
66
".": {

0 commit comments

Comments
 (0)