-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
47 lines (47 loc) · 1.37 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
43
44
45
46
47
module.exports = {
env: {
es6: true,
node: true,
browser: true,
'jest/globals': true,
},
extends: [
'airbnb',
'plugin:@typescript-eslint/recommended',
'plugin:import/typescript',
'plugin:prettier/recommended',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['react', '@typescript-eslint', 'react-hooks', 'jest', 'prettier'],
rules: {
'import/extensions': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: ['**/*test.ts'] }],
'import/prefer-default-export': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true }],
'no-useless-constructor': 'off',
'@typescript-eslint/no-useless-constructor': 'error',
'no-unused-expressions': 'off',
'@typescript-eslint/no-unused-expressions': 2,
'class-methods-use-this': 'off',
'react/jsx-filename-extension': 'off',
'react/jsx-props-no-spreading': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'react/destructuring-assignment': 'off',
'react/button-has-type': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/ban-types': 'off',
camelcase: 'off',
},
};