forked from mozilla-extensions/firefox-voice
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.yml
43 lines (38 loc) · 832 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
env:
browser: true
es6: true
node: true
webextensions: true
parser: babel-eslint
parserOptions:
ecmaFeatures:
jsx: true
extends:
- eslint:recommended
- plugin:mozilla/recommended
- plugin:jsx-a11y/recommended
- plugin:prettier/recommended
plugins:
- mozilla
- react
- class-property
- jsx-a11y
- react-hooks
- prettier
rules:
eqeqeq: error
no-console: "warn" # TODO: Set back to "warn"
no-unused-vars: [error, { vars: all, args: none, ignoreRestSiblings: false }]
no-var: error
no-warning-comments: off
prefer-const: error
mozilla/no-import-into-var-and-global: off
comma-dangle: off
react-hooks/rules-of-hooks: error
react-hooks/exhaustive-deps: warn
prettier/prettier:
- error
- {}
- fileInfoOptions:
ignorePath: '.gitignore'
jsx-a11y/no-onchange: off