From a20de86bc624e8677aa711bbc24eda6b02148933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9E=D0=BB=D0=B5=D0=B3=20=D0=94=D1=83=D1=82=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE?= Date: Fri, 1 May 2020 14:12:55 +0300 Subject: [PATCH] 0.3.1-beta --- .eslintrc.js | 35 +++-------------------------------- package-lock.json | 7 ++++++- package.json | 7 ++++--- 3 files changed, 13 insertions(+), 36 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index dea5d39..81b5159 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -10,7 +10,8 @@ module.exports = { extends: [ 'react-app', 'plugin:react/recommended', - 'plugin:@typescript-eslint/recommended' + 'plugin:@typescript-eslint/recommended', + 'wezom-relax-react-ts' ], settings: { react: { @@ -18,37 +19,7 @@ module.exports = { } }, rules: { - '@typescript-eslint/camelcase': 0, - '@typescript-eslint/explicit-function-return-type': 0, - '@typescript-eslint/interface-name-prefix': [ 2, 'always' ], - '@typescript-eslint/generic-type-naming': [ 2, '^G([A-Z][a-zA-Z]*)?$' ], - '@typescript-eslint/no-empty-interface': 0, - '@typescript-eslint/no-explicit-any': 0, - '@typescript-eslint/no-var-requires': 0, - '@typescript-eslint/no-unused-vars': [ - 2, - { - 'vars': 'all', - 'args': 'none', - 'caughtErrors': 'all' - } - ], - 'indent': [ - 'error', - 'tab', - { - 'SwitchCase': 1 - } - ], 'jsx-a11y/anchor-is-valid': 0, - 'no-extra-boolean-cast': 0, - 'no-sequences': 2, - 'no-tabs': 0, - 'no-unused-vars': 0, - 'react/prop-types': 0, - 'semi': [ - 'error', - 'always' - ] + 'react/prop-types': 0 } }; diff --git a/package-lock.json b/package-lock.json index 5c3c2fb..a571d24 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "eslint-config-wezom-relax-react-ts", - "version": "0.2.2-alpha", + "version": "0.3.1-beta", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -16,6 +16,11 @@ "requires": { "confusing-browser-globals": "^1.0.9" } + }, + "eslint-config-wezom-relax-ts": { + "version": "0.3.1-beta", + "resolved": "https://registry.npmjs.org/eslint-config-wezom-relax-ts/-/eslint-config-wezom-relax-ts-0.3.1-beta.tgz", + "integrity": "sha512-dt+pb6Sw4seI9lVTKtrS0HoTr8m/ffVjwrGg4lDEUM6VcLuDr2fzQVCDVCnnPmHqPCvSj672lIFmBWYe4uz8Vw==" } } } diff --git a/package.json b/package.json index 9349808..7061256 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "eslint-config-wezom-relax-react-ts", - "version": "0.2.2-alpha", - "description": "[![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/WezomAgency/eslint-config-wezom-relax/blob/master/LICENSE)\r [![npm](https://img.shields.io/badge/npm-install-orange.svg)](https://www.npmjs.com/package/eslint-config-wezom-relax)\r [![WezomAgency](https://img.shields.io/badge/wezom-agency-red.svg)](https://github.com/WezomAgency)", + "version": "0.3.1-beta", + "description": "An ESLint shareable config for React + Typescript", "main": ".eslintrc.js", "files": [ ".eslintrc.js" @@ -21,7 +21,8 @@ }, "homepage": "https://github.com/WezomAgency/eslint-config-wezom-relax-react-ts#readme", "dependencies": { - "eslint-config-react-app": "^5.2.1" + "eslint-config-react-app": "^5.2.1", + "eslint-config-wezom-relax-ts": "^0.3.1-beta" }, "peerDependencies": { "@typescript-eslint/eslint-plugin": "^2.25.0",