From 7c302335e92f56db764e27a249ddc5a8d2bfa973 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Mon, 28 Sep 2020 16:08:03 +0530 Subject: [PATCH] eslint - configure and setup auto linting --- .eslintignore | 13 +++++++++++++ .eslintrc.json | 3 +++ package.json | 5 +++-- 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 .eslintignore create mode 100644 .eslintrc.json diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..c1e2864 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,13 @@ +src/engine262 +src/tailwind.output.css + +# dependencies +/node_modules +/.pnp +.pnp.js + +# testing +/coverage + +# production +/build diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..5e603ec --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "react-app" +} diff --git a/package.json b/package.json index ea18d73..6fb462d 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,8 @@ "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", - "eject": "react-scripts eject" + "eject": "react-scripts eject", + "lint": "eslint --ext js,jsx,ts,tsx src" }, "eslintConfig": { "extends": "react-app" @@ -58,4 +59,4 @@ "last 1 safari version" ] } -} \ No newline at end of file +}