Skip to content

Commit

Permalink
added workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
e11sy committed Aug 12, 2024
1 parent 7edbe7c commit 1fb04fd
Show file tree
Hide file tree
Showing 10 changed files with 1,565 additions and 4,111 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build check

on:
push:
branches:
- 'main'
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
name: Build notes.web
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install dependencies
run: yarn install

- name: Build app
run: yarn build
32 changes: 32 additions & 0 deletions .github/workflows/eslint-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: ESLint

on:
push:
branches:
- 'main'
pull_request:
types: [opened, synchronize, reopened]

jobs:
eslint:
name: Run eslint check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install dependencies
run: |
yarn install
- name: Run ESLint
run: yarn lint

- name: Install codex-ui dependencies
run: |
yarn install
working-directory: ./codex-ui

- name: Run ESLint on codex-ui
run: yarn lint
working-directory: ./codex-ui
68 changes: 0 additions & 68 deletions .github/workflows/main.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"eslint.workingDirectories": ["./"],

// Enable the ESlint flat config support
"eslint.useFlatConfig": true,

// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,

// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},

// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"typescript",
"vue",
"html",
]
}
25 changes: 25 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import CodeX from 'eslint-config-codex';

/**
* @todo connect architecture config
*/
export default [
...CodeX,
{
name: 'ts-editorjs/utils',

/**
* This are the options for typescript files
*/
languageOptions: {
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: './',
sourceType: 'module', // Allows for the use of imports
},
},
rules: {
'n/no-unpublished-import': ['off'],
},
},
];
194 changes: 0 additions & 194 deletions jest.config.ts

This file was deleted.

Loading

0 comments on commit 1fb04fd

Please sign in to comment.