forked from hexlet-basics/hexlet-basics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
46 lines (38 loc) · 892 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
45
46
---
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'
parser: '@babel/eslint-parser'
parserOptions:
ecmaVersion: 11
sourceType: module
ecmaFeatures:
jsx: true
settings:
jest:
version: 26
import/resolver:
# node:
# typescript:
# project: '.'
webpack:
config: 'config/webpack/environment.js'
rules:
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"] }]