forked from kaansoral/adventureland
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from FreezePhoenix/Nexus
Merge (Incorporated Prettier and ESLint)
- Loading branch information
Showing
15 changed files
with
20,155 additions
and
11,365 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,17 @@ | ||
name: Code Quality | ||
|
||
on: | ||
- pull_request | ||
- push | ||
|
||
jobs: | ||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: npm ci | ||
working-directory: node | ||
- name: Run ESLint | ||
run: npm run lint | ||
working-directory: node |
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,3 @@ | ||
{ | ||
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"] | ||
} |
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,13 @@ | ||
{ | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"prettier.configPath": "./node/.prettierrc", | ||
"prettier.printWidth": 120, | ||
"prettier.tabWidth": 2, | ||
"prettier.trailingComma": "all", | ||
"prettier.semi": true, | ||
"prettier.useTabs": true, | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"extends": ["eslint:recommended", "eslint-config-prettier"], | ||
"env": { | ||
"node": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 10 | ||
}, | ||
"plugins": ["prettier"], | ||
"rules": { | ||
"no-constant-condition": "off", | ||
"no-dupe-else-if": "off", | ||
"indent": "off", | ||
"no-empty": "warn", | ||
"no-inner-declarations": "warn", | ||
"no-unreachable": "warn", | ||
"no-undef": "warn", | ||
"no-unused-vars": "warn", | ||
"no-redeclare": "warn", | ||
"curly": "error", | ||
"prettier/prettier": "error", | ||
"one-var": ["error", "never"], | ||
"no-sequences": "error" | ||
} | ||
} |
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,10 @@ | ||
{ | ||
"tabWidth": 2, | ||
"singleQuote": false, | ||
"printWidth": 120, | ||
"trailingComma": "all", | ||
"semi": true, | ||
"bracketSpacing": true, | ||
"arrowParens": "always", | ||
"useTabs": true | ||
} |
Oops, something went wrong.