|
18 | 18 | "start": "node bin/dev-server", |
19 | 19 | "start-app": "TARGET=application node bin/dev-server", |
20 | 20 | "flow": "flow", |
21 | | - "eslint-check": "eslint --print-config .eslintrc.js | eslint-config-prettier-check", |
| 21 | + "eslint-check": |
| 22 | + "eslint --print-config .eslintrc.js | eslint-config-prettier-check", |
22 | 23 | "prettier": "node bin/prettier.js", |
23 | 24 | "license-check": "devtools-license-check", |
24 | 25 | "links": "ls -l node_modules/ | grep ^l || echo 'no linked packages'", |
25 | 26 | "lint": "run-p lint-css lint-js lint-md", |
26 | 27 | "lint-css": "stylelint \"src/components/**/*.css\"", |
27 | 28 | "lint-js": "eslint *.js \"src/**/*.js\" --fix", |
28 | | - "lint-md": "remark -u devtools-linters/markdown/preset -qf *.md src configs docs", |
| 29 | + "lint-md": |
| 30 | + "remark -u devtools-linters/markdown/preset -qf *.md src configs docs", |
29 | 31 | "lint-fix": "yarn lint-js -- --fix", |
30 | | - "mochi": "mochii --mc ./firefox --interactive --default-test-path devtools/client/debugger/new", |
| 32 | + "mochi": |
| 33 | + "mochii --mc ./firefox --interactive --default-test-path devtools/client/debugger/new", |
31 | 34 | "mochid": "yarn mochi -- --jsdebugger --", |
32 | 35 | "mochir": "yarn mochi -- --repeat 10 --", |
33 | 36 | "mochih": "yarn mochi -- --headless --", |
34 | | - "mochici": "mochii --mc ./firefox --ci --default-test-path devtools/client/debugger/new --headless --", |
| 37 | + "mochici": |
| 38 | + "mochii --mc ./firefox --ci --default-test-path devtools/client/debugger/new --headless --", |
35 | 39 | "test": "jest", |
36 | 40 | "test:watch": "jest --watch", |
37 | 41 | "test-coverage": "yarn test -- --coverage", |
38 | 42 | "test-all": "yarn test; yarn lint; yarn flow", |
39 | | - "firefox": "start-firefox --start --location https://devtools-html.github.io/debugger-examples/", |
40 | | - "chrome": "start-chrome --location https://devtools-html.github.io/debugger-examples/", |
| 43 | + "firefox": |
| 44 | + "start-firefox --start --location https://devtools-html.github.io/debugger-examples/", |
| 45 | + "chrome": |
| 46 | + "start-chrome --location https://devtools-html.github.io/debugger-examples/", |
41 | 47 | "copy-assets": "node bin/copy-assets --symlink", |
42 | 48 | "copy-assets-watch": "node bin/copy-assets --watch --symlink", |
43 | | - "build-docs": "documentation build --format html --sort-order alpha --shallow --document-exported --output docs/reference/ src/types.js src/utils/ src/reducers/ src/actions/ src/test/mochitest/head.js", |
44 | | - "flow-coverage": "flow-coverage-report --threshold 50 -i 'src/actions/*.js' -i 'src/reducers/*.js' -i 'src/utils/*.js' -i 'src/components/*.js' -i 'src/components/**/*.js' -t html -t text", |
45 | | - "flow-utils": "flow-coverage-report -i 'src/utils/*.js' -i 'src/utils/**/*.js' -t text", |
46 | | - "flow-redux": "flow-coverage-report -i 'src/reducers/*.js' -i 'src/actions/*.js' -t text", |
| 49 | + "build-docs": |
| 50 | + "documentation build --format html --sort-order alpha --shallow --document-exported --output docs/reference/ src/types.js src/utils/ src/reducers/ src/actions/ src/test/mochitest/head.js", |
| 51 | + "flow-coverage": |
| 52 | + "flow-coverage-report --threshold 50 -i 'src/actions/*.js' -i 'src/reducers/*.js' -i 'src/utils/*.js' -i 'src/components/*.js' -i 'src/components/**/*.js' -t html -t text", |
| 53 | + "flow-utils": |
| 54 | + "flow-coverage-report -i 'src/utils/*.js' -i 'src/utils/**/*.js' -t text", |
| 55 | + "flow-redux": |
| 56 | + "flow-coverage-report -i 'src/reducers/*.js' -i 'src/actions/*.js' -t text", |
47 | 57 | "flow-react": "flow-coverage-report -i 'src/components/**/*.js' -t text", |
48 | 58 | "postcheckout": "node bin/post-checkout.js", |
49 | 59 | "postmerge": "node bin/post-merge.js", |
|
85 | 95 | "svg-inline-react": "^3.0.0", |
86 | 96 | "wasmparser": "^0.6.0" |
87 | 97 | }, |
88 | | - "files": [ |
89 | | - "src", |
90 | | - "assets" |
91 | | - ], |
| 98 | + "files": ["src", "assets"], |
92 | 99 | "greenkeeper": { |
93 | | - "ignore": [ |
94 | | - "react", |
95 | | - "react-dom", |
96 | | - "react-redux", |
97 | | - "redux", |
98 | | - "codemirror" |
99 | | - ] |
| 100 | + "ignore": ["react", "react-dom", "react-redux", "redux", "codemirror"] |
100 | 101 | }, |
101 | 102 | "main": "src/main.js", |
102 | 103 | "author": "Jason Laster <[email protected]>", |
|
160 | 161 | "workerjs": "github:jasonLaster/workerjs" |
161 | 162 | }, |
162 | 163 | "lint-staged": { |
163 | | - "*.js": [ |
164 | | - "prettier", |
165 | | - "git add" |
166 | | - ], |
167 | | - "src/*.js": [ |
168 | | - "prettier", |
169 | | - "git add" |
170 | | - ], |
171 | | - "src/*/*.js": [ |
172 | | - "prettier", |
173 | | - "git add" |
174 | | - ], |
175 | | - "src/*/!(mochitest)**/*.js": [ |
176 | | - "prettier", |
177 | | - "git add" |
178 | | - ], |
179 | | - "src/*/!(mochitest)*/**/*.js": [ |
180 | | - "prettier", |
181 | | - "git add" |
182 | | - ] |
| 164 | + "*.js": ["prettier", "git add"], |
| 165 | + "src/*.js": ["prettier", "git add"], |
| 166 | + "src/*/*.js": ["prettier", "git add"], |
| 167 | + "src/*/!(mochitest)**/*.js": ["prettier", "git add"], |
| 168 | + "src/*/!(mochitest)*/**/*.js": ["prettier", "git add"] |
183 | 169 | }, |
184 | 170 | "jest": { |
185 | 171 | "testPathIgnorePatterns": [ |
|
197 | 183 | "!**/*.mock.js", |
198 | 184 | "!**/*.spec.js" |
199 | 185 | ], |
200 | | - "transformIgnorePatterns": [ |
201 | | - "node_modules/(?!devtools-)" |
202 | | - ], |
| 186 | + "transformIgnorePatterns": ["node_modules/(?!devtools-)"], |
203 | 187 | "setupTestFrameworkScriptFile": "<rootDir>/src/test/tests-setup.js", |
204 | | - "setupFiles": [ |
205 | | - "<rootDir>/src/test/shim.js", |
206 | | - "jest-localstorage-mock" |
207 | | - ], |
| 188 | + "setupFiles": ["<rootDir>/src/test/shim.js", "jest-localstorage-mock"], |
208 | 189 | "snapshotSerializers": [ |
209 | 190 | "jest-serializer-babel-ast", |
210 | 191 | "enzyme-to-json/serializer" |
|
0 commit comments