Skip to content

Commit

Permalink
add prettier ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
jinkang-0 committed Jan 4, 2024
1 parent 2bd767c commit 0c8a7a8
Show file tree
Hide file tree
Showing 10 changed files with 9,985 additions and 9,968 deletions.
62 changes: 31 additions & 31 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,35 +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: {}
}
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"],
},
},
rules: {
"import/prefer-default-export": ["off"]
{
files: [".jsx", ".tsx"],
extends: ["plugin:react/recommended"],
plugins: ["react"],
rules: {
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off",
},
},
plugins: ["@typescript-eslint", "import"]
],
settings: {
"import/resolver": {
typescript: {},
},
},
rules: {
"import/prefer-default-export": ["off"],
},
plugins: ["@typescript-eslint", "import"],
};
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
### What's new?

[//]: "Describe what's new in a few lines or bullet points. Feel free to add screenshots!"
84 changes: 42 additions & 42 deletions .github/workflows/compiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,52 +5,52 @@ name: Lint
# 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 ESLint, Prettier, and 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
################################
# 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
################################
# 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
12 changes: 12 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.github/
.vscode/

README.md

.eslintrc.js
.prettierrc.js
astro.config.mjs

package-lock.json
package.json
tsconfig.json
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import react from "@astrojs/react";

// https://astro.build/config
export default defineConfig({
integrations: [react()]
integrations: [react()],
});
Loading

0 comments on commit 0c8a7a8

Please sign in to comment.