Skip to content

Commit c69175c

Browse files
author
nyxb
committed
📝 chore: add .eslintignore, .eslintrc, .gitignore, and update package.json scripts
The .eslintignore file is added to ignore certain directories from being linted. The .eslintrc file is added to configure the eslint rules and settings. The .gitignore file is added to ignore certain files and directories from being tracked by git. The package.json scripts are updated to include new scripts for building, linting, testing, and releasing the application. These changes improve the development workflow and ensure code quality.
1 parent f8bd2bf commit c69175c

File tree

5 files changed

+7977
-1
lines changed

5 files changed

+7977
-1
lines changed

‎.eslintignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist
2+
coverage
3+
src/lib

‎.eslintrc‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": ["@nyxb"],
3+
"rules": {
4+
"n/prefer-global/buffer": 0,
5+
"@next/next/no-html-link-for-pages": 0
6+
},
7+
"settings": {
8+
"react": {
9+
"version": "18"
10+
}
11+
}
12+
}

‎.gitignore‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules
2+
*.log
3+
.DS_Store
4+
coverage
5+
dist
6+
types
7+
.conf*
8+
*.pem

‎package.json‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@
2222
}
2323
},
2424
"scripts": {
25-
"test": "echo \"Happy hacking\" && đź’™"
25+
"build": "buildkarium",
26+
"dev": "vitest",
27+
"lint": "eslint --ext .ts .",
28+
"play": "dynot test/fixture/app",
29+
"release": "nyxr test && nyxr build && nyxlx changelogen@latest --release && pnpm publish && git push --follow-tags",
30+
"test": "nyxr lint && vitest run --coverage"
2631
},
2732
"dependencies": {
2833
"clipboardy": "^3.0.0",

0 commit comments

Comments
 (0)