Skip to content

Commit 99e3665

Browse files
committed
Update eslint config file
1 parent d955a68 commit 99e3665

File tree

2 files changed

+71
-49
lines changed

2 files changed

+71
-49
lines changed

.eslintrc

Lines changed: 0 additions & 49 deletions
This file was deleted.

.eslintrc.yaml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
parser: babel-eslint
3+
env:
4+
browser: true
5+
extends: [airbnb, plugin:react/recommended]
6+
plugins: [import, react]
7+
settings:
8+
import/resolver:
9+
node: {}
10+
webpack:
11+
config: webpack.config.js
12+
13+
rules:
14+
array-callback-return: 1
15+
camelcase: off
16+
class-methods-use-this: 1
17+
comma-dangle: [1, only-multiline]
18+
consistent-return: 0
19+
default-case: 0
20+
dot-notation: 1
21+
eqeqeq: 1
22+
guard-for-in: 1
23+
import/imports-first: 1
24+
import/no-mutable-exports: 0
25+
jsx-a11y/anchor-is-valid: [warn, {"aspects": [invalidHref]}]
26+
jsx-a11y/href-no-hash: 'off'
27+
jsx-a11y/label-has-for: 0
28+
jsx-a11y/no-static-element-interactions: 1
29+
max-len: [0, 80, 2, {"ignoreComments": true}]
30+
no-bitwise: 1
31+
no-class-assign: 0
32+
no-cond-assign: [2, except-parens]
33+
no-continue: 1
34+
no-else-return: 0
35+
no-extend-native: 1
36+
no-fallthrough: 'off'
37+
no-param-reassign: 0
38+
no-plusplus: 1
39+
no-prototype-builtins: 1
40+
no-restricted-syntax: 1
41+
no-unused-expressions: 1
42+
no-unused-vars: [1, {"args": none, "vars": local}]
43+
no-use-before-define: 1
44+
prefer-const: 1
45+
quote-props: [1, consistent-as-needed]
46+
quotes: 0
47+
radix: 0
48+
react/forbid-prop-types: 1
49+
space-infix-ops: 0
50+
no-underscore-dangle: [2, {"allowAfterThis": true}]
51+
vars-on-top: 0
52+
object-curly-newline: [2, {"consistent": true}]
53+
function-paren-newline: [2, "consistent"]
54+
react/no-array-index-key: 1
55+
jsx-a11y/click-events-have-key-events: 0
56+
jsx-a11y/no-noninteractive-element-interactions: 1
57+
prefer-promise-reject-errors: 1
58+
react/jsx-key: 1
59+
indent: 1
60+
import/no-unresolved: 1
61+
import/extensions: 1
62+
react/destructuring-assignment: 1
63+
react/jsx-one-expression-per-line: 1
64+
react/jsx-wrap-multilines: 1
65+
operator-linebreak: [1, after]
66+
lines-between-class-members: 1
67+
react/no-access-state-in-setstate: 1
68+
implicit-arrow-linebreak: 1
69+
jsx-a11y/label-has-associated-control: 1
70+
jsx-a11y/control-has-associated-label: 0
71+
arrow-parens: [2, "always"]

0 commit comments

Comments
 (0)