forked from hexlet-basics/hexlet-basics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
44 lines (38 loc) · 962 Bytes
/
.eslintrc.yml
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
---
plugins:
# https://github.com/jest-community/eslint-plugin-jest
- jest
- react
# https://eslint.org/docs/user-guide/configuring#specifying-environments
env:
node: true
es2020: true
browser: true
extends:
- 'airbnb'
- 'airbnb/hooks'
# - 'plugin:react/recommended'
- 'plugin:jest/recommended'
parserOptions:
ecmaVersion: 11
sourceType: module
ecmaFeatures:
jsx: true
# settings:
# # jest:
# # version: 26
# import/resolver:
# node:
# typescript:
# project: '.'
# webpack:
rules:
# react/function-component-definition: [2, { "namedComponents": "arrow-function" }]
# react/jsx-no-constructed-context-values: 1
max-len: ["error", { "code": 120 }]
react/prop-types: 0
# react/no-danger: 0
no-console: 0
# import/no-unresolved: 0
import/extensions: 0 # FIXME: remove when rule will be adjusted for new nodejs version
no-underscore-dangle: [2, { "allow": ["__filename", "__dirname"] }]