Граф коммитов

26 Коммитов

Автор SHA1 Сообщение Дата
William Durand 7a68ae8a7b
Use vendored `ajv-merge-patch` library (#4678) 2023-01-19 16:14:15 +01:00
Luca Greco eeccf2547a
fix: Use ESLint Linter API to more directly control parser and rules module loading (#4078)
* fix: Use ESLint Linter API to more directly control parser and rules module loading
* chore: Add smoke test to verify conflicting eslint version do not break addons-linter
2021-12-13 18:09:43 +01:00
Andreas Wagner d2e0876a81
chore(deps): Update webpack and webpack-cli (#3595) 2021-03-04 12:29:00 +01:00
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
William Durand b8aa11ad9a
Upgrade ESLint to 6.x (#3181)
Co-authored-by: Luca Greco <lgreco@mozilla.com>
2020-06-23 15:41:44 +02:00
Rob Wu 6e9aed09b3 Use webpack-node-externals to avoid bundling node_modules
Unlike the current implementation, webpack-node-externals
supports scoped modules and modules with slashes.

`@babel/runtime` is whitelisted (bundled), because it is depended upon
in the production build, despite it only being in `devDependencies`.
2020-02-18 17:18:21 +01:00
greenkeeper[bot] 225c9130df Update eslint-config-amo, integrate Prettier and addons-frontend inspired configuration (#2144)
* chore(package): update eslint-config-amo to version 1.8.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile

* Update to eslint-config-amo 1.8.3
* Integrate prettier and addons-frontend inspired configs
* Run prettier
* Fix some more docs inconsistencies
* Some more eslint/prettier config cleanups
* Reformat bin/
* Fix dependency updates
* Fix readme
* Keep es5 trailing comma support

Fixes #2084
2018-09-04 13:18:45 +02:00
Luca Greco d8b387d753 chore(package): update webpack to version 4.4.1 2018-04-05 16:01:24 +02:00
Ravneet e881b2f2e5 Initialized the yarn command for extraction (#1799)
* Initialized command

* Added src folder
2018-02-12 16:55:36 +01:00
Christopher Grebs 8c5d701d9f
Revert "Resolve src/ folder too"
This reverts commit 39cd9a4eec.
2018-01-30 20:21:38 +01:00
Christopher Grebs 39cd9a4eec
Resolve src/ folder too 2018-01-30 19:55:24 +01:00
Christopher Grebs e3b2a726cf
Block specific content script match patterns. (#1652)
* Block specific content script match patterns.

Fixes #1650

* shorten code a bit

* even shorter code :-/

* Add docs to rules

* Fix build, update yarn

* update message and description

* ...

* Fix test
2017-11-14 18:03:32 +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
Christopher Grebs e991a4490c Upgrade to webpack2, this apparently fixes my problems… 2017-04-11 11:47:18 +07:00
Christopher Grebs b6165371fa get tests to pass 2017-04-11 10:25:38 +07:00
Christopher Grebs 85c1956671 fix webpack? 2017-04-11 08:56:39 +07:00
Christopher Grebs 749d1eb81f exclude tests directory 2017-04-07 14:28:15 +07:00
Christopher Grebs 2f53c4e3ab WIP, try and package up json files for the schema too. 2017-04-07 14:22:07 +07:00
Peter deHaan 2313ba071f Sort ESLint rules and fix Grunt scripts
Bump grunt dependency and extend eslint:recommended rules

Remove jscs meta and address review feedback

Remove last JSCS references from source/docs
2016-05-19 12:25:07 -07:00
Matthew Riley MacPherson 071d2b5540 Change validator to linter (fix #397) 2015-12-11 14:36:42 -05:00
Stuart Colville 34cfbbf0d2 Add coverage reporting to tests 2015-10-08 16:54:41 +02:00
Matthew Riley MacPherson 098f64fa04 Add JSCS Tests
Closes #21
2015-10-01 18:33:54 +01:00
Stuart Colville eff85a03bb Add basic zip handling 2015-09-30 09:36:30 +01:00
Stuart Colville 58534e87bd Add initial CLI 2015-09-25 19:47:21 +01:00
Stuart Colville a2251421d1 Add es6 compilation + tests 2015-09-23 14:40:04 +01:00