@refinitiv-ui/configurations v7.1.0
Element Framework Configurations
The package contains eslint and TypeScript configurations used for Element Framework development.
Use ESLint to lint your es6 code.
Use TypeScript to keep the code easier to deploy, read and debug.
Configurations are used across all Element Framework components for consistency and code quality.
Installation
npm install @refinitiv-ui/configurations --save-devThis will install the following files:
eslint-config.js- generic ESLint configurationtypescript.eslint-config.js- extends ofeslint-config.jswith support of recommended linting for TypeScripttsconfig.json- development TypeScript parser configurations to meet ES6 specsprod.tsconfig.json- extendstsconfig.jsonto provide production configurations
You can override/use your own files to meet project requirements.
TypeScript support
Below configurations are used with TypeScript (Element Framework v7).
.eslintrc
Your project level (local) .eslintrc:
{
"root": true,
"extends": ["./node_modules/@refinitiv-ui/configurations/typescript.eslint-config.js"],
"parserOptions": {
"project": "./tsconfig.json"
}
}eslint from version 6 does not support global modules and cannot resolve extensions by generic package name. Therefore you must ensure that extends contain the full path to the location of this module.
tsconfig.json
Your project level tsconfig.json:
{
"extends": "@refinitiv-ui/configurations/tsconfig.json"
}No TypeScript support
Below configurations are used when TypeScript is not required.
.eslintrc
Your project level (local) .eslintrc:
{
"root": true,
"extends": ["./node_modules/@refinitiv-ui/configurations/eslint-config.js"]
}Usage
Modern IDE should pick up configurations automatically and apply to the project.
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago