/
.eslintrc.js
39 lines (39 loc) · 1.11 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
module.exports = {
parser: '@typescript-eslint/parser',
ignorePatterns: ['node_modules'],
parserOptions: {
project: './tsconfig.eslint.json'
},
plugins: ['import'],
extends: [
'react-app',
'plugin:jsx-a11y/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:import/typescript',
'ipfs',
'plugin:storybook/recommended'
],
rules: {
'import/order': ['error', {
groups: [
'builtin', // Built-in types are first
['external', 'unknown'],
['parent', 'sibling', 'internal', 'index']
],
'newlines-between': 'always',
alphabetize: {
order: 'asc',
caseInsensitive: true
},
warnOnUnassignedImports: true
}],
'import/extensions': ['error', 'never'], // Errors using extensions because ts + vite + babel + storybook needs.
'no-console': ['error', {
allow: ['error', 'info', 'time', 'timeEnd', 'warn']
}],
'no-warning-comments': ['off'],
strict: ['error', 'never'],
'react/jsx-filename-extension': ['error', { extensions: ['.jsx', '.tsx'] }]
}
}