Π“Ρ€Π°Ρ„ ΠΊΠΎΠΌΠΌΠΈΡ‚ΠΎΠ²

10 ΠšΠΎΠΌΠΌΠΈΡ‚ΠΎΠ²

Автор SHA1 Π‘ΠΎΠΎΠ±Ρ‰Π΅Π½ΠΈΠ΅ Π”Π°Ρ‚Π°
William Durand 0774b7bdb4
Make sure __dirname is false in webpack config (#3231)
* Run web-ext's functional tests

* Make sure __dirname is false in webpack config
2020-06-30 19:00:00 +02:00
Linus UnnebΓ€ck c1e592034f Move internal scripts to separate folder (#2309)
Fixes #2278 

This PR moves internal scripts to another folder from `bin/`, where the public scripts will live alone now. It also updates the babel dependencies to be in `devDependencies`, since they are only used in the internal scripts.
2018-12-11 08:30:11 +01:00
Christopher Grebs 42170c160b
Add ES6 module support (#2078)
* Add support for es6 modules.

Fixes #1775

This parses JavaScript files and tries to figure out their sourceType
from how the AST is structured.

We default to `module` but if there are syntax errors fall back to
`script`. We do not read the `<script type="module"` part of HTML files
anymore.

* Fix guid
2018-08-07 21:43:54 +02:00
Mark Striemer bb29ca1b29
Use mozilla-unified to download and import Firefox schemas
* Ignore bash scripts in bin for eslint
* Update download-import-tag and add some docs

Fixes #1811
2018-04-06 10:55:03 +02:00
Ravneet 0600ded57f Added tests for sprintf 2018-03-05 22:36:23 +05:30
Ravneet 95c42cd76c Fixed linting errors 2018-03-03 17:54:31 +05:30
Ravneet 3e36297477 Added locale/ to .eslintignore 2018-02-13 21:00:42 +05:30
Christopher Grebs cc9f3e23c5
Initial attempt to warn about coin miners. (#1763)
* Initial attempt to warn about coin miners.

This does not attempt to detect all of them but primarily focuses on
detecting CoinHive for now.

There's a whole bunch to explore and block when looking at NoCoin but
I'd rather see how many false positives we get in the real world with
this code first.

Fixes #1643 but might need a few follow up issues to add more miners.

* Fix eslint for coinminer fixtures

* Remove urls from blocklist

* Fix tests

* Fix typo in fixture filename

* Add docs

* Fix filename blocklist, update tests to add more coverage.
2018-01-17 19:34:44 +01:00
Stuart Colville 6109428a06 Configure amo eslint config (#1451)
* Sync lockfile

* Add and setup amo eslint config

* Use Array.prototype.some instead of loop

* Make test command compare with addons-frontend

* Update README to refer to yarn over npm
2017-08-11 16:49:06 +02:00
Christopher Grebs 1947ffd7fb Switch our test suite to use Jest test runner.
* Fix javascript test to use new eslint rule format.
* Cleanup dependencies, configure runInBand because we are messing with processes and this leads to inconsisten test results / failures
* Add test-ci shortcut to make tests more predictable and simpler (no process magic) on travis.
* Add missing files
* Fix testMatch
* Fix test and test-no-coverage commands
* Fix default value in manifestjson to be the same key as in the parsedJSON later
* Simplify addons linter test
* Add some optimizations
* Rewrite cli-process test to not rely on shell js and make it work with jest.
* Lots of cleanups, fix toThrow tests to check for messages again.
* re-add eslint, remove more stuff from Gruntfile
* Add proper eslintignore file
* Lots of cleanups, fix all remaining eslint problems.
* Do not test our workaround, that'll be a mess...
* Add test that checks for importSchemas to skip certain files.
* activate jest environment, remove custom global entries
* add collectCoverageFrom config
* remove some old, removed, uncovered code.
* more test fixes
* add missing file
2017-06-12 21:33:26 +08:00