forked from songmash/epub-exporter
/
.eslintrc.js
38 lines (37 loc) · 1018 Bytes
/
.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
const ecmaVersion = (new Date()).getFullYear() - 2009;
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'airbnb-typescript',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
plugins: [
'@typescript-eslint',
'react',
'react-hooks',
],
parserOptions: {
ecmaVersion,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
project: 'tsconfig.json',
},
rules: {
'@typescript-eslint/semi': ['error', 'always'],
'@typescript-eslint/indent': ['error', 2, { 'MemberExpression': 'off' }],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-unused-vars': ["error", { "argsIgnorePattern": "^_" }],
'arrow-parens': ['error', 'as-needed'],
'import/no-extraneous-dependencies': 'off',
'no-new': 'off',
},
settings: {
react: { version: 'detect' },
'import/resolver': 'webpack',
},
env: { browser: true },
};