-
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.
* refactor: switch to plain css * refactor: uninstall tailwind, add default styles * setup: add eslint configs, include eslint and prettier in github workflow * add prettier ignore * fix pull request template * refactor: update to use scss * fix: prettier issues * fix: styling issues
- Loading branch information
Showing
21 changed files
with
10,284 additions
and
7,737 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,35 @@ | ||
module.exports = { | ||
extends: [ | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:astro/recommended", | ||
"plugin:astro/jsx-a11y-recommended", | ||
], | ||
overrides: [ | ||
{ | ||
files: ["*.astro"], | ||
parser: "astro-eslint-parser", | ||
parserOptions: { | ||
parser: "@typescript-eslint/parser", | ||
extraFileExtensions: [".astro"], | ||
}, | ||
}, | ||
{ | ||
files: [".jsx", ".tsx"], | ||
extends: ["plugin:react/recommended"], | ||
plugins: ["react"], | ||
rules: { | ||
"react/react-in-jsx-scope": "off", | ||
"react/jsx-uses-react": "off", | ||
}, | ||
}, | ||
], | ||
settings: { | ||
"import/resolver": { | ||
typescript: {}, | ||
}, | ||
}, | ||
rules: { | ||
"import/prefer-default-export": ["off"], | ||
}, | ||
plugins: ["@typescript-eslint", "import"], | ||
}; |
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,46 +1,56 @@ | ||
--- | ||
name: Compiler | ||
name: Lint | ||
|
||
############################# | ||
# Start the job on push # | ||
# Start the job on push # | ||
############################# | ||
on: | ||
push: | ||
branches-ignore: [main] | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches-ignore: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
############### | ||
# Set the Job # | ||
############### | ||
jobs: | ||
build: | ||
# Name the Job | ||
name: Run TypeScript compiler | ||
# Set the agent to run on | ||
runs-on: ubuntu-latest | ||
build: | ||
# Name the Job | ||
name: Run ESLint, Prettier, and TypeScript compiler | ||
# Set the agent to run on | ||
runs-on: ubuntu-latest | ||
|
||
################## | ||
# Load all steps # | ||
################## | ||
steps: | ||
########################## | ||
# Checkout the code base # | ||
########################## | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
# Full git history is needed to get a proper | ||
# list of changed files within `super-linter` | ||
fetch-depth: 0 | ||
################## | ||
# Load all steps # | ||
################## | ||
steps: | ||
########################## | ||
# Checkout the code base # | ||
########################## | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
# Full git history is needed to get a proper | ||
# list of changed files within `super-linter` | ||
fetch-depth: 0 | ||
|
||
################################ | ||
# Install packages # | ||
################################ | ||
- name: Install packages | ||
run: npm ci | ||
################################ | ||
# Check for TypeScript errors # | ||
################################ | ||
- name: Run TypeScript compiler (tsc) | ||
run: npx tsc --noEmit | ||
################################ | ||
# Install packages # | ||
################################ | ||
- name: Install packages | ||
run: npm ci | ||
################################ | ||
# Lint codebase # | ||
################################ | ||
- name: Run ESLint | ||
run: npx eslint . | ||
################################ | ||
# Check Prettier on codebase # | ||
################################ | ||
- name: Run Prettier | ||
run: npx prettier --check . | ||
################################ | ||
# Check for TypeScript errors # | ||
################################ | ||
- name: Run TypeScript compiler (tsc) | ||
run: npx tsc --noEmit |
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,12 @@ | ||
.github/ | ||
.vscode/ | ||
|
||
README.md | ||
|
||
.eslintrc.cjs | ||
.prettierrc.cjs | ||
astro.config.mjs | ||
|
||
package-lock.json | ||
package.json | ||
tsconfig.json |
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,9 @@ | ||
module.exports = { | ||
arrowParens: "avoid", | ||
bracketSameLine: false, | ||
bracketSpacing: true, | ||
printWidth: 80, | ||
semi: true, | ||
singleQuote: true, | ||
trailingComma: "all", | ||
}; |
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,4 @@ | ||
{ | ||
"editor.tabSize": 2, | ||
"editor.formatOnSave": 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
import { defineConfig } from 'astro/config'; | ||
import tailwind from "@astrojs/tailwind"; | ||
import { defineConfig } from "astro/config"; | ||
|
||
import react from "@astrojs/react"; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
integrations: [tailwind(), react()] | ||
}); | ||
integrations: [react()], | ||
}); |
Oops, something went wrong.