-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
5,529 additions
and
5,087 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20.5.1 | ||
20 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Oops, something went wrong.