Move the shared ESLint plugin/config into the monorepo (#24670)
* Move the shared ESLint plugin/config into the monorepo * Add peer dependencies to ESLint plugin
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
def164f790
Коммит
ff929e4a15
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"root": true,
|
||||
"extends": [
|
||||
"plugin:mattermost/react",
|
||||
"plugin:@mattermost/react",
|
||||
"plugin:react-hooks/recommended"
|
||||
],
|
||||
"plugins": [
|
||||
"mattermost",
|
||||
"@mattermost",
|
||||
"import",
|
||||
"no-only-tests",
|
||||
"@typescript-eslint",
|
||||
@@ -23,6 +23,7 @@
|
||||
}
|
||||
},
|
||||
"rules": {
|
||||
"@mattermost/use-external-link": 2,
|
||||
"header/header": [
|
||||
2,
|
||||
"line",
|
||||
@@ -30,7 +31,6 @@
|
||||
2
|
||||
],
|
||||
"no-duplicate-imports": 0,
|
||||
"mattermost/use-external-link": 2,
|
||||
"import/no-duplicates": 2,
|
||||
"max-nested-callbacks": ["error", 10],
|
||||
"no-unused-expressions": 0,
|
||||
|
||||
@@ -102,6 +102,7 @@
|
||||
"devDependencies": {
|
||||
"@deanwhillier/jest-matchmedia-mock": "1.2.0",
|
||||
"@hot-loader/react-dom": "17.0.2",
|
||||
"@mattermost/eslint-plugin": "*",
|
||||
"@redux-devtools/extension": "3.2.3",
|
||||
"@testing-library/jest-dom": "5.16.4",
|
||||
"@testing-library/react": "12.1.4",
|
||||
@@ -148,7 +149,6 @@
|
||||
"enzyme-to-json": "3.6.2",
|
||||
"eslint-plugin-header": "3.1.1",
|
||||
"eslint-plugin-import": "2.27.5",
|
||||
"eslint-plugin-mattermost": "github:mattermost/eslint-plugin-mattermost#5b0c972eacf19286e4c66221b39113bf8728a99e",
|
||||
"eslint-plugin-no-only-tests": "3.1.0",
|
||||
"eslint-plugin-react": "7.32.2",
|
||||
"eslint-plugin-react-hooks": "4.6.0",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
/* eslint-disable mattermost/use-external-link */
|
||||
/* eslint-disable @mattermost/use-external-link */
|
||||
|
||||
import React from 'react';
|
||||
import {useSelector} from 'react-redux';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
/* eslint-disable mattermost/use-external-link */
|
||||
/* eslint-disable @mattermost/use-external-link */
|
||||
|
||||
import classNames from 'classnames';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
Ссылка в новой задаче
Block a user