Skip to content

Commit c3e2b47

Browse files
committed
chore: use @adonisjs/tooling presets for tooling config
1 parent 004ac1c commit c3e2b47

File tree

4 files changed

+26
-68
lines changed

4 files changed

+26
-68
lines changed

.github/workflows/checks.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: checks
2+
on:
3+
- push
4+
- pull_request
5+
6+
jobs:
7+
test:
8+
uses: adonisjs/.github/.github/workflows/test.yml@main
9+
10+
lint:
11+
uses: adonisjs/.github/.github/workflows/lint.yml@main
12+
13+
typecheck:
14+
uses: adonisjs/.github/.github/workflows/typecheck.yml@main

.github/workflows/test.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

package.json

Lines changed: 9 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"test": "cross-env NODE_DEBUG=chokidar:ts c8 npm run vscode:test",
2222
"lint": "eslint . --ext=.ts",
2323
"clean": "del-cli build",
24+
"typecheck": "tsc --noEmit",
2425
"compile": "npm run lint && npm run clean && tsc",
2526
"build": "npm run compile",
2627
"release": "np",
@@ -38,6 +39,9 @@
3839
"author": "virk,adonisjs",
3940
"license": "MIT",
4041
"devDependencies": {
42+
"@adonisjs/eslint-config": "^1.1.7",
43+
"@adonisjs/prettier-config": "^1.1.7",
44+
"@adonisjs/tsconfig": "^1.1.7",
4145
"@commitlint/cli": "^17.6.6",
4246
"@commitlint/config-conventional": "^17.6.6",
4347
"@japa/assert": "^2.0.0-1",
@@ -50,9 +54,6 @@
5054
"cross-env": "^7.0.3",
5155
"del-cli": "^5.0.0",
5256
"eslint": "^8.44.0",
53-
"eslint-config-prettier": "^8.8.0",
54-
"eslint-plugin-adonis": "^3.0.3",
55-
"eslint-plugin-prettier": "^4.2.1",
5657
"github-label-sync": "^2.3.1",
5758
"husky": "^8.0.3",
5859
"np": "^8.0.4",
@@ -82,36 +83,6 @@
8283
"url": "https://github.com/adonisjs/assembler/issues"
8384
},
8485
"homepage": "https://github.com/adonisjs/assembler#readme",
85-
"eslintConfig": {
86-
"extends": [
87-
"plugin:adonis/typescriptPackage",
88-
"prettier"
89-
],
90-
"plugins": [
91-
"prettier"
92-
],
93-
"rules": {
94-
"prettier/prettier": [
95-
"error",
96-
{
97-
"endOfLine": "auto"
98-
}
99-
]
100-
}
101-
},
102-
"eslintIgnore": [
103-
"build"
104-
],
105-
"prettier": {
106-
"trailingComma": "es5",
107-
"semi": false,
108-
"singleQuote": true,
109-
"useTabs": false,
110-
"quoteProps": "consistent",
111-
"bracketSpacing": true,
112-
"arrowParens": "always",
113-
"printWidth": 100
114-
},
11586
"commitlint": {
11687
"extends": [
11788
"@commitlint/config-conventional"
@@ -137,5 +108,9 @@
137108
"build/**",
138109
"examples/**"
139110
]
140-
}
111+
},
112+
"eslintConfig": {
113+
"extends": "@adonisjs/eslint-config/package"
114+
},
115+
"prettier": "@adonisjs/prettier-config"
141116
}

tsconfig.json

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,7 @@
11
{
2+
"extends": "@adonisjs/tsconfig/tsconfig.package.json",
23
"compilerOptions": {
3-
"target": "ESNext",
4-
"module": "NodeNext",
5-
"lib": ["ESNext"],
6-
"noUnusedLocals": true,
7-
"noUnusedParameters": true,
8-
"isolatedModules": true,
9-
"removeComments": true,
10-
"declaration": true,
114
"rootDir": "./",
12-
"outDir": "./build",
13-
"esModuleInterop": true,
14-
"strictNullChecks": true,
15-
"allowSyntheticDefaultImports": true,
16-
"forceConsistentCasingInFileNames": true,
17-
"strictPropertyInitialization": true,
18-
"noImplicitAny": true,
19-
"strictBindCallApply": true,
20-
"strictFunctionTypes": true,
21-
"noImplicitThis": true,
22-
"declarationMap": true,
23-
"skipLibCheck": true,
24-
"types": ["@types/node"]
25-
},
26-
"include": ["./**/*"],
27-
"exclude": ["./node_modules", "./build"],
28-
"ts-node": {
29-
"swc": true
5+
"outDir": "./build"
306
}
31-
}
7+
}

0 commit comments

Comments
 (0)