0.0.4 • Published 1 year ago

@fidesui/config v0.0.4

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
1 year ago

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"
  ]
}
0.0.4

1 year ago

0.0.3

2 years ago