1 | {
|
2 | "parser": "babel-eslint",
|
3 | "extends": [
|
4 | "standard",
|
5 | "standard-react",
|
6 | "plugin:jest/recommended",
|
7 | "plugin:flowtype/recommended",
|
8 | "plugin:@typescript-eslint/recommended",
|
9 | "jest-enzyme",
|
10 | "prettier",
|
11 | "prettier/babel",
|
12 | "prettier/flowtype",
|
13 | "prettier/react",
|
14 | "prettier/standard",
|
15 | "prettier/@typescript-eslint"
|
16 | ],
|
17 | "plugins": ["babel", "react", "jest", "flowtype"],
|
18 | "parserOptions": {
|
19 | "ecmaVersion": 6,
|
20 | "sourceType": "module",
|
21 | "ecmaFeatures": {
|
22 | "jsx": true
|
23 | }
|
24 | },
|
25 | "env": {
|
26 | "browser": true,
|
27 | "amd": true,
|
28 | "es6": true,
|
29 | "node": true,
|
30 | "mocha": true,
|
31 | "jest/globals": true
|
32 | },
|
33 |
|
34 | "globals": {
|
35 | "jsdom": false
|
36 | },
|
37 | "settings": {
|
38 | "flowtype": {
|
39 | "onlyFilesWithFlowAnnotation": true
|
40 | },
|
41 | "react": {
|
42 | "version": "detect"
|
43 | }
|
44 | },
|
45 | "overrides": {
|
46 | "files": ["**/*.ts", "**/*.tsx"],
|
47 | "plugins": ["babel", "react", "jest", "@typescript-eslint"],
|
48 | "parser": "@typescript-eslint/parser",
|
49 | "parserOptions": {
|
50 | "ecmaVersion": 6,
|
51 | "sourceType": "module",
|
52 | "project": "./tsconfig.json",
|
53 | "ecmaFeatures": {
|
54 | "jsx": true
|
55 | }
|
56 | }
|
57 | },
|
58 | "rules": {
|
59 | "react/prop-types": [
|
60 | 1,
|
61 | {
|
62 | "skipUndeclared": true
|
63 | }
|
64 | ],
|
65 | "@typescript-eslint/explicit-function-return-type": 0,
|
66 | "@typescript-eslint/no-var-requires": 0
|
67 | }
|
68 | }
|