Skip to content

Commit

Permalink
Update .eslintrc.js, github-action.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
khkim6040 committed Mar 24, 2024
1 parent b4307d5 commit 110a2ee
Show file tree
Hide file tree
Showing 5 changed files with 2,307 additions and 882 deletions.
33 changes: 14 additions & 19 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,25 @@ module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: ["eslint:recommended", "plugin:react/recommended", "prettier"],
overrides: [
{
env: {
node: true,
},
files: [".eslintrc.{js,cjs}"],
parserOptions: {
sourceType: "script",
},
settings: {
react: {
version: 'detect',
},
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:prettier/recommended',
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ["react", "prettier"],
plugins: ['react'],
rules: {
"prettier/prettier": "error",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"no-unused-vars": "off",
"no-useless-escape": "off",
"no-undef": "off",
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
},
};
2 changes: 1 addition & 1 deletion .github/workflows/github-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Run Prettier
run: npx prettier --check .
- name: Run ESLint
run: npx eslint .
run: npx eslint . --ext .js,.jsx --ignore-path .gitignore

docker_build_and_push:
name: Docker build and push
Expand Down
5 changes: 4 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module.exports = {
env: {
node: true,
},
reactStrictMode: true,
}
};
Loading

0 comments on commit 110a2ee

Please sign in to comment.