Skip to content

Commit

Permalink
--chore: add all project
Browse files Browse the repository at this point in the history
  • Loading branch information
aimalexe committed Oct 25, 2023
1 parent 6304bc9 commit 6d33643
Show file tree
Hide file tree
Showing 81 changed files with 8,880 additions and 110 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
# editorconfig-tools is unable to ignore longs strings or urls
max_line_length = off

[*.md]
indent_size = false
60 changes: 0 additions & 60 deletions .env.example.js

This file was deleted.

30 changes: 26 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
{
"env": {
"browser": true,
"commonjs": true,
"node": true,
"es2021": true
},

"parserOptions": {
"ecmaVersion": "latest"
"sourceType": "module",
"ecmaVersion": 2021
},

"extends": [
"plugin:unicorn/all"
],

"plugins": [
"unicorn"
],

"rules": {
"indent": ["error", 4], // Enforce 4 spaces for indentation
"no-tabs": "error", // Disallow tabs for indentation
Expand All @@ -21,7 +32,18 @@
"comma-dangle": ["error", "always-multiline"], // Enforce trailing commas in multiline objects/arrays
"no-multi-spaces": "error", // Disallow multiple spaces
"no-trailing-spaces": "error", // Disallow trailing spaces
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }] // Allow up to 2 consecutive empty lines
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }], // Allow up to 2 consecutive empty lines

"unicorn/empty-brace-spaces": "error",
"unicorn/prefer-module": "error",
"unicorn/filename-case": [
"error",
{
"case": "kebabCase",
"ignore": [
"^(?:[A-Z][a-z]*-)*[A-Z][a-z]*(?:-[A-Z][a-z]*)*(?:\\.test|\\.spec)?\\.js$" // A pascal + kebab case like Some-Pascal-Kebab.js or .test.js or .spec.js
]
}
]
}

}
36 changes: 18 additions & 18 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
name: Build, Test, and Lint

on:
push:
branches:
- main
push:
branches:
- main

jobs:
build-test-lint:
runs-on: ubuntu-latest
build-test-lint:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies
run: npm install
- name: Install dependencies
run: npm install

- name: Run ESLint
run: npm run lint
- name: Run ESLint
run: npm run lint

- name: Run tests
run: npm test
- name: Run tests
run: npm test
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# A temperory file to test some expression
temp.js

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

Expand Down Expand Up @@ -73,12 +76,14 @@ web_modules/
.yarn-integrity

# dotenv environment variable files
env/development.json
env/test.json
env/production.json
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
.env.js

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand Down
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"glenn2223.live-sass"
]
}
18 changes: 17 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
{
"cSpell.words": [
"alphanum",
"camelcase",
"dirsfirst",
"integ",
"middlewares",
"Stackoverflow"
],
"liveSassCompile.settings.formats": [
{
"format": "compressed",
"extensionName": ".min.css",
"savePath": "/public/styles",
"savePathReplacementPairs": null
}
],
"liveSassCompile.settings.includeItems": [
"/src/assets/scss/index.scss" // Adjust the path to match your project's directory structure
]
}
}
Loading

0 comments on commit 6d33643

Please sign in to comment.