Skip to content

Commit

Permalink
✨ Configuring Lint in packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashu11-A committed Dec 17, 2024
1 parent bb6d0f6 commit 3fbe9a5
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 2 deletions.
Binary file modified bun.lockb
Binary file not shown.
18 changes: 18 additions & 0 deletions packages/cli/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import globals from 'globals'
import pluginJs from '@eslint/js'
import tseslint from 'typescript-eslint'


export default [
{files: ['**/*.{js,mjs,cjs,ts}']},
{languageOptions: { globals: globals.node }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
indent: ['error', 2],
semi: ['error', 'never'],
quotes: ['error', 'single']
}
}
]
18 changes: 18 additions & 0 deletions packages/crypt/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import globals from 'globals'
import pluginJs from '@eslint/js'
import tseslint from 'typescript-eslint'


export default [
{files: ['**/*.{js,mjs,cjs,ts}']},
{languageOptions: { globals: globals.node }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
indent: ['error', 2],
semi: ['error', 'never'],
quotes: ['error', 'single']
}
}
]
9 changes: 8 additions & 1 deletion packages/crypt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@
"module": "src/app.ts",
"types": "src/app.ts",
"type": "module",
"scripts": {
"lint": "eslint -c eslint.config.js --fix"
},
"devDependencies": {
"@types/bun": "latest"
"@eslint/js": "^9.17.0",
"@types/bun": "latest",
"eslint": "^9.17.0",
"globals": "^15.13.0",
"typescript-eslint": "^8.18.1"
},
"peerDependencies": {
"typescript": "^5.0.0"
Expand Down
18 changes: 18 additions & 0 deletions packages/lang/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import globals from 'globals'
import pluginJs from '@eslint/js'
import tseslint from 'typescript-eslint'


export default [
{files: ['**/*.{js,mjs,cjs,ts}']},
{languageOptions: { globals: globals.node }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
{
rules: {
indent: ['error', 2],
semi: ['error', 'never'],
quotes: ['error', 'single']
}
}
]
9 changes: 8 additions & 1 deletion packages/lang/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@
"module": "src/app.ts",
"types": "src/app.ts",
"type": "module",
"scripts": {
"lint": "eslint -c eslint.config.js --fix"
},
"devDependencies": {
"@types/bun": "latest"
"@eslint/js": "^9.17.0",
"@types/bun": "latest",
"eslint": "^9.17.0",
"globals": "^15.13.0",
"typescript-eslint": "^8.18.1"
},
"peerDependencies": {
"typescript": "^5.0.0"
Expand Down

0 comments on commit 3fbe9a5

Please sign in to comment.