-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
21 lines (16 loc) · 840 Bytes
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
parser: "babel-eslint"
extends: "airbnb"
rules:
# this rule causes problems with initialization, nock, and others
global-require: 0
# this rule causes problems with actions (single action to export)
import/prefer-default-export: 0
# https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-extraneous-dependencies.md
# this rule causes problems with webpack config, nock, and others
import/no-extraneous-dependencies: [2, {}]
# this rule breaks globbing in express
import/no-dynamic-require: 0
# this rule ignores no-underscore-dangle for _id which mongo uses on all documents
no-underscore-dangle: [2, {allow: ['_id']}]
# https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-filename-extension.md
react/jsx-filename-extension: [1, { "extensions": [".js", ".jsx"] }]