|
1 | 1 | {
|
2 | 2 | "extends": [
|
3 |
| - "airbnb" |
| 3 | + "plugin:prettier/recommended", |
| 4 | + "airbnb", |
| 5 | + "plugin:meteor/recommended", |
| 6 | + "plugin:react/recommended" |
4 | 7 | ],
|
5 | 8 | "parser": "babel-eslint",
|
| 9 | + "parserOptions": { |
| 10 | + "allowImportExportEverywhere": true, |
| 11 | + "ecmaVersion": 6, |
| 12 | + "sourceType": "module" |
| 13 | + }, |
6 | 14 | "rules": {
|
7 | 15 | "strict": 0,
|
8 |
| - "react/require-default-props": 0 |
| 16 | + "import/no-extraneous-dependencies": 0, # to fix meteor/foo imports, it need to be fixed |
| 17 | + "import/extensions": 0, # remove it when issue 17 of eslint-import-resolver-meteor solved |
| 18 | + "arrow-parens": [2, "as-needed"], |
| 19 | + "generator-star-spacing": 0, |
| 20 | + "babel/new-cap": [1, { |
| 21 | + "capIsNewExceptions": [ |
| 22 | + "Optional", |
| 23 | + "OneOf", |
| 24 | + "Maybe", |
| 25 | + "MailChimpAPI", |
| 26 | + "Juice", |
| 27 | + "Run", |
| 28 | + "AppComposer", |
| 29 | + "Query" |
| 30 | + ] |
| 31 | + }], |
| 32 | + "array-bracket-spacing": 0, |
| 33 | + "babel/object-curly-spacing": 0, |
| 34 | + "object-shorthand": 0, |
| 35 | + "babel/no-await-in-loop": 1, |
| 36 | + "comma-dangle": 0, |
| 37 | + "key-spacing": 0, |
| 38 | + "no-extra-boolean-cast": 0, |
| 39 | + "no-undef": 1, |
| 40 | + "no-unused-vars": [1, { |
| 41 | + "vars": "all", |
| 42 | + "args": "none", |
| 43 | + "varsIgnorePattern": "React|PropTypes|Component" |
| 44 | + }], |
| 45 | + "no-console": 1, |
| 46 | + "react/prop-types": 0, |
| 47 | + "meteor/audit-argument-checks": 0, |
| 48 | + "no-case-declarations": 0, |
| 49 | + "no-underscore-dangle": [2, {"allow":["_id"]}] |
| 50 | + }, |
| 51 | + "env": { |
| 52 | + "browser": true, |
| 53 | + "commonjs": true, |
| 54 | + "es6": true, |
| 55 | + "meteor": true, |
| 56 | + "node": true |
| 57 | + }, |
| 58 | + "plugins": [ |
| 59 | + "babel", |
| 60 | + "meteor", |
| 61 | + "react" |
| 62 | + ], |
| 63 | + "settings": { |
| 64 | + "import/resolver": { |
| 65 | + "meteor": { |
| 66 | + "extensions": [ |
| 67 | + ".js", |
| 68 | + ".jsx" |
| 69 | + ] |
| 70 | + } |
| 71 | + } |
| 72 | + }, |
| 73 | + "root": true, |
| 74 | + "globals": { |
| 75 | + "param": true, |
| 76 | + "returns": true |
9 | 77 | }
|
10 | 78 | }
|
0 commit comments