@fidesui/config
v0.0.4
Published
Base config files for Fides projects
Downloads
10
Readme
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"
]
}