aboutsummaryrefslogtreecommitdiff
path: root/package.json
blob: 0e10a4d64092aac231f7db3f773f887f34e13993 (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
  "name": "mammoth",
  "version": "1.0.4",
  "author": "Michael Williamson <mike@zwobble.org>",
  "description": "Convert Word documents from docx to simple HTML and Markdown",
  "keywords": [
    "docx",
    "html",
    "office",
    "word",
    "markdown",
    "md"
  ],
  "main": "./lib/index.js",
  "repository": {
    "type": "git",
    "url": "https://github.com/mwilliamson/mammoth.js.git"
  },
  "dependencies": {
    "bluebird": "~3.4.0",
    "sax": "~1.1.1",
    "underscore": "~1.6.0",
    "lop": "~0.4.0",
    "argparse": "~1.0.3",
    "jszip": "~2.5.0",
    "xmlbuilder": "~2.6.4",
    "path-is-absolute": "^1.0.0"
  },
  "devDependencies": {
    "mocha": "~2.2.5",
    "browserify": "~13.0.1",
    "browserify-prepend-licenses": "~1.0.0",
    "duck": "~0.1.11",
    "uglify-js": "~2.4.8",
    "temp": "~0.7.0",
    "eslint": "2.13.1",
    "eslint-config-airbnb-base": "3.0.1"
  },
  "browser": {
    "./lib/unzip.js": "./browser/unzip.js",
    "./lib/docx/files.js": "./browser/docx/files.js"
  },
  "bin": {
    "mammoth": "bin/mammoth"
  },
  "scripts": {
    "pretest": "eslint lib tests",
    "test": "mocha tests --recursive",
    "prepublish": "make mammoth.browser.min.js"
  },
  "license": "BSD-2-Clause",
  "eslintConfig": {
    "extends": "eslint:recommended",

    "rules": {
      "curly": ["error", "all"],
      "dot-location": ["error", "property"],
      "no-alert": ["error"],
      "no-caller": ["error"],
      "no-eval": ["error"],
      "no-extend-native": ["error"],
      "no-extra-bind": ["error"],
      "no-extra-label": ["error"],
      "no-floating-decimal": ["error"],
      "no-implicit-coercion": ["error", {"allow": ["!!"]}],
      "no-implied-eval": ["error"],
      "no-invalid-this": ["error"],
      "no-labels": ["error"],
      "no-lone-blocks": ["error"],
      "no-native-reassign": ["error"],
      "no-new": ["error"],
      "no-new-func": ["error"],
      "no-new-wrappers": ["error"],
      "no-return-assign": ["error"],
      "no-self-compare": ["error"],
      "no-sequences": ["error"],
      "no-throw-literal": ["error"],
      "no-unused-expressions": ["error"],
      "no-useless-call": ["error"],
      "no-with": ["error"],
      "no-unused-vars": ["error", {"args": "none"}],
      "object-curly-spacing": ["error", "never"],
      "radix": ["error", "always"],
      
      "array-bracket-spacing": ["error", "never"],
      "brace-style": ["error", "1tbs"],
      "camelcase": ["error"],
      "comma-spacing": ["error", {"before": false, "after": true}],
      "comma-style": ["error", "last"],
      "computed-property-spacing": ["error", "never"],
      "eol-last": ["error"],
      "indent": ["error", 4],
      "key-spacing": [
        "error",
        {"beforeColon": false, "afterColon": true, "mode": "strict"}
      ],
      "keyword-spacing": ["error", {"before": true, "after": true}],
      "new-parens": ["error"],
      "no-array-constructor": ["error"],
      "no-continue": ["error"],
      "no-lonely-if": ["error"],
      "no-multiple-empty-lines": ["error", {"max": 2, "maxEOF": 1}],
      "no-new-object": ["error"],
      "no-spaced-func": ["error"],
      "no-trailing-spaces": ["error", {"skipBlankLines": true}],
      "no-whitespace-before-property": ["error"],
      "object-curly-spacing": ["error", "never"],
      "one-var": ["error", "never"],
      "semi": ["error", "always"],
      "semi-spacing": ["error", {"before": false}],
      "space-before-function-paren": ["error", "never"],
      "space-in-parens": ["error", "never"],
      "space-infix-ops": ["error"],
      "space-unary-ops": ["error", {"words": true, "nonwords": false}],
      "spaced-comment": ["error", "always"]
    },

    "globals": {
      "Buffer": false,
      "console": true,
      "exports": true,
      "module": true,
      "require": false
    }
  }
}