Skip to content

Commit

Permalink
chore: use @adonisjs/tooling presets for tooling config
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jul 4, 2023
1 parent da1db06 commit 646ee5c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 69 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: checks
on:
- push
- pull_request

jobs:
test:
uses: adonisjs/.github/.github/workflows/test.yml@main

lint:
uses: adonisjs/.github/.github/workflows/lint.yml@main

typecheck:
uses: adonisjs/.github/.github/workflows/typecheck.yml@main
7 changes: 0 additions & 7 deletions .github/workflows/test.yml

This file was deleted.

44 changes: 9 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"pretest": "npm run lint",
"test": "cross-env NODE_DEBUG=adonisjs:bodyparser c8 npm run quick:test",
"clean": "del-cli build",
"typecheck": "tsc --noEmit",
"compile": "npm run lint && npm run clean && tsc",
"build": "npm run compile",
"release": "np",
Expand All @@ -37,10 +38,13 @@
"devDependencies": {
"@adonisjs/application": "^7.1.2-6",
"@adonisjs/encryption": "^5.1.2-2",
"@adonisjs/eslint-config": "^1.1.7",
"@adonisjs/events": "^8.4.9-3",
"@adonisjs/fold": "^9.9.3-5",
"@adonisjs/http-server": "^6.8.2-7",
"@adonisjs/logger": "^5.4.2-3",
"@adonisjs/prettier-config": "^1.1.7",
"@adonisjs/tsconfig": "^1.1.7",
"@commitlint/cli": "^17.6.1",
"@commitlint/config-conventional": "^17.6.1",
"@japa/assert": "^2.0.0-1",
Expand All @@ -58,9 +62,6 @@
"cross-env": "^7.0.3",
"del-cli": "^5.0.0",
"eslint": "^8.38.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-adonis": "^3.0.3",
"eslint-plugin-prettier": "^4.2.1",
"fs-extra": "^11.1.1",
"get-port": "^7.0.0",
"github-label-sync": "^2.3.1",
Expand Down Expand Up @@ -105,37 +106,6 @@
"url": "https://github.com/adonisjs/bodyparser/issues"
},
"homepage": "https://github.com/adonisjs/bodyparser#readme",
"eslintConfig": {
"extends": [
"plugin:adonis/typescriptPackage",
"prettier"
],
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
]
}
},
"eslintIgnore": [
"build",
"backup"
],
"prettier": {
"trailingComma": "es5",
"semi": false,
"singleQuote": true,
"useTabs": false,
"quoteProps": "consistent",
"bracketSpacing": true,
"arrowParens": "always",
"printWidth": 100
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
Expand All @@ -161,5 +131,9 @@
"test_factories/**",
".yalc/**"
]
}
},
"eslintConfig": {
"extends": "@adonisjs/eslint-config/package"
},
"prettier": "@adonisjs/prettier-config"
}
30 changes: 3 additions & 27 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,7 @@
{
"extends": "@adonisjs/tsconfig/tsconfig.package.json",
"compilerOptions": {
"target": "ESNext",
"module": "NodeNext",
"lib": ["ESNext"],
"noUnusedLocals": true,
"noUnusedParameters": true,
"isolatedModules": true,
"removeComments": true,
"declaration": true,
"rootDir": "./",
"outDir": "./build",
"esModuleInterop": true,
"strictNullChecks": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"strictPropertyInitialization": true,
"noImplicitAny": true,
"strictBindCallApply": true,
"strictFunctionTypes": true,
"declarationMap": true,
"noImplicitThis": true,
"skipLibCheck": true,
"types": ["@types/node"]
},
"include": ["./**/*"],
"exclude": ["./node_modules", "./build"],
"ts-node": {
"swc": true
"outDir": "./build"
}
}
}

0 comments on commit 646ee5c

Please sign in to comment.