forked from rrutsche/react-parallax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
41 lines (41 loc) · 1.15 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
module.exports = {
plugins: ['@typescript-eslint', 'jest'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.eslint.json',
tsconfigRootDir: __dirname,
},
extends: [
'airbnb',
'airbnb-typescript',
'plugin:react/recommended',
'prettier',
'prettier/react',
'prettier/standard',
'prettier/@typescript-eslint',
'plugin:@typescript-eslint/recommended',
'plugin:jest/recommended',
],
env: {
browser: true,
node: true,
mocha: true,
},
rules: {
'react/jsx-filename-extension': ['error', { extensions: ['.tsx'] }],
'import/prefer-default-export': 0,
'no-console': 'off',
'react/button-has-type': 'off',
'react/prop-types': 0,
'no-underscore-dangle': 'off',
curly: 'error',
'import/no-extraneous-dependencies': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-var-requires': 0,
'react/static-property-placement': 0,
},
globals: {
expect: true,
document: true,
},
};