forked from tkp-archive/iexjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
39 lines (39 loc) · 897 Bytes
/
.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
/* ***************************************************************************
*
* Copyright (c) 2021, the iexjs authors.
*
* This file is part of the iexjs library, distributed under the terms of
* the Apache License 2.0. The full license can be found in the LICENSE file.
*
*/
module.exports = {
parser: "babel-eslint",
env: {
browser: true,
es2021: true,
node: true,
},
extends: ["airbnb-base", "prettier"],
plugins: ["prettier", "jest"],
parserOptions: {
ecmaVersion: 12,
sourceType: "module",
},
rules: {
"prettier/prettier": [
"error",
{
semi: true,
singleQuote: false,
tabWidth: 2,
useTabs: false,
trailingComma: "all",
},
],
camelcase: "off",
"func-names": "off",
eqeqeq: "error",
"no-underscore-dangle": "off",
"import/prefer-default-export": "off",
},
};