Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): update ESLint pluggins, migrate lint rules #2625

Merged
merged 38 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
b66d653
chore(deps): update eslint dependencies, set new config
NastaLeo Aug 21, 2024
bd6f96c
style(lint): set rules for eslint config
NastaLeo Aug 21, 2024
b77e366
chore(deps): install 'stylistic/eslint-plugin'
NastaLeo Aug 21, 2024
8d9d35a
style(deps): precise eslint rules, move to '@stylistic/eslint-plugin'
NastaLeo Aug 21, 2024
535481e
style(deps): fix max-len rule
NastaLeo Aug 21, 2024
5fe3850
style(deps): add ignore caught errors rule
NastaLeo Aug 26, 2024
b0ab156
style(deps): migrate ban-types to new rules
NastaLeo Aug 26, 2024
816b7ac
style(deps): get rid of TODO check
NastaLeo Aug 26, 2024
24e640c
style(deps): update sonarjs
NastaLeo Aug 26, 2024
b7c6e29
style(deps): remove unused rule
NastaLeo Aug 26, 2024
fe80c5a
style(deps): update config
NastaLeo Aug 26, 2024
bdf3437
style(deps): turn off import.eslintrc.yml
NastaLeo Aug 26, 2024
6932cb2
style(deps): add @ts-ignore to custom plugin tests
NastaLeo Aug 26, 2024
9d0eb2d
Merge remote-tracking branch 'refs/remotes/origin/main' into tech/esl…
ala-n Aug 27, 2024
afa74f0
chore(deps): replace eslint-plugin-import by eslint-plugin-import-x
NastaLeo Aug 27, 2024
468028b
Merge branch 'tech/esllint-rules' of https://github.com/exadel-inc/es…
NastaLeo Aug 27, 2024
c540298
style(deps): update deps
NastaLeo Aug 27, 2024
ab336e4
style(deps): move ignore and languageOptions config to separate files
NastaLeo Aug 27, 2024
2be5b6f
style(deps): split import plugin config
NastaLeo Aug 27, 2024
051d7cf
style(deps): refactor custom rules handling
NastaLeo Aug 27, 2024
2434d44
style(deps): fix custom rules usages
NastaLeo Aug 27, 2024
f7b2b70
style(deps): remove unused dependency
NastaLeo Aug 27, 2024
19bd447
style(deps): fix ignore files
NastaLeo Aug 27, 2024
c4cf30e
chore: refactor and rename rule config files
ala-n Aug 27, 2024
e73afaa
chore: update dependencies to use exactly 9th version of eslint
ala-n Aug 27, 2024
af766de
chore: remove related `.eslintignore`
ala-n Aug 28, 2024
12c7f41
chore: temporary disable validation for subpackages
ala-n Aug 28, 2024
37b74f6
chore(deps): small changes of rules files structure
NastaLeo Aug 28, 2024
b0de4c5
chore: fix ignore config
NastaLeo Aug 28, 2024
dd9227d
style(deps): fix import config
NastaLeo Aug 28, 2024
1dee607
style(deps): return test script for e2e module
NastaLeo Aug 28, 2024
a8f19f7
Merge branch 'main-beta' of https://github.com/exadel-inc/esl into te…
NastaLeo Aug 30, 2024
0052ee1
Merge remote tracking branch 'main-beta' into 'tech/eslint-rules'
NastaLeo Aug 30, 2024
e265b1b
Merge remote-tracking branch 'origin/main-beta' into tech/esllint-rules
ala-n Aug 30, 2024
5e9cabb
chore(deps): remove unused directives
NastaLeo Aug 30, 2024
84bb532
Merge branch 'tech/esllint-rules' of https://github.com/exadel-inc/es…
NastaLeo Aug 30, 2024
649563f
chore: move yml files to js
NastaLeo Aug 30, 2024
c0905ca
style(deps): apply suggestions from code review
NastaLeo Sep 2, 2024
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
17 changes: 0 additions & 17 deletions .eslintignore

This file was deleted.

56 changes: 0 additions & 56 deletions .eslintrc.yml

This file was deleted.

6 changes: 0 additions & 6 deletions e2e/.eslintignore

This file was deleted.

2 changes: 0 additions & 2 deletions e2e/jest-puppeteer.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable no-undef */

if (!process.argv.includes('--no-autorun') && !process.env.PORT) {
process.env.PORT = '3007';
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"run:update:only": "jest -u --no-autorun",
"run:tests:only": "jest --no-autorun",
"run:server": "cd .. && cross-env-shell PORT=3007 npm run start:test --workspace=site",
"test": "eslint"
"test": "eslint \"**/*.ts\""
},
"dependencies": {
"@types/jest-environment-puppeteer": "^5.0.6",
Expand Down
17 changes: 17 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = [
{
files: ["**/*.ts", "**/*.tsx"],
linterOptions: {
reportUnusedDisableDirectives: "warn"
}
},
...require('./linting/eslint.config.ignore'),
...require('./linting/eslint.config.language'),
...require('./linting/eslint.config.codestyle'),
...require('./linting/eslint.config.coderules'),
...require('./linting/eslint.config.sonarjs'),
...require('./linting/eslint.config.stylistic'),
...require('./linting/eslint.config.editorconfig'),
...require('./linting/eslint.config.import'),
...require('./linting/eslint.config.tsdoc')
];
2 changes: 1 addition & 1 deletion eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"scripts": {
"prepare": "npm run build",
"test": "jest",
"test": "",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temporary, until plugin update

"clean": "rimraf dist",
"build": "npm run clean && tsc --project tsconfig.build.json"
},
Expand Down
1 change: 1 addition & 0 deletions eslint/test/deprecated-alias.invalid.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ describe('ESL Migration Rules: Deprecated Alias: invalid', () => {
});

const ruleTester = new RuleTester({
// @ts-ignore
parser: require.resolve('@typescript-eslint/parser')
});

Expand Down
1 change: 1 addition & 0 deletions eslint/test/deprecated-alias.valid.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ describe('ESL Migration Rules: Deprecated Alias: valid', () => {
});

const ruleTester = new RuleTester({
// @ts-ignore
parser: require.resolve('@typescript-eslint/parser')
});

Expand Down
1 change: 1 addition & 0 deletions eslint/test/deprecated-class-method.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ describe('ESL Migration Rules: Deprecated Static Method: valid', () => {
});

const ruleTester = new RuleTester({
// @ts-ignore
parser: require.resolve('@typescript-eslint/parser')
});

Expand Down
Loading