This commit is contained in:
Darren Clarke 2024-03-16 19:39:20 +01:00
parent 43bfdaa1e3
commit fe6c9419dd
87 changed files with 16739 additions and 2526 deletions

View file

@ -1,37 +1,25 @@
# eslint-config-amigo
# eslint-config
A shared eslint config for [CDR Tech][cdrtech].
# Install
We recommend using [@digiresilience/amigo-dev][amigo-dev] to manage your dev dependencies.
[amigo-dev]: https://gitlab.com/digiresilience/link/amigo-dev
But if you want to do it manually, then:
```console
$ npm install --save-dev @digiresilience/eslint-config-amigo
```
# Usage
**`.eslintrc.js`**
```js
require('@digiresilience/eslint-config-amigo/patch/modern-module-resolution');
require("eslint-config-amigo/modern-module-resolution");
module.exports = {
extends: [
// one of:
"@digiresilience/eslint-config-amigo/profile/browser", // if targeting the browser
"@digiresilience/eslint-config-amigo/profile/node", // if targeting node
"eslint-config/profile/browser", // if targeting the browser
"eslint-config/profile/node", // if targeting node
// and optionally:
"@digiresilience/eslint-config-amigo/profile/typescript", // if using typescript (node or browser)
"@digiresilience/eslint-config-amigo/profile/cypress", // if using cypress
"@digiresilience/eslint-config-amigo/profile/jest" // if using jest
"eslint-config/profile/typescript", // if using typescript (node or browser)
"eslint-config/profile/cypress", // if using cypress
"eslint-config/profile/jest", // if using jest
],
parserOptions: { tsconfigRootDir: __dirname }
parserOptions: { tsconfigRootDir: __dirname },
};
```
@ -41,11 +29,11 @@ Copyright © 2020-present [Center for Digital Resilience][cdr]
### Contributors
| [![Abel Luck][abelxluck_avatar]][abelxluck_homepage]<br/>[Abel Luck][abelxluck_homepage] |
|---|
| [![Abel Luck][abelxluck_avatar]][abelxluck_homepage]<br/>[Abel Luck][abelxluck_homepage] |
| ---------------------------------------------------------------------------------------- |
[abelxluck_homepage]: https://gitlab.com/abelxluck
[abelxluck_avatar]: https://secure.gravatar.com/avatar/0f605397e0ead93a68e1be26dc26481a?s=100&amp;d=identicon
[abelxluck_avatar]: https://secure.gravatar.com/avatar/0f605397e0ead93a68e1be26dc26481a?s=100&d=identicon
### License