Skip to content

Commit

Permalink
馃敡 Configured new eslintrules
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldelcore committed Jul 23, 2020
1 parent fa15082 commit 957951b
Show file tree
Hide file tree
Showing 6 changed files with 165 additions and 76 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Expand Up @@ -6,6 +6,7 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
'plugin:jsx-a11y/recommended',
],
plugins: ['import', 'jsx-a11y', 'react', 'react-hooks'],
parserOptions: {
Expand All @@ -32,4 +33,5 @@ module.exports = {
version: 'detect',
},
},
ignorePatterns: ['dist', 'node_modules'],
};
1 change: 1 addition & 0 deletions examples/0_Palette.tsx
@@ -1,3 +1,4 @@
/* eslint-disable jsx-a11y/accessible-emoji */
/** @jsx jsx */
import { storiesOf } from '@storybook/react';
import { useState } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -52,7 +52,7 @@
"@typescript-eslint/eslint-plugin": "^1.4.2",
"@typescript-eslint/parser": "^1.4.2",
"babel-loader": "^8.0.6",
"eslint": "^5.15.1",
"eslint": "^7.5.0",
"eslint-config-prettier": "^4.1.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/select/Select.tsx
Expand Up @@ -42,7 +42,7 @@ const Select: FC<SelectProps> = props => {
className={classNames}
id={props.id}
name={props.name}
onChange={props.onChange}
onBlur={props.onChange}
value={props.value || props.defaultValue}
disabled={props.disabled}
>
Expand Down
1 change: 1 addition & 0 deletions packages/components/tabs/TabList.tsx
Expand Up @@ -37,6 +37,7 @@ const TabList: FC<TabListProps> = ({ label, children }) => {
return (
<div
role="tablist"
tabIndex={0}
aria-label={label}
onKeyDown={onKeyDown}
css={css`
Expand Down

0 comments on commit 957951b

Please sign in to comment.