-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.eslintrc.js
42 lines (39 loc) · 1.16 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
41
42
'use strict';
module.exports = {
root: true,
env: { browser: true },
extends: '@flybywiresim/eslint-config',
plugins: ['@typescript-eslint'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2021,
sourceType: 'script',
requireConfigFile: false,
},
settings: { 'import/resolver': { node: { extensions: ['.js', '.mjs', '.jsx', '.ts', '.tsx'] } } },
overrides: [
{
files: ['*.jsx', '*.tsx'],
parserOptions: {
sourceType: 'module',
ecmaFeatures: { jsx: true },
},
},
{
files: ['*.mjs', '*.ts', '*.d.ts'],
parserOptions: { sourceType: 'module' },
},
],
rules: {
'no-control-regex': 'off',
'no-undef': 'off',
'no-underscore-dangle': 'off',
'no-useless-constructor': 'off',
'no-empty-function': 'off',
// Irrelevant for our use
'jsx-a11y/alt-text': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/anchor-is-valid': 'off',
},
};