Gastón Fournier
ea9bf7f447
chore: add linter rules for regexp ( #3500 )
...
## About the changes
Add linter rules for regexp security vulnerabilities
Commit 1c5d54c76e
[fails due to
regexp/no-super-linear-backtracking](https://github.com/Unleash/unleash/actions/runs/4668430535/jobs/8265506170#step:5:37 )
as reported here:
https://github.com/Unleash/unleash/security/code-scanning/1
[0127d1a
](0127d1a746
)
fixes the issues and warnings by running `yarn lint --fix`
2023-04-17 07:11:22 +00:00
Fredrik Strand Oseberg
bc3744d565
fix: remove stray only ( #2589 )
...
This removes stray onlys in our tests and adds a linter rule that will
error if only is present. Also updates the test result of one of our
tests as a result of [this pull
request](https://github.com/Unleash/unleash/pull/2344 )
2022-12-02 13:10:39 +01:00
olav
1e5859425f
refactor: fix husky and lint-staged setup ( #1654 )
2022-06-02 08:08:53 +02:00
renovate[bot]
4ab41e5fc6
chore(deps): update dependency eslint-config-airbnb-typescript to v14 ( #979 )
...
* chore(deps): update dependency eslint-config-airbnb-typescript to v14
* fix: add eslint-plugin import
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-09-28 21:19:13 +02:00
Christopher Kolstad
ff7be7696c
fix: Stores as typescript and with interfaces. ( #902 )
...
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-08-12 15:04:37 +02:00
Christopher Kolstad
3a65847aa7
Migrate to jest ( #854 )
...
* Migrate to jest
* Use --force-exit until dns close handle issue https://github.com/facebook/jest/issues/9982
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-05-28 11:10:24 +02:00
Christopher Kolstad
18f66ef732
feat: Add change-password endpoint to user-controller ( #800 )
...
fixes : #801
Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
2021-04-22 16:05:59 +02:00
Christopher Kolstad
240c6a77a1
Feat/options need types ( #794 )
...
feat: options are now typed
- This makes it easier to know what to send to unleash.start / unleash.create
- Using a Partial to instantiate the config, then melding it with defaults to get a config object with all fields set either to their defaults or to whatever is passed in.
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
Co-authored-by: Ivar Conradi Østhus <ivarconr@gmail.com>
2021-04-22 10:07:10 +02:00
Ivar Conradi Østhus
469e87a923
fix: remove enableLegacyRoutes option from v2
2021-04-13 09:04:25 +02:00
Ivar Conradi Østhus
e1fbe9d013
feat: Default roles and RBAC permission checker. ( #735 )
...
This PR Introduces first steps towards RBAC according to our specifications. Rbac will assume users to exist in the Unleash user table with a unique id. This is required to make correct mappings between users and roles.
2021-03-11 22:51:58 +01:00
Clint Checketts
5f83fbc43d
chore: Add eslint rules and fix strings to pass rules
2021-02-22 22:20:10 -07:00
Clint Checketts
8cd19254c5
Move deps to devDependencies and add airbnb eslint rules
2021-02-22 22:05:51 -07:00
Clint Checketts
94b278a887
Add support for TS to eslint
...
See https://khalilstemmler.com/blogs/typescript/eslint-for-typescript/
2021-02-22 21:57:58 -07:00
Ivar Conradi Østhus
17c8fe7710
feat: Introduce addon framework
...
fixes : #587
Co-authored-by: Christopher Kolstad <chriswk@getunleash.ai>
2021-02-05 15:20:00 +01:00
Ivar Conradi Østhus
5a852c779a
fix: eslint ignorePatterns for OAS
2020-12-04 09:33:50 +01:00
Ivar Conradi Østhus
d01c9d2dac
fix: use airbnb lint rules directly ( #583 )
...
This drops usage of finn-eslint rules as they are no
longer maintained.
2020-04-14 22:29:11 +02:00
Benjamin Ludewig
a06d2c04bb
Refactored state-service, schemas, added e2e tests #395
2020-02-20 08:34:22 +01:00
sveisvei
375a8b1d4f
Prettier/lint
2020-02-20 08:30:50 +01:00
sveisvei
fa6c28de8f
pass along hooks, add test to server impl
2020-02-20 08:30:50 +01:00
ivaosthu
90859701c6
remove all lerna stuff
2020-02-20 08:30:37 +01:00
sveisvei
08dfac8b53
eslint config
2020-02-20 08:30:26 +01:00
Anders Olsen Sandvik
a96a9f38ce
#108 Add eslint-config-spt and remove jshint ( #111 )
...
* #108 Add eslint-config-spt
* #108 Ignore bundle.js file
* #108 Change eslint ignore path to a glob file
* Remove jshint and follow more of eslint rules
2020-02-20 08:30:24 +01:00