Skip to content

Commit

Permalink
fix: node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
DonghyukJacobJang committed Jul 6, 2022
1 parent e5cfc81 commit e5ec17b
Show file tree
Hide file tree
Showing 5 changed files with 63,121 additions and 7,749 deletions.
66 changes: 27 additions & 39 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
{
"extends": [
"react-app",
"react-jam3",
"next/core-web-vitals",
"plugin:@next/next/recommended",
"plugin:import/typescript",
"prettier",
"plugin:prettier/recommended",
"plugin:sonarjs/recommended"
],
"plugins": ["jam3", "simple-import-sort", "sonarjs"],
"plugins": ["jam3", "simple-import-sort", "sonarjs", "promise"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"generators": true,
"experimentalObjectRestSpread": true
}
},
"settings": {
"react": {
"version": "detect"
Expand All @@ -21,7 +30,17 @@
}
},
"rules": {
"import/order": "off",
"import/no-webpack-loader-syntax": "off",
"import/no-anonymous-default-export": "off",
"import/no-unresolved": ["error", { "ignore": ["svg-inline-loader"] }],
"import/named": "error",
"import/default": "error",
"import/first": "error",
"import/order": ["error", { "groups": ["builtin", "external", ["parent", "sibling", "index"]] }],
"import/no-extraneous-dependencies": [
"warn",
{ "devDependencies": true, "optionalDependencies": true, "peerDependencies": false }
],
"simple-import-sort/exports": "warn",
"simple-import-sort/imports": [
"warn",
Expand All @@ -41,7 +60,9 @@
"curly": [2, "multi-line", "consistent"],
"no-var": "error",
"prettier/prettier": "warn",
"import/no-anonymous-default-export": "off",
"promise/param-names": "error",
"promise/no-return-wrap": "error",
"jsx-a11y/href-no-hash": "off",
"jam3/no-sanitizer-with-danger": [
2,
{
Expand All @@ -58,41 +79,8 @@
"aspects": ["invalidHref", "preferButton"]
}
],
"react/sort-comp": [
1,
{
"order": ["static-methods", "lifecycle", "everything-else", "render"],
"groups": {
"lifecycle": [
"displayName",
"propTypes",
"contextTypes",
"childContextTypes",
"mixins",
"statics",
"defaultProps",
"constructor",
"getDefaultProps",
"getInitialState",
"state",
"getChildContext",
"componentWillMount",
"UNSAFE_componentWillMount",
"componentDidMount",
"componentWillReceiveProps",
"UNSAFE_componentWillReceiveProps",
"shouldComponentUpdate",
"componentWillUpdate",
"UNSAFE_componentWillUpdate",
"componentDidUpdate",
"componentWillUnmount",
"componentWillAppear",
"componentWillEnter",
"componentWillLeave"
]
}
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"@next/next/no-img-element": "off",
"@typescript-eslint/no-explicit-any": ["error"]
},
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v14.17.6
v16.15.1
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:14-bullseye
FROM node:16.15.1-bullseye
LABEL maintainer_devops="michael.silva@jam3.com"
LABEL maintainer_architect="iran.reyes@jam3.com"

# Upgrade npm
RUN npm install -g npm@7
RUN npm install -g npm@8

# Set working directory
WORKDIR /usr/src/app
Expand Down
Loading

0 comments on commit e5ec17b

Please sign in to comment.