-
Notifications
You must be signed in to change notification settings - Fork 19
/
.eslintrc.js
40 lines (38 loc) · 1.01 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* 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.
*
*
* Copyright (c) 2019-2023, the Lingua Franca contributors.
* All rights reserved.
*/
const OFF = 0;
const WARNING = 1;
const ERROR = 2;
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked',
'plugin:react-hooks/recommended',
'plugin:regexp/recommended',
'prettier',
'plugin:@docusaurus/all',
],
plugins: [
'react-hooks',
'@typescript-eslint',
'regexp',
'@docusaurus',
],
rules: {
'react/jsx-uses-react': OFF, // JSX runtime: automatic
'react/react-in-jsx-scope': OFF, // JSX runtime: automatic
},
parser: '@typescript-eslint/parser',
parserOptions: {
project: ["tsconfig.json"]
},
};