Skip to content

Commit

Permalink
chore: update to ng 15 (#51)
Browse files Browse the repository at this point in the history
* chore: update to ng 15
* chore: update eslint deps
* chore: update node version
  • Loading branch information
chihab committed Apr 30, 2023
1 parent 9982fb3 commit b0ce78f
Show file tree
Hide file tree
Showing 7 changed files with 33,246 additions and 10,443 deletions.
35 changes: 27 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
"root": true,
"overrides": [
{
"files": ["*.ts"],
"files": [
"*.ts"
],
"parserOptions": {
"project": ["tsconfig.json", "e2e/tsconfig.json"],
"project": [
"tsconfig.json",
"e2e/tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
Expand All @@ -30,14 +35,21 @@
"style": "camelCase"
}
],
"arrow-parens": ["off", "always"],
"brace-style": ["off", "off"],
"arrow-parens": [
"off",
"always"
],
"brace-style": [
"off",
"off"
],
"linebreak-style": "off",
"new-parens": "off",
"newline-per-chained-call": "off",
"no-extra-semi": "off",
"no-irregular-whitespace": "off",
"no-trailing-spaces": "off",
"jsdoc/newline-after-description": "off",
"react/jsx-curly-spacing": "off",
"react/jsx-equals-spacing": "off",
"react/jsx-tag-spacing": [
Expand All @@ -48,13 +60,20 @@
}
],
"react/jsx-wrap-multilines": "off",
"space-in-parens": ["off", "never"]
"space-in-parens": [
"off",
"never"
]
}
},
{
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}
}
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn
- run: yarn lint
node-version: 18
- run: npm i
- run: npm run lint
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.10.0
v18
19 changes: 14 additions & 5 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@
"src/robots.txt",
"src/manifest.webmanifest"
],
"styles": ["src/styles.scss"],
"scripts": ["node_modules/marked/lib/marked.js"],
"styles": [
"src/styles.scss"
],
"scripts": [
"node_modules/marked/lib/marked.esm.js"
],
"serviceWorker": false,
"ngswConfigPath": "ngsw-config.json"
},
Expand Down Expand Up @@ -101,7 +105,10 @@
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
},
"server": {
Expand Down Expand Up @@ -147,7 +154,9 @@
"options": {
"browserTarget": "ngx-darija:build:production",
"serverTarget": "ngx-darija:server:production",
"routes": ["/"]
"routes": [
"/"
]
},
"configurations": {
"production": {}
Expand All @@ -156,4 +165,4 @@
}
}
}
}
}
Loading

0 comments on commit b0ce78f

Please sign in to comment.