Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
groups:
github-actions:
patterns:
- '*'
schedule:
interval: 'weekly'
44 changes: 44 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: 'CodeQL'

on:
push:
branches:
- '*'
- '*/*'
- '**'
pull_request:
branches:
- '*'
- '*/*'
- '**'
schedule:
- cron: '21 23 * * 5'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ['javascript', 'typescript']

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: security-extended,security-and-quality

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
16 changes: 16 additions & 0 deletions .github/workflows/dep-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Dependency Review'
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v4
with:
persist-credentials: false
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ dist/
build

coverage
test

package-lock.json
27 changes: 20 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Code Cause Web
# Code Cause Site

> Main site for code cause (codecause.dev). Using [Lit](https://lit.dev/) but this may be subject to change.
Main site for code cause

<a href="https://discord.gg/HM5tZPhxg5"><img alt="discord-community" src="https://img.shields.io/badge/Join_Community-7289DA?style=flat&logo=discord&logoColor=white" /></a>
![PRs Welcome](https://img.shields.io/badge/PRs-welcome-blue.svg)

---
Expand All @@ -15,11 +16,11 @@
## Installation

```bash
git clone git@github.com:Code-Cause-Collective/code-cause-web.git
git clone git@github.com:Code-Cause-Collective/codecause.dev.git code-cause-site
```

```bash
cd code-cause-web
cd code-cause-site
```

```bash
Expand All @@ -34,17 +35,29 @@ npm install
npm run dev
```

`Build`
`build`

```bash
npm run build
```

`lint`

```bash
npm run lint
```

`format`

```bash
npm run format
```

## Contributing

### Issues and PRs
### Issues, Features, and PRs

If you have suggestions for how this project could be improved, or want to report a bug, open an issue! We'd love all and any contributions. If you have questions, post question within our [slack community](https://join.slack.com/t/codecause/shared_invite/zt-38cobkbtz-u5kTq1cmKPZN9d5fpkZhkQ).
If you have suggestions for how this project could be improved, or want to report a bug, open an issue! We'd love all and any contributions. If you have questions, post question within our [discord community](https://discord.gg/HM5tZPhxg5).

### Submitting a pull request

Expand Down
35 changes: 0 additions & 35 deletions eslint.config.cjs

This file was deleted.

43 changes: 43 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import liteslint from 'eslint-plugin-lit';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import globals from 'globals';
import { globalIgnores } from 'eslint/config';

export default [
eslint.configs.recommended,
...tseslint.configs.recommended,
...tseslint.configs.stylistic,
eslintPluginPrettierRecommended,
liteslint.configs['flat/recommended'],
globalIgnores(['dist/**/*']),
{
files: ['**/*.{js,ts}'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.browser,
},
},
plugins: {},
rules: {
// Prettier
'prettier/prettier': 'error',
// Typescript
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/prefer-for-of': 'off',
// Lit
'lit/no-legacy-template-syntax': 'error',
'lit/no-template-arrow': 'off',
},
},
{
files: ['tests/**/*.{js,ts}'],
rules: {},
},
];
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
content="https://res.cloudinary.com/dlsmexwxn/image/upload/v1736167788/ccw-img_htd4c0.png"
/>
<title>Code Cause</title>
<base href="/" />
<link rel="stylesheet" href="./src/main.css" />
<script type="module" src="./src/main.ts"></script>
</head>
Expand Down
Loading
Loading