Skip to content

Commit

Permalink
fix eslint in multiple packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien LE MOUILLOUR committed Nov 8, 2023
1 parent 30bdeb9 commit abdedd3
Show file tree
Hide file tree
Showing 29 changed files with 272 additions and 47 deletions.
14 changes: 13 additions & 1 deletion fork/bootstrap-sass/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
{
"root": true,
"extends": "@talend"
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:import/recommended"],
"env": {
"es6": true,
"node": true,
"jasmine": true,
"jest": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"requireConfigFile": false
}
}
4 changes: 4 additions & 0 deletions fork/bootstrap-sass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,9 @@
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@babel/eslint-parser": "^7.22.15",
"eslint": "^7.32.0"
}
}
14 changes: 13 additions & 1 deletion fork/dynamic-cdn-webpack-plugin/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
{
"root": true,
"extends": "@talend"
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:import/recommended"],
"env": {
"es6": true,
"node": true,
"jasmine": true,
"jest": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"requireConfigFile": false
}
}
2 changes: 2 additions & 0 deletions fork/dynamic-cdn-webpack-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@
"webpack": "^5.89.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.22.15",
"all-contributors-cli": "^6.26.1",
"codecov": "^3.8.3",
"eslint": "^7.32.0",
"html-webpack-plugin": "^5.5.3",
"jest": "^29.7.0",
"mz": "^2.7.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
"@svgr/webpack": "^5.5.0",
"@talend/eslint-config": "^12.2.0",
"@talend/eslint-plugin": "^1.0.1",
"@talend/scripts-core": "^16.1.0",
"@talend/scripts-config-babel": "^13.1.0",
"@talend/scripts-config-typescript": "^11.1.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/jsfc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"json-schema"
],
"devDependencies": {
"@talend/eslint-config": "^12.2.0",
"@talend/eslint-plugin": "^1.0.1",
"@talend/scripts-core": "^16.1.0",
"@talend/scripts-config-react-webpack": "^16.2.0",
"@talend/scripts-config-typescript": "^11.1.0",
Expand Down
7 changes: 6 additions & 1 deletion packages/jsfc/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import tv4index from 'tv4';

// eslint-disable-next-line prettier/prettier
import canonicalTitleMapImp from './lib/canonical-title-map';
// eslint-disable-next-line prettier/prettier
import * as schemaDefaultsImp from './lib/schema-defaults';
// eslint-disable-next-line prettier/prettier
import * as sfPathImp from './lib/sf-path';
import canonicalTitleMapImp from './lib/canonical-title-map';

export { merge } from './lib/merge';
export { select } from './lib/select';
export { jsonref } from './lib/resolve';
Expand Down
99 changes: 91 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion tools/babel-plugin-assets-api/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
{
"root": true,
"extends": "@talend"
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:import/recommended"],
"env": {
"es6": true,
"node": true,
"jasmine": true,
"jest": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"requireConfigFile": false
}
}
4 changes: 3 additions & 1 deletion tools/babel-plugin-assets-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "src/index.js",
"scripts": {
"lint": "echo \"Not possible to use talend-scripts here (risk of circular dependency)\" && exit 0",
"lint": "eslint ./src",
"test": "jest"
},
"dependencies": {
Expand All @@ -13,9 +13,11 @@
},
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/eslint-parser": "^7.22.15",
"@babel/preset-env": "^7.23.2",
"babel-jest": "^29.7.0",
"babel-plugin-tester": "^10.1.0",
"eslint": "^7.32.0",
"jest": "^29.7.0",
"react": "^18.2.0"
},
Expand Down
1 change: 1 addition & 0 deletions tools/babel-plugin-assets-api/src/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import pluginTester, { prettierFormatter } from 'babel-plugin-tester';
import path from 'path';

import babelPlugin from '.';

pluginTester({
Expand Down
14 changes: 13 additions & 1 deletion tools/babel-plugin-import-from-index/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
{
"root": true,
"extends": "@talend"
"extends": ["eslint:recommended", "plugin:prettier/recommended", "plugin:import/recommended"],
"env": {
"es6": true,
"node": true,
"jasmine": true,
"jest": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"requireConfigFile": false
}
}
4 changes: 3 additions & 1 deletion tools/babel-plugin-import-from-index/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,19 @@
"url": "https://github.com/Talend/ui.git"
},
"scripts": {
"lint": "echo \"Not possible to use talend-scripts here (risk of circular dependency)\" && exit 0",
"lint": "eslint ./src",
"test": "jest"
},
"dependencies": {
"semver": "^7.5.4"
},
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/eslint-parser": "^7.22.15",
"@babel/preset-env": "^7.23.2",
"babel-jest": "^29.7.0",
"babel-plugin-tester": "^10.1.0",
"eslint": "^7.32.0",
"jest": "^29.7.0"
},
"jest": {
Expand Down
Loading

0 comments on commit abdedd3

Please sign in to comment.