From 6f0e42caea4737c4ea5e7f479ce853c9870fd405 Mon Sep 17 00:00:00 2001 From: Wenyi Chen Date: Tue, 20 Jul 2021 14:22:59 -0700 Subject: [PATCH] Initial commit of shared eslint config --- index.js | 8 ++++++++ package.json | 25 +++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 index.js create mode 100644 package.json diff --git a/index.js b/index.js new file mode 100644 index 0000000..8b3811e --- /dev/null +++ b/index.js @@ -0,0 +1,8 @@ +module.exports = { + extends: [ + 'airbnb-typescript', + 'airbnb/hooks', + 'plugin:@typescript-eslint/recommended', + 'plugin:@typescript-eslint/recommended-requiring-type-checking', + ], +}; \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..a50e136 --- /dev/null +++ b/package.json @@ -0,0 +1,25 @@ +{ + "name": "eslint-tinystacks-config", + "version": "0.1.0", + "private": true, + "scripts": { + "lint": "eslint ." + }, + "devDependencies": { + "@babel/core": "^7.2.0", + "@babel/eslint-parser": "^7.12.13", + "@wordpress/eslint-plugin": "^4.0.0", + "eslint": "^7.2.0", + "eslint-config-airbnb": "^18.2.1", + "eslint-config-airbnb-base": "^14.2.1", + "eslint-config-prettier": "^7.1.0", + "eslint-plugin-import": "^2.22.1", + "eslint-plugin-jest": "^24.1.3", + "eslint-plugin-jsdoc": "^31.2.0", + "eslint-plugin-jsx-a11y": "^6.4.1", + "eslint-plugin-prettier": "^3.3.1", + "eslint-plugin-react": "^7.22.0", + "eslint-plugin-react-hooks": "^4 || ^3 || ^2.3.0 || ^1.7.0", + "prettier": "^2.2.1" + } + } \ No newline at end of file