-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
34 lines (34 loc) · 990 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['react', '@typescript-eslint', 'prettier'],
extends: [
'airbnb-typescript',
'airbnb/hooks',
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/react',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
],
env: {
browser: true,
jasmine: true,
jest: true,
node: true,
},
// Airbnb's ESLint config requires this
parserOptions: {
project: './tsconfig.json',
},
rules: {
// Include .prettierrc.js rules
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
// We will use TypeScript's types for component props instead
'react/prop-types': 'off',
// We don't want unused vars
'@typescript-eslint/no-unused-vars': ['error'],
},
};