-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: astro and vue support; fix some bugs and refactor all configs
- Loading branch information
1 parent
59decbe
commit c2b3232
Showing
25 changed files
with
633 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: "Dependabot Auto-Merge" | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
auto-merge: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ahmadnassri/action-dependabot-auto-merge@v2.6.6 | ||
with: | ||
target: minor | ||
github-token: ${{ github.token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: ["develop"] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: ["develop"] | ||
schedule: | ||
- cron: "0 9 * * 2" | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: ["javascript"] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] | ||
# Use only 'java' to analyze code written in Java, Kotlin or both | ||
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both | ||
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
|
||
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | ||
# queries: security-extended,security-and-quality | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun | ||
|
||
# If the Autobuild fails above, remove it and uncomment the following three lines. | ||
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. | ||
|
||
# - run: | | ||
# echo "Run, Build Application using script" | ||
# ./location_of_script_within_repo/buildscript.sh | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:${{matrix.language}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: "Push Testing" | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
steps: | ||
# Checks out git | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# Sets Bun.js up | ||
- name: Use Bun.js | ||
uses: oven-sh/setup-bun@v1.2.0 | ||
with: | ||
bun-version: latest | ||
|
||
# Runs any test scripts | ||
- name: Unit Tests | ||
run: | | ||
bun install | ||
bun run test | ||
env: | ||
CI: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,40 @@ | ||
import eslintConfig from "./src/index.mjs"; | ||
|
||
export default eslintConfig( | ||
{ | ||
prettier: true, | ||
|
||
json: true, | ||
|
||
yml: true, | ||
|
||
markdown: true, | ||
typescript: true, | ||
toml: true, | ||
|
||
svelte: true, | ||
react: false, | ||
}, | ||
[ | ||
{ | ||
rules: { | ||
"n/no-missing-import": "off", | ||
}, | ||
}, | ||
], | ||
); | ||
// eslint.config.js | ||
import ks from "./src/index.mjs"; | ||
|
||
export default ks({ | ||
// An array of paths to ignore. Defaults to ignoring node_modules and dist. | ||
ignores: ["**/node_modules/*", "**/dist/*"], | ||
|
||
// Enables Prettier support and ties to the linter. Defaults to false. You need to provide your own .prettierrc. | ||
prettier: false, | ||
|
||
// Toggles TypeScript support. Defaults to true. | ||
typescript: true, | ||
|
||
// A path pointing to a tsconfig file for TypeScript support. Defaults to true to enable default behavior. | ||
project: ["tsconfig.json"], | ||
|
||
// Enables React support. Requires eslint-plugin-react, eslint-plugin-react-hooks, and eslint-plugin-jsx-a11y to be installed. Defaults to false. | ||
react: false, | ||
|
||
// Enables Svelte support. Requires eslint-plugin-svelte, svelte-eslint-parser, and svelte to be installed. Defaults to false. | ||
svelte: false, | ||
|
||
// Enables Astro support. Requires eslint-plugin-astro, eslint-plugin-jsx-a11y, and astro-eslint-parser to be installed. Defaults to false. | ||
astro: false, | ||
|
||
// Enables Vue support. Requires eslint-plugin-vue and vue-eslint-parser to be installed. Defaults to false. | ||
vue: false, | ||
|
||
// Enables linting JSON, JSONC, and JSON5 files. Defaults to false. | ||
json: false, | ||
|
||
// Enables linting code snippets inside of Markdown/MD files. Defaults to false. | ||
markdown: false, | ||
|
||
// Enables linting TOML files. Defaults to false. | ||
toml: false, | ||
|
||
// Enables linting YAML/YML files. Defaults to false. | ||
yml: false, | ||
}); |
Oops, something went wrong.