-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
37 lines (37 loc) · 929 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
module.exports = {
"extends": "airbnb-base",
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": false,
"babelOptions": {
"presets": ["@babel/preset-env"],
}
},
"plugins": [
"import"
],
"rules": {
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore",
}],
"no-restricted-syntax": ["error", "WithStatement"],
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": [2, { devDependencies: true }],
"no-plusplus": "off",
"no-underscore-dangle": ["error", {
"allowAfterThis": true,
}],
"class-methods-use-this": "off"
},
"env": {
"es6": true,
"mocha": true,
"browser": true,
"node": true
},
};