Skip to content

Commit

Permalink
Use eslint-config-tsdx, closes jaredpalmer#801
Browse files Browse the repository at this point in the history
  • Loading branch information
zenflow committed Aug 17, 2020
1 parent 9fea19d commit 4b26bfd
Show file tree
Hide file tree
Showing 3 changed files with 440 additions and 166 deletions.
12 changes: 1 addition & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@
"@rollup/plugin-node-resolve": "^7.1.0",
"@rollup/plugin-replace": "^2.2.1",
"@types/jest": "^24.0.15",
"@typescript-eslint/eslint-plugin": "^2.12.0",
"@typescript-eslint/parser": "^2.12.0",
"ansi-escapes": "^4.2.1",
"asyncro": "^3.0.0",
"babel-eslint": "^10.0.3",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"babel-plugin-dev-expression": "^0.2.1",
"babel-plugin-macros": "^2.6.1",
Expand All @@ -67,14 +64,7 @@
"chalk": "^2.4.2",
"enquirer": "^2.3.4",
"eslint": "^6.1.0",
"eslint-config-prettier": "^6.0.0",
"eslint-config-react-app": "^5.0.2",
"eslint-plugin-flowtype": "^3.13.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.14.3",
"eslint-plugin-react-hooks": "^2.2.0",
"eslint-config-tsdx": "^0.2.0",
"execa": "3.2.0",
"fs-extra": "^8.0.1",
"jest": "^24.8.0",
Expand Down
6 changes: 1 addition & 5 deletions src/createEslintConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ export async function createEslintConfig({
const isReactLibrary = Boolean(getReactVersion(pkg));

const config = {
extends: [
'react-app',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
],
extends: ['tsdx'],
settings: {
react: {
// Fix for https://github.com/jaredpalmer/tsdx/issues/279
Expand Down
Loading

0 comments on commit 4b26bfd

Please sign in to comment.