Skip to content

Commit

Permalink
add lib
Browse files Browse the repository at this point in the history
  • Loading branch information
soker90 committed Jan 9, 2025
1 parent d1fbc15 commit 0ebfdc5
Show file tree
Hide file tree
Showing 11 changed files with 5,529 additions and 5,087 deletions.
60 changes: 1 addition & 59 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,60 +1,2 @@
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: 13
sourceType: module
ecmaFeatures: { jsx: true }

env:
browser: true
es6: true
jest: true

settings:
react:
version: detect

extends:
- "eslint:recommended"
- "plugin:react/recommended"
- "plugin:react-hooks/recommended"
- "plugin:@typescript-eslint/recommended"
- "plugin:jest/recommended"
- "plugin:jest/style"
# Make sure this is always the last configuration in the extends array,
- "plugin:prettier/recommended"

ignorePatterns:
- "*/dist"
- "*/build"
- "*/node_modules"
- "webpack.*"
- "*.html"

plugins:
- "@typescript-eslint"
- "prettier"
- "jest"

rules:
"prettier/prettier": warn
"react/jsx-uses-react": off
"react/react-in-jsx-scope": off
"no-unused-vars": off
no-restricted-properties:
- error
- object: Object
property: fromEntries
message: "Please do not use Object.fromEntries(). It is not compatible with STB."
"@typescript-eslint/no-unused-vars": [warn, { argsIgnorePattern: "^_" }]
"@typescript-eslint/no-explicit-any": error
"react-hooks/exhaustive-deps": error
"react/jsx-boolean-value": error
"@typescript-eslint/consistent-type-imports": warn
"react/self-closing-comp": error
"eqeqeq": error
"react/jsx-curly-brace-presence": [ error, { props: 'never', children: 'never' } ]
"jest/consistent-test-it": [ "error", { fn: "test", withinDescribe: "it" } ]

overrides: []

globals: {}
- "./node_modules/@telefonica/living-apps-eslint-config"
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.5.1
20
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

8 changes: 8 additions & 0 deletions .prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import fs from 'fs/promises';
import yaml from 'js-yaml';

const prettierFile = await fs.readFile('./node_modules/@telefonica/living-apps-eslint-config/.prettierrc', 'utf8');

const prettierConfig = yaml.load(prettierFile);

export default prettierConfig;
Loading

0 comments on commit 0ebfdc5

Please sign in to comment.