Skip to content

Commit 64e2fd5

Browse files
authored
feat(scripts): drop lint (#5751)
1 parent cc34e36 commit 64e2fd5

12 files changed

Lines changed: 12 additions & 405 deletions

File tree

.changeset/cozy-cases-sin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@talend/scripts-core': major
3+
---
4+
5+
feat: drop lint command from talend-scripts

.changeset/ready-snails-sneeze.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@talend/eslint-config': patch
3+
---
4+
5+
fix: remove storybook eslint plugin from the list

tools/scripts-config-eslint/__tests__/config.test.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
vi.mock('eslint-plugin-storybook', () => ({
2-
configs: { 'flat/recommended': [] },
3-
rules: {},
4-
}));
5-
61
vi.mock('eslint-plugin-mdx', () => ({
72
configs: { flat: {} },
83
rules: {},

tools/scripts-config-eslint/eslint.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const talendPlugin = require('@talend/eslint-plugin');
1616
const angularPlugin = require('eslint-plugin-angular');
1717
const jestDomPlugin = require('eslint-plugin-jest-dom');
1818
const testingLibraryPlugin = require('eslint-plugin-testing-library');
19-
const storybookPlugin = require('eslint-plugin-storybook');
2019
const mdxPlugin = require('eslint-plugin-mdx');
2120

2221
function tsConfig() {
@@ -219,5 +218,4 @@ module.exports = defineConfig([
219218
...tsConfigs,
220219
testConfig,
221220
mdxConfig,
222-
...storybookPlugin.configs['flat/recommended'],
223221
]);

tools/scripts-config-eslint/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"eslint-plugin-prettier": "^5.5.5",
4040
"eslint-plugin-react": "^7.37.5",
4141
"eslint-plugin-react-hooks": "^7.0.1",
42-
"eslint-plugin-storybook": "^10.2.10",
4342
"eslint-plugin-testing-library": "^7.16.0",
4443
"globals": "^15.14.0",
4544
"typescript-eslint": "^8.56.1"

tools/scripts-core/package.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,11 @@
2323
"test:cov": "vitest run"
2424
},
2525
"peerDependencies": {
26-
"@talend/scripts-config-react-webpack": ">=16.0.0",
27-
"@talend/scripts-config-storybook-lib": ">=5.0.0",
28-
"storybook": ">=7.4.0"
26+
"@talend/scripts-config-react-webpack": ">=16.0.0"
2927
},
3028
"peerDependenciesMeta": {
3129
"@talend/scripts-config-react-webpack": {
3230
"optional": true
33-
},
34-
"@talend/scripts-config-storybook-lib": {
35-
"optional": true
36-
},
37-
"storybook": {
38-
"optional": true
3931
}
4032
},
4133
"dependencies": {
@@ -45,9 +37,7 @@
4537
"@talend/eslint-plugin": "^1.8.1",
4638
"@talend/scripts-utils": "^2.8.1",
4739
"@talend/scripts-config-babel": "^13.10.1",
48-
"@talend/scripts-config-stylelint": "^4.5.1",
4940
"@talend/scripts-config-typescript": "^12.1.1",
50-
"stylelint": "^17.4.0",
5141
"babel-loader": "^9.2.1",
5242
"cpx2": "^8.0.0",
5343
"fs-extra": "^10.1.0",

tools/scripts-core/src/config/webpack.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable global-require */
2-
/* eslint-disable import/no-dynamic-require */
31
/* eslint-disable no-console */
42
import { merge } from 'webpack-merge';
53
import * as utils from '@talend/scripts-utils';
@@ -19,7 +17,6 @@ export default async (env = {}) => {
1917
const presetApi = getPresetApi();
2018

2119
let webpackConfigurations = [];
22-
// eslint-disable-next-line import/no-extraneous-dependencies
2320
const defaultConfig = await import('@talend/scripts-config-react-webpack');
2421
webpackConfigurations = webpackConfigurations.concat(
2522
defaultConfig.default(presetApi, { umd: env.umd }),

tools/scripts-core/src/index.js

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
22

33
/* eslint-disable no-console */
4-
import mergeReport from './scripts/lint-merge-report.js';
54
import { getEnv } from './utils/env.js';
65
import { printSeparator } from './utils/log.js';
76
import { getPresetApi } from './utils/preset.js';
@@ -13,9 +12,6 @@ if (command === '--help' || command === '-h' || command === 'help') {
1312
console.log(`Please use one of the following commands:
1413
* start
1514
* build
16-
* lint-merge-report
17-
* test
18-
* extends
1915
`);
2016
process.exit(0);
2117
}
@@ -78,44 +74,8 @@ async function runScript() {
7874
switch (command) {
7975
case 'build':
8076
case 'start':
81-
case 'test':
8277
runScript(command, options);
8378
break;
84-
case 'lint-merge-report':
85-
mergeReport(options);
86-
break;
87-
case 'lint':
88-
console.log(
89-
'The "lint" command has been removed. Please use "eslint ." directly with @talend/eslint-config',
90-
);
91-
process.exit(1);
92-
break;
93-
case 'build:lib':
94-
case 'build:lib:umd':
95-
console.log('This command do not exists anymore, please use just "build" command');
96-
process.exit(-1);
97-
break;
98-
case 'lint:es':
99-
case 'lint:style':
100-
console.log('This command do not exists anymore, please use just "lint" command');
101-
process.exit(-1);
102-
break;
103-
case 'test:ng':
104-
console.log('This command do not exists anymore, please use just "test" command');
105-
process.exit(-1);
106-
break;
107-
case 'upgrade:deps':
108-
console.log(
109-
'This command do not exists anymore, please use just "talend-upgrade-deps" binary from "@talend/upgrade-deps" package',
110-
);
111-
process.exit(-1);
112-
break;
113-
case 'publish:local':
114-
console.log(
115-
'This command do not exists anymore, please use just "talend-publish-local" bin from "@talend/scripts-publish-local" package',
116-
);
117-
process.exit(-1);
118-
break;
11979
default:
12080
console.log(`Command ${command} not found.`);
12181
process.exit(-1);

tools/scripts-core/src/scripts/lint-merge-report.js

Lines changed: 0 additions & 156 deletions
This file was deleted.

0 commit comments

Comments
 (0)