@fidesui/config

0.0.4 • Public • Published

FidesUI Config

This package exports config files for the tools that are commonly used in Fides projects. Extends those files be adding this package as a devDependency following the examples listed below.

Prettier

package.json

{
  "prettier": "@fidesui/config/prettier"
}

TypeScript

tsconfig.json

{
  "extends": "@fidesui/config/tsconfig",
  "compilerOptions": {
    // Project-specific configuration
    // ...
    // Some options like support for absolute paths can't be inherited.
    "baseUrl": ".",
    "paths": {
      "~/*": [
        "src/*"
      ]
    }
  }
}

ESLint

Historically, ESLint is opinionated about the package names of shared configuration files: eslint#14034

The workaround is to require.resolve() the module, or reference the packaged file directly:

.eslintrc.js

module.exports = {
  extends: [
    require.resolve('@fidesui/config/eslint'),
  ],
};

.eslintrc.json

{
  "extends": [
    "./node_modules/@fidesui/config/.eslintrc.js"
  ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @fidesui/config

Weekly Downloads

0

Version

0.0.4

License

Apache-2.0

Unpacked Size

15.6 kB

Total Files

7

Last publish

Collaborators

  • ethycabot
  • nsamuell