Skip to content

Commit

Permalink
Merge pull request #13 from uqbar-project/revamping-#11
Browse files Browse the repository at this point in the history
Revamping #11
  • Loading branch information
PalumboN authored Oct 8, 2024
2 parents 84d6685 + 22c6598 commit d61df18
Show file tree
Hide file tree
Showing 33 changed files with 4,922 additions and 2,424 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[*]
indent_type = space
indent_size = 2
trim_trailing_whitespace = true
163 changes: 163 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"ignorePatterns": [
"**/*.js",
"dist/**",
"build/**"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json", "./tsconfig.test.json"]
},
"plugins": [
"@typescript-eslint",
"@stylistic/ts"
],
"root": true,
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/explicit-module-boundary-types": [
"warn",
{
"allowArgumentsExplicitlyTypedAsAny": true
}
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"args": "after-used",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true,
"vars": "all"
}
],
"@stylistic/ts/quotes": [
"warn",
"single"
],
"@stylistic/ts/semi": [
"warn",
"never"
],
"array-bracket-spacing": [
"warn",
"never"
],
"array-element-newline": [
"warn",
"consistent"
],
"arrow-spacing": "warn",
"comma-dangle": [
"warn",
{
"arrays": "always-multiline",
"exports": "always-multiline",
"functions": "only-multiline",
"imports": "always-multiline",
"objects": "always-multiline"
}
],
"no-useless-rename": "warn",
"@stylistic/ts/no-extra-parens": "warn",
"comma-spacing": [
"warn",
{
"after": true,
"before": false
}
],
"eol-last": [
"warn",
"never"
],
"for-direction": "off",
"function-call-argument-newline": [
"warn",
"consistent"
],
"@stylistic/ts/indent": [
"warn",
2,
{
"SwitchCase": 1,
"flatTernaryExpressions": true
}
],
"require-yield": "off",
"no-case-declarations": "off",
"no-console": [
"warn",
{
"allow": [
"info",
"warn",
"error",
"time",
"timeEnd",
"group",
"groupEnd"
]
}
],
"no-constant-condition": [
"warn"
],
"no-inner-declarations": "off",
"no-multiple-empty-lines": [
"warn",
{
"max": 2,
"maxEOF": 0
}
],
"no-trailing-spaces": "warn",
"object-curly-newline": [
"warn",
{
"ExportDeclaration": {
"minProperties": 4,
"multiline": true
},
"ImportDeclaration": "never",
"ObjectExpression": {
"multiline": true
},
"ObjectPattern": {
"multiline": true
}
}
],
"object-curly-spacing": [
"warn",
"always"
],
"padding-line-between-statements": [
"warn",
{
"blankLine": "never",
"next": "import",
"prev": "import"
}
],
"space-before-function-paren": [
"warn",
{
"anonymous": "always",
"asyncArrow": "always",
"named": "never"
}
],
"prefer-const": ["warn"]
}
}
32 changes: 32 additions & 0 deletions .github/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm
- name: Use Node.js (.nvmrc)
uses: actions/setup-node@v4
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
- run: npm ci
- run: npm run lint && npm test && npm run build
# - name: Upload coverage reports to Codecov
# uses: codecov/[email protected]
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# slug: uqbar-project/wollok-web-tools
# continue-on-error: true
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.17.0
lts/iron
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
]
}
16 changes: 16 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"typescript.tsc.autoDetect": "off",
"typescript.preferences.quoteStyle": "single",
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.tsdk": "node_modules/typescript/lib",
"eslint.enable": true,
"npm.packageManager": "npm",
"typescript.tsserver.experimental.useVsCodeWatcher": false
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Wollok Web Tools

[![npm version](https://badge.fury.io/js/wollok-web-tools.svg)](https://badge.fury.io/js/wollok-web-tools) [![Node.js CI](https://github.com/uqbar-project/wollok-mobile/actions/workflows/node.js.yml/badge.svg)](https://github.com/uqbar-project/wollok-mobile/actions/workflows/node.js.yml) ![GitHub License](https://img.shields.io/github/license/uqbar-project/wollok-web-tools)
[![npm version](https://badge.fury.io/js/wollok-web-tools.svg)](https://badge.fury.io/js/wollok-web-tools) [![Node.js CI](https://github.com/uqbar-project/wollok-web-tools/actions/workflows/node.js.yml/badge.svg)](https://github.com/uqbar-project/wollok-web-tools/actions/workflows/node.js.yml) ![GitHub License](https://img.shields.io/github/license/uqbar-project/wollok-web-tools)

Web tools for Wollok programming language, such as

Expand All @@ -9,7 +9,7 @@ Web tools for Wollok programming language, such as

It will contain both client & server dependencies.

## Installing it locally
## 💻 Installing it locally

```bash
npm install # or npm i
Expand Down
Loading

0 comments on commit d61df18

Please sign in to comment.