Skip to content

Commit

Permalink
added new lint rule and suppressed failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Devin Witherspoon committed Nov 13, 2020
1 parent 6130f2f commit f6de321
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"browser": true,
"es2021": true
},
"plugins": ["react", "@typescript-eslint", "import"],
"extends": ["plugin:react/recommended"],
"parser": "@typescript-eslint/parser",
"settings": {
Expand All @@ -22,6 +23,7 @@
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {}
"rules": {
"import/extensions": ["error", "always"]
}
}
2 changes: 2 additions & 0 deletions src/App.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React from 'react';
import { render, screen } from '@testing-library/react';
// TODO: add extension
// eslint-disable-next-line import/extensions
import App from './App';

test('renders learn react link', () => {
Expand Down
4 changes: 4 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import './index.css';

// TODO: add extension
// eslint-disable-next-line import/extensions
import App from './App';
import React from 'react';
import ReactDOM from 'react-dom';
// TODO: add extension
// eslint-disable-next-line import/extensions
import reportWebVitals from './reportWebVitals';

ReactDOM.render(
Expand Down

0 comments on commit f6de321

Please sign in to comment.