link-stack/packages/eslint-config-link
2024-03-03 18:13:26 +01:00
..
patch Bring in hapi-nextauth and dev support libs 2023-03-13 08:24:20 +00:00
profile Fix more build errors 2023-03-15 12:17:43 +00:00
CHANGELOG.md Bring in hapi-nextauth and dev support libs 2023-03-13 08:24:20 +00:00
LICENSE.md Bring in hapi-nextauth and dev support libs 2023-03-13 08:24:20 +00:00
package.json Update deps 2024-03-03 18:13:26 +01:00
README.md Docker Compose refactoring 2023-06-21 12:48:07 +00:00

eslint-config-amigo

A shared eslint config for CDR Tech.

Install

We recommend using @digiresilience/amigo-dev to manage your dev dependencies.

But if you want to do it manually, then:

$ npm install --save-dev @digiresilience/eslint-config-amigo

Usage

.eslintrc.js

require('@digiresilience/eslint-config-amigo/patch/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

    // 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
  ],
  parserOptions: { tsconfigRootDir: __dirname }
};

Credits

Copyright © 2020-present Center for Digital Resilience

Contributors

Abel Luck
Abel Luck

License

License: AGPL v3

GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.