generated from iamyuu/vitr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
30 lines (30 loc) · 937 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
/**
* @type {import('eslint').Linter.Config}
*/
module.exports = {
extends: ['kentcdodds', 'kentcdodds/react', 'kentcdodds/jsx-a11y', 'kentcdodds/jest'],
settings: {
'import/resolver': {
alias: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
map: [['~', './src']],
},
},
jest: {
version: 27,
},
},
rules: {
'@typescript-eslint/explicit-function-return-type': ['off'],
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'import/prefer-default-export': 'off',
'no-console': 'warn',
'no-restricted-imports': ['error', { patterns: ['~/features/*/*'] }],
'no-warning-comments': 'off',
radix: ['error', 'as-needed'],
'react/react-in-jsx-scope': 'off',
'react/jsx-filename-extension': ['error', { extensions: ['.jsx', '.tsx'] }],
'react/jsx-sort-props': ['warn', { reservedFirst: ['key'] }],
},
};