Skip to content
This repository has been archived by the owner on Jun 12, 2022. It is now read-only.

Commit

Permalink
fix: move eslint conf out of template.json
Browse files Browse the repository at this point in the history
  • Loading branch information
rrebase committed Jan 24, 2020
1 parent c1100f9 commit f31048a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 22 deletions.
22 changes: 0 additions & 22 deletions template.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,6 @@
"lint": "tsc --noEmit && eslint '*/**/*.{ts,tsx}'",
"lint:fix": "yarn lint --quiet --fix"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off"
},
"settings": {
"react": {
"version": "detect"
}
},
"ignorePatterns": [
"coverage/",
"node_modules/",
"src/serviceWorker.ts"
]
},
"jest": {
"coveragePathIgnorePatterns": [
"./src/index.tsx",
Expand Down
18 changes: 18 additions & 0 deletions template/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off"
},
"settings": {
"react": {
"version": "detect"
}
},
"ignorePatterns": ["coverage/", "node_modules/", "src/serviceWorker.ts"]
}
1 change: 1 addition & 0 deletions template/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* istanbul ignore file */
import React from "react";
import ReactDOM from "react-dom";
import "./index.scss";
Expand Down
1 change: 1 addition & 0 deletions template/src/serviceWorker.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* istanbul ignore file */
// This optional code is used to register a service worker.
// register() is not called by default.

Expand Down

0 comments on commit f31048a

Please sign in to comment.