From 8909112b3ad3f315b71131f6290f14ff3088f973 Mon Sep 17 00:00:00 2001 From: farhadyasir Date: Fri, 18 Dec 2020 19:36:18 +1100 Subject: [PATCH] chore: fix eslint --- .eslintrc | 2 +- package.json | 4 +- src/docs/exampleSnippets.js | 2 +- yarn.lock | 113 ++++++++++++++++++++++++++++++++++++ 4 files changed, 118 insertions(+), 3 deletions(-) diff --git a/.eslintrc b/.eslintrc index 0c65df9..e509776 100644 --- a/.eslintrc +++ b/.eslintrc @@ -15,6 +15,6 @@ "react" ], "rules": { - "import/no-extraneous-dependencies": false + "import/no-extraneous-dependencies": 0 } } diff --git a/package.json b/package.json index 174099d..b6b571f 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "build:docs": "rm -rf docs/ && webpack -p --progress ", "build": "npm run build:component && npm run build:docs", "start": "npm run build:docs && webpack-dev-server", - "test": "jest" + "test": "jest", + "lint": "eslint src" }, "keywords": [ "react", @@ -35,6 +36,7 @@ "@babel/plugin-proposal-class-properties": "7.5.5", "@babel/preset-env": "7.6.3", "@babel/preset-react": "7.6.3", + "babel-eslint": "10.1.0", "babel-loader": "8.0.6", "copy-webpack-plugin": "6.0.3", "css-loader": "3.2.0", diff --git a/src/docs/exampleSnippets.js b/src/docs/exampleSnippets.js index fb81f97..812fa7c 100644 --- a/src/docs/exampleSnippets.js +++ b/src/docs/exampleSnippets.js @@ -1,5 +1,5 @@ export default { - installation: "npm install react-search-field --save ", + installation: 'npm install react-search-field --save ', basicExample: `import SearchField from 'react-search-field';