Skip to content

Commit f50e6ea

Browse files
committed
MTV-2156: Remove eslint-plugin
Signed-off-by: Aviv Turgeman <[email protected]>
1 parent 0b5861b commit f50e6ea

23 files changed

+102
-228
lines changed

.eslintrc.js

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/* eslint-env node */
2+
3+
// eslint-disable-next-line @typescript-eslint/no-var-requires
4+
const path = require('path');
5+
6+
// eslint-disable-next-line @cspell/spellchecker
7+
const CSPELL_WORD_LIST = path.join(__dirname, 'cspell.wordlist.txt');
8+
module.exports = {
9+
root: true,
10+
env: {
11+
browser: true,
12+
es2021: true,
13+
},
14+
parser: '@typescript-eslint/parser',
15+
parserOptions: {
16+
ecmaFeatures: {
17+
jsx: true,
18+
},
19+
ecmaVersion: 2016,
20+
sourceType: 'module',
21+
},
22+
extends: [
23+
'eslint:recommended',
24+
'prettier',
25+
'plugin:react/recommended',
26+
'plugin:@cspell/recommended',
27+
'plugin:@typescript-eslint/recommended',
28+
],
29+
plugins: [
30+
'prettier',
31+
'react',
32+
'simple-import-sort',
33+
'unused-imports',
34+
'@cspell',
35+
'@typescript-eslint',
36+
],
37+
rules: {
38+
'prettier/prettier': ['error'],
39+
'unused-imports/no-unused-imports': ['error'],
40+
'simple-import-sort/exports': ['error'],
41+
'simple-import-sort/imports': [
42+
'warn',
43+
{
44+
groups: [
45+
['^react', '^\\w'],
46+
['^(@|config/)(/*|$)'],
47+
['^\\u0000'],
48+
['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
49+
['^.+\\.s?css$'],
50+
],
51+
},
52+
],
53+
'@cspell/spellchecker': [
54+
'warn',
55+
{
56+
customWordListFile: CSPELL_WORD_LIST,
57+
autoFix: false,
58+
},
59+
],
60+
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
61+
},
62+
settings: {
63+
react: {
64+
version: 'detect',
65+
},
66+
},
67+
ignorePatterns: ['dist/', 'generated/', 'node_modules/', 'storybook-static/'],
68+
};

.prettierrc.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* eslint-env node */
2+
module.exports = {
3+
printWidth: 100,
4+
tabWidth: 2,
5+
semi: true,
6+
singleQuote: true,
7+
trailingComma: 'all',
8+
bracketSpacing: true,
9+
};

.stylelintrc.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
extends:
2+
- stylelint-config-standard
3+
- stylelint-config-prettier
4+
rules:
5+
indentation:
6+
- 2
7+
color-named: never
8+
color-no-hex: true
9+
custom-property-pattern: null
10+
function-disallowed-list:
11+
- rgb
12+
selector-class-pattern: null
13+
selector-disallowed-list:
14+
- '*'
15+
- /\.(pf|co)-/
16+
selector-max-type:
17+
- 0
18+
- ignore:
19+
- compounded
20+
- descendant
File renamed without changes.

cypress/.eslintrc.yml

-5
This file was deleted.

cypress/.prettierrc.cjs

-5
This file was deleted.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@
7474
"typescript": "^4.7.4",
7575
"yarn": "^1.22.22"
7676
}
77-
}
77+
}

packages/common/.eslintrc.cjs

-6
This file was deleted.

packages/common/.prettierrc.cjs

-5
This file was deleted.

packages/common/.stylelintrc.yml

-1
This file was deleted.

packages/eslint-plugin/.eslintrc.cjs

-6
This file was deleted.

packages/eslint-plugin/.prettierrc.cjs

-5
This file was deleted.

packages/eslint-plugin/README.md

-3
This file was deleted.

packages/eslint-plugin/index.js

-114
This file was deleted.

packages/eslint-plugin/package.json

-23
This file was deleted.

packages/eslint-plugin/prettierrc.js

-8
This file was deleted.

packages/eslint-plugin/stylelintrc.yml

-29
This file was deleted.

packages/forklift-console-plugin/.eslintrc.cjs

-6
This file was deleted.

packages/forklift-console-plugin/.prettierrc.cjs

-5
This file was deleted.

packages/forklift-console-plugin/.stylelintrc.yml

-1
This file was deleted.

packages/forklift-console-plugin/src/components/common/ProjectNameSelect.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const useProjectNameSelectOptions = (defaultProject: string): TypeaheadSe
6363
return projects.length === 0 || !projectsLoaded || projectsLoadError
6464
? // In case of an error or an empty list, returns the active namespace
6565
[{ value: defaultProject, content: defaultProject }]
66-
: projects.map((project) => ({
66+
: projects.map(project => ({
6767
value: project.metadata?.name,
6868
content: project.metadata?.name,
6969
}));

packages/forklift-console-plugin/webpack.config.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
/* eslint-disable @cspell/spellchecker */
33
/* eslint-env node */
44

5-
import * as path from 'path';
6-
75
import svgToMiniDataURI from 'mini-svg-data-uri';
6+
import * as path from 'path';
87
import { TsconfigPathsPlugin } from 'tsconfig-paths-webpack-plugin';
98
import { Configuration as WebpackConfiguration, EnvironmentPlugin } from 'webpack';
109
import { Configuration as WebpackDevServerConfiguration } from 'webpack-dev-server';
@@ -56,7 +55,7 @@ const config: Configuration = {
5655
test: /\.svg$/,
5756
type: 'asset/inline',
5857
generator: {
59-
dataUrl: (content) => {
58+
dataUrl: content => {
6059
content = content.toString();
6160
return svgToMiniDataURI(content);
6261
},

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -5449,7 +5449,7 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4
54495449
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800"
54505450
integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==
54515451

5452-
eslint@^8.0, eslint@^8.18.0:
5452+
eslint@^8.18.0:
54535453
version "8.57.1"
54545454
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.57.1.tgz#7df109654aba7e3bbe5c8eae533c5e461d3c6ca9"
54555455
integrity sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==

0 commit comments

Comments
 (0)