-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
47 lines (47 loc) · 1.06 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
42
43
44
45
46
47
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: ['plugin:prettier/recommended'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2020,
sourceType: 'module',
},
ignorePatterns: ['node_modules/'],
plugins: ['import'],
rules: {
'prettier/prettier': [
'error',
{ singleQuote: true, jsxSingleQuote: true, semi: false, arrowParens: 'avoid' },
{ usePrettierrc: true },
],
'react/jsx-closing-tag-location': 0,
'react/jsx-handler-names': 0,
'jsx-a11y/accessible-emoji': 0,
'no-prototype-builtins': 0,
'max-len': ['warn', { code: 100, ignoreComments: true }],
indent: 0,
'import/order': [
'error',
{
groups: ['index', 'sibling', 'parent', 'internal', 'external', 'builtin'],
},
],
},
settings: {
react: {
version: 'detect',
},
},
// https://github.com/babel/babel/issues/10904
parser: '@typescript-eslint/parser',
}