Skip to content

Commit

Permalink
LF-3085 update lint-staged config and eslintrc.json
Browse files Browse the repository at this point in the history
  • Loading branch information
SayakaOno committed Nov 29, 2023
1 parent 2f202fa commit 11893c8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/webapp/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
"amd": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:storybook/recommended"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:storybook/recommended",
"plugin:jsonc/recommended-with-json"
],
"rules": {
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
'*.{js,jsx}': ['eslint --quiet --fix'],
'*.{js,jsx,ts,tsx,json,md,html}': 'prettier --write',
'*.{js,jsx,ts,tsx,json,md,html}': ['prettier --write', 'eslint --quiet --fix'],
'*.{ts,tsx}': [() => 'tsc -p tsconfig.json --noEmit'],
};

0 comments on commit 11893c8

Please sign in to comment.