-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
37 lines (36 loc) · 1 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
const path = require('path');
const tsconfigPath = path.resolve(__dirname, './tsconfig.esm.json');
module.exports = {
root: true,
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:@typescript-eslint/strict',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
'prettier',
'@blb-ventures/eslint-config',
],
plugins: ['@typescript-eslint', 'import', 'prettier', 'react', 'react-hooks', 'jsx-a11y'],
ignorePatterns: ['node_modules', 'lib', 'src/playground.ts', '.eslintrc.js'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: tsconfigPath,
sourceType: 'module',
ecmaVersion: 'latest',
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'prettier/prettier': 'error',
'react/react-in-jsx-scope': 'off',
'import/no-extraneous-dependencies': 'off',
},
};