Skip to content

Commit

Permalink
Fix eslint setup
Browse files Browse the repository at this point in the history
  • Loading branch information
IRBorisov committed Apr 28, 2024
1 parent cd997ea commit 4097b5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ module.exports = {
'ecmaVersion': 12,
'sourceType': 'module'
},
'settings': {
'react': {
'version': 'detect'
}
},
'plugins': ['react', '@typescript-eslint'],
'rules': {
'no-prototype-builtins': 'off',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "vitest --passWithNoTests",
"test:coverage": "vitest run --coverage --passWithNoTests",
"prettier": "prettier --loglevel warn --write 'src/**/*.{ts,tsx,js,jsx}'",
"lint": "eslint --ext js,ts,tsx",
"lint": "eslint --ext js,ts,tsx src",
"lint:fix": "eslint --ext js,ts,tsx --fix src",
"start": "storybook dev -p 9009",
"build-storybook": "storybook build",
Expand Down

0 comments on commit 4097b5b

Please sign in to comment.