UNPKG

1.68 kBJSONView Raw
1{
2 "parser": "babel-eslint",
3 "plugins": ["flowtype"],
4 "extends": "airbnb-base",
5 "env": {
6 "node": true
7 },
8 "globals": {
9 "Class": true,
10 "Generator": true,
11 "$PropertyType": true,
12 "Knex$Transaction": true,
13 "Knex$QueryBuilder": true,
14 "Knex$SchemaBuilder": true
15 },
16 "settings": {
17 "flowtype": {
18 "onlyFilesWithFlowAnnotation": true
19 }
20 },
21 "parserOptions": {
22 "ecmaVersion": 2017,
23 "sourceType": "module",
24 "ecmaFeatures": {
25 "impliedStrict": true,
26 "experimentalObjectRestSpread": true
27 }
28 },
29 "rules": {
30 "strict": 0,
31 "max-len": ["error", 80],
32 "arrow-parens": 0,
33 "comma-dangle": [2, "only-multiline"],
34 "prefer-reflect": 2,
35 "global-require": 0,
36 "class-methods-use-this": 0,
37 "no-restricted-syntax": [
38 "error",
39 "ForInStatement",
40 "LabeledStatement",
41 "WithStatement"
42 ],
43 "import/order": ["warn", {
44 "groups": [
45 "builtin",
46 "external",
47 "internal",
48 "parent",
49 "sibling",
50 "index"
51 ],
52 "newlines-between": "always"
53 }],
54 "import/extensions": 0,
55 "import/no-dynamic-require": 0,
56 "import/prefer-default-export": 0,
57 "flowtype/semi": 2,
58 "flowtype/no-dupe-keys": 2,
59 "flowtype/boolean-style": [2, "boolean"],
60 "flowtype/generic-spacing": 2,
61 "flowtype/define-flow-type": 0,
62 "flowtype/space-after-type-colon": [2, "always"],
63 "flowtype/space-before-type-colon": [2, "never"],
64 "flowtype/union-intersection-spacing": [2, "always"],
65 "flowtype/space-before-generic-bracket": [2, "never"],
66 "flowtype/require-valid-file-annotation": [2, "always"]
67 }
68}