Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from aws-ia/ephemeral_project-updates
Browse files Browse the repository at this point in the history
Updates from project type
  • Loading branch information
troy-ameigh authored Feb 29, 2024
2 parents 3708d8f + 1e5bf27 commit 1727301
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 9 deletions.
54 changes: 50 additions & 4 deletions .config/eslint-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,34 @@
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:import/recommended"
"plugin:import/recommended",
"plugin:import/typescript"
],
"ignorePatterns": [
"**/node_modules/**",
"/built/**",
"/tests/**"
"/tests/**",
"**/jest.config.js"
],
"rules": {
"env": {
"jest": true
},
"rules":
{
"@typescript-eslint/no-explicit-any": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn"],
"react/jsx-props-no-spreading": "off",
"import/prefer-default-export": "off",
"import/no-unresolved": [
2,
{ "caseSensitive": false }
],
"import/extensions": [
"error",
"ignorePackages",
{
"": "never",
"js": "never",
"jsx": "never",
"ts": "never",
Expand Down Expand Up @@ -65,8 +79,40 @@
]
}
]
}
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser" : [
".ts",
".tsx"
]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": [
"*/tsconfig.json",
"tsconfig.json"
]
},
"node":{
"alwaysTryTypes": true
}
}
},
"overrides": [
{
"files": [
"**/*.spec.js",
"**/*.spec.jsx"
],
"env": {
"jest": true
}
}
]
}




4 changes: 2 additions & 2 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is auto-generated, changes will be overwritten
_commit: 67e8514
_src_path: /task/8aba574c-d715-11ee-a30f-8a64fe102fd6/projecttype
_commit: ebf91aa
_src_path: /task/fcfbd6d8-d72e-11ee-a859-a6dbee5d37d3/projecttype
starting_version: v0.0.0
version_file: VERSION

2 changes: 1 addition & 1 deletion .project_automation/static_tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN . ~/.nvm/nvm.sh && source ~/.bashrc && nvm install node && nvm use node

# Install ESLint
RUN npm config set legacy-peer-deps true
RUN source ~/.bashrc && npm i -g eslint @typescript-eslint/eslint-plugin@latest prettier eslint-plugin-prettier@latest eslint-config-prettier eslint-plugin-import @typescript-eslint/parser --save-dev --legacy-peer-deps
RUN source ~/.bashrc && npm i -g eslint @typescript-eslint/eslint-plugin@latest prettier eslint-plugin-prettier@latest eslint-plugin-import eslint-import-resolver-typescript @typescript-eslint/parser --save-dev --legacy-peer-deps

# Install golangci-lint
# binary will be $(go env GOPATH)/bin/golangci-lint
Expand Down
4 changes: 2 additions & 2 deletions .project_automation/static_tests/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ ruff check --config ${PROJECT_PATH}/.config/ruff.toml ${PROJECT_PATH}/ -q
cp ${PROJECT_PATH}/.config/.eslintignore .
npm install @typescript-eslint/eslint-plugin@latest --save-dev
npm i prettier eslint-plugin-import @typescript-eslint/parser --save-dev --legacy-peer-deps
npm i eslint-plugin-prettier@latest --save-dev
npm i eslint-config-prettier@latest --save-dev
npm i eslint-plugin-prettier@latest eslint-config-prettier@latest --save-dev
npm i eslint-import-resolver-typescript
npm i eslint
npx eslint ${PROJECT_PATH}/ --no-eslintrc --config ${PROJECT_PATH}/.config/eslint-config.json --quiet --no-error-on-unmatched-pattern

Expand Down

0 comments on commit 1727301

Please sign in to comment.