mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
* MM-68153 Migrate all ESLint configuration to flat config files * Use shared ESLint plugin and ESLint configuration to lint shared ESLint plugin and ESLint configuration as well as non-shared ESLint configuration
27 lines
765 B
JavaScript
27 lines
765 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import formatjsPlugin from 'eslint-plugin-formatjs';
|
|
import noOnlyTestsPlugin from 'eslint-plugin-no-only-tests';
|
|
|
|
import eslintPlugin from '@mattermost/eslint-plugin';
|
|
|
|
export default [
|
|
...eslintPlugin.configs.react,
|
|
{
|
|
files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
|
|
plugins: {
|
|
formatjs: formatjsPlugin,
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.test.js', '**/*.test.jsx', '**/*.test.ts', '**/*.test.tsx'],
|
|
plugins: {
|
|
'no-only-tests': noOnlyTestsPlugin,
|
|
},
|
|
rules: {
|
|
'no-only-tests/no-only-tests': ['error', {focus: ['only', 'skip']}],
|
|
},
|
|
},
|
|
];
|