Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"@typescript-eslint",
"react"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module"
},
"rules": {
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-var-requires": 0
}
}
4 changes: 2 additions & 2 deletions .github/workflows/frontend-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ jobs:
run: "composer install --prefer-dist --no-interaction --optimize-autoloader --no-suggest --no-progress"

- name: "yarn install"
uses: "borales/actions-yarn@v2.0.0"
uses: "borales/actions-yarn@v3.0.0"
with:
cmd: "install"

- name: "Check for obsolete ts exports"
run: "yarn ts-unused-exports tsconfig.json $(find src/Resources/public -name '*.ts*') --showLineNumber"

- name: "Typescript linting"
run: "yarn tslint src/Resources/public/**/*.ts src/Resources/public/**/*.tsx src/Resources/public/**/**/*.tsx"
run: "yarn eslint src/Resources/public/**/*.ts src/Resources/public/**/*.tsx src/Resources/public/**/**/*.tsx"

- name: "Coding Style"
run: "yarn prettier --config .prettierrc.json --check src/Resources/public/**/*.ts src/Resources/public/**/*.tsx jest/**/*.ts jest/**/*.tsx"
2 changes: 1 addition & 1 deletion .github/workflows/frontend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: "composer install --prefer-dist --no-interaction --optimize-autoloader --no-suggest --no-progress"

- name: "yarn install"
uses: "borales/actions-yarn@v2.0.0"
uses: "borales/actions-yarn@v3.0.0"
with:
cmd: "install"

Expand Down
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,10 @@
"symfony/debug-bundle": "^4.4",
"symfony/web-profiler-bundle": "^4.4",
"symfony/web-server-bundle": "^4.4"
},
"config": {
"allow-plugins": {
"symfony/flex": true
}
}
}
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
"vendor/akeneo/pim-enterprise-dev/src/Akeneo/Pim/Automation/DataQualityInsights/front"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"eslint": "^8.26.0",
"eslint-plugin-react": "^7.31.10",
"prettier": "^2.1.1",
"ts-unused-exports": "^6.2.3",
"tslint": "^6.1.3"
"ts-unused-exports": "^6.2.3"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ const tableAttributeReducer = (
): NormalizedTableAttribute => {
switch (propertyCode) {
case 'table_property':
const tableProperty = propertyValue as NormalizedTableProperty;
return { ...normalizedAttribute, table_property: tableProperty };
return { ...normalizedAttribute, table_property: propertyValue as NormalizedTableProperty };

default:
break;
Expand Down
24 changes: 0 additions & 24 deletions tslint.json

This file was deleted.