-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
42 lines (41 loc) · 1.77 KB
/
.eslintrc.json
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
{
"env": {
"node": true,
"browser": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module",
"requireConfigFile": false,
"allowImportExportEverywhere": true
},
"extends": ["airbnb", "prettier", "plugin:meteor/recommended"],
"plugins": ["prettier", "meteor"],
"settings": {
// The meteor import resolve doesn't support Atmosphere packages - it considers them deprecated
// "import/resolver": "meteor"
},
"rules": {
"prettier/prettier": "error",
"react/jsx-filename-extension": "off",
"import/no-absolute-path": "off",
"import/extensions": "off",
// disabled so that we're not expecting to find 'meteor' within
// our dependencies.
// XXX: this *should* be taken care of by eslint-import-resolver-meteor, investigate.
// "import/no-extraneous-dependencies": "off",
"no-underscore-dangle": ["error", { "allow": ["_id", "_ensureIndex"] }],
"object-shorthand": ["error", "always", { "avoidQuotes": false }],
"space-before-function-paren": "off",
// for Meteor API's that rely on `this` context, e.g. Template.onCreated and publications
"func-names": "off",
"prefer-arrow-callback": "off",
// Vx Team modifications - Warn on rules that would require refactoring to implement.
// We want to be able to turn these back into "error"'s at some point. However, for
// our first pass, we'll only consider the checks that ESLint can auto-fix as errors.
// https://eslint.org/docs/latest/use/configure/rules#rule-severities
"meteor/no-session": "off",
"import/no-unresolved": ["warn", { "ignore": ["^meteor/", "^/"] }], // This may be tricky to resolve due to: https://github.com/clayne11/eslint-import-resolver-meteor/issues/5
"no-await-in-loop": "warn"
}
}