Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
458132e
feat: add new eslint file
vaibssingh Jul 25, 2023
2dc6b5b
feat: add ignore folder and fix react version error
vaibssingh Jul 25, 2023
f03f692
feat: add new lint script in package.json
vaibssingh Jul 25, 2023
b064a40
feat: add automatically fixed files
vaibssingh Jul 25, 2023
f697e7a
feat: eslint fixes
vaibssingh Jul 25, 2023
889f724
feat: linting fixes
vaibssingh Jul 25, 2023
fdae1ad
feat: add auto linting on save
vaibssingh Jul 25, 2023
78b3e2d
Merge branch 'main' of github.com:vaibssingh/git-proxy into feat/193-…
vaibssingh Jul 25, 2023
fa27180
feat: fix the import issue in index.js
vaibssingh Jul 30, 2023
4da0d4f
feat: add workflow to run linting on GH
vaibssingh Jul 30, 2023
586d514
feat: use superlinter slim image
vaibssingh Jul 31, 2023
7fc671f
feat: fix linter config file path
vaibssingh Jul 31, 2023
495bcb5
feat: remove superlinter and use npm to run script
vaibssingh Jul 31, 2023
b8adf84
feat: remove npm ci and add npm i
vaibssingh Jul 31, 2023
13e80cb
feat: fix babel issue in eslint
vaibssingh Jul 31, 2023
0106f68
feat: update package-lock.json
vaibssingh Aug 3, 2023
f019c8b
Merge branch 'main' of github.com:vaibssingh/git-proxy into feat/193-…
vaibssingh Aug 3, 2023
aeeb957
feat: fix package-lock, again
vaibssingh Aug 3, 2023
785b8fc
Merge branch 'main' of github.com:finos/git-proxy into feat/193-add-e…
vaibssingh Aug 8, 2023
e337ae1
feat: update package-lock
vaibssingh Aug 8, 2023
26758c4
feat: update package-lock with fresh install
vaibssingh Aug 8, 2023
7960c6d
Merge branch 'main' into feat/193-add-eslint-prettier-autosave
JamieSlome Aug 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
module.exports = {
settings: {
react: {
version: 'detect',
},
},
env: {
browser: true,
commonjs: true,
es2021: true,
node: true,
},
extends: ['plugin:react/recommended', 'prettier', 'google'],
parser: '@babel/eslint-parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
babelOptions: {
presets: ['@babel/preset-react'],
},
ecmaVersion: 2020,
sourceType: 'module',
requireConfigFile: false,
},
plugins: ['prettier', 'react'],
rules: {
'prettier/prettier': ['error', { singleQuote: true }],
'object-curly-spacing': ['error', 'always'],
'space-before-function-paren': 'off',
'operator-linebreak': 'off',
'quote-props': [
'error',
'as-needed',
{ keywords: false, unnecessary: true, numbers: false },
],
indent: 'off',
},
ignorePatterns: ['build/'],
};
24 changes: 0 additions & 24 deletions .eslintrc.js

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Lint Code Base

on: [push, pull_request]

env: # environment variables (available in any part of the action)
NODE_VERSION: 16

jobs:
linting:
name: Linting
runs-on: ubuntu-latest
steps: # list of steps
- name: Install NodeJS
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}

- name: Code Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Dependencies
run: npm i

- name: Code Linting
run: npm run lint
9 changes: 8 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@
"files.eol": "\n",
"terminal.integrated.disableLineWrapping": true,
"debug.console.wordWrap": false,
"editor.wordWrap":"off"
"editor.wordWrap": "off",
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"eslint.validate": [
"javascript",
"javascriptreact",
]
}
Loading