-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
40 lines (40 loc) · 1.2 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
module.exports = {
extends: ['airbnb'],
rules: {
// https://github.com/import-js/eslint-plugin-import/issues/1913
'import/no-extraneous-dependencies': 'off',
},
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
env: {
browser: true,
es2021: true,
node: true,
jest: true,
amd: true,
},
extends: ['plugin:import/typescript', 'plugin:react/recommended', 'airbnb-typescript'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
project: ['*/tsconfig.json', '*/tsconfig.test.json'],
// tsconfigRootDir: __dirname,
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint'],
rules: {
'react/jsx-filename-extension': [1, { extensions: ['.jsx', '.tsx'] }],
// https://github.com/import-js/eslint-plugin-import/issues/1913
'import/no-extraneous-dependencies': 'off',
'react/require-default-props': 'off',
'jsx-a11y/click-events-have-key-events': 'warn',
'jsx-a11y/no-static-element-interactions': 'warn',
'no-console': 'off',
},
},
],
};