mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-10 23:02:56 +02:00
refactor(eslint-plugin): migrate to TS-ESLint infrastructure (#7276)
* refactor(eslint-plugin): migrate to TS-ESLint infrastructure * fix lock
This commit is contained in:
parent
f063e9add5
commit
afc72480ab
22 changed files with 381 additions and 323 deletions
25
packages/eslint-plugin/src/index.ts
Normal file
25
packages/eslint-plugin/src/index.ts
Normal file
|
@ -0,0 +1,25 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import rules from './rules';
|
||||
|
||||
export = {
|
||||
rules,
|
||||
configs: {
|
||||
recommended: {
|
||||
rules: {
|
||||
'@docusaurus/string-literal-i18n-messages': 'error',
|
||||
},
|
||||
},
|
||||
all: {
|
||||
rules: {
|
||||
'@docusaurus/string-literal-i18n-messages': 'error',
|
||||
'@docusaurus/no-untranslated-text': 'warn',
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue