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

feat(eslint-plugin): rework configs: recommended, strict, stylistic; -type-checked #5251

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
c282891
feat\!: include lesser configs in recommended/strict
JoshuaKGoldberg Jun 25, 2022
9f697c5
Instead of nested includes, just go with flat
JoshuaKGoldberg Jun 26, 2022
272c8cf
Merge branch 'main' into config-inclusions
JoshuaKGoldberg Jun 26, 2022
b6f900f
Fix configs test too
JoshuaKGoldberg Jun 26, 2022
e108d5c
Merge branch 'main' into config-inclusions
JoshuaKGoldberg Jun 26, 2022
ac8c762
Merge branch 'main' into config-inclusions
JoshuaKGoldberg Jun 28, 2022
1f0c9af
Merge branch 'main'
JoshuaKGoldberg Oct 25, 2022
0414e4d
fix(utils): removed `TRuleListener` generic from the `createRule` (#5…
Andarist Oct 25, 2022
04488c2
feat: create TSTypeQuery node when TSImportType has isTypeOf (#3076)
armano2 Oct 26, 2022
ee2fbfa
Merge branch 'main' into v6
JoshuaKGoldberg Oct 26, 2022
c446386
feat(scope-manager): ignore ECMA version (#5889)
JoshuaKGoldberg Oct 26, 2022
cf2956f
feat: remove semantically invalid properties from TSEnumDeclaration, …
juank1809 Oct 26, 2022
b90e7c3
fix(eslint-plugin): remove valid-typeof disable in eslint-recommended…
JoshuaKGoldberg Oct 26, 2022
fff0e29
feat(utils): remove (ts-)eslint-scope types (#5256)
JoshuaKGoldberg Oct 26, 2022
3d85274
Merge branch 'main' into v6
JoshuaKGoldberg Oct 26, 2022
5b9c379
fix(eslint-plugin): [explicit-module-boundary-types] remove shouldTra…
JoshuaKGoldberg Oct 26, 2022
2a40b70
Merge branch 'v6' into config-inclusions
JoshuaKGoldberg Oct 26, 2022
d434265
Merge branch 'main'
JoshuaKGoldberg Nov 27, 2022
7e8ca66
Enabled base config
JoshuaKGoldberg Nov 27, 2022
984386a
The script runs now
JoshuaKGoldberg Nov 27, 2022
7ccab0e
Upgraded ts-node to avoid bug
JoshuaKGoldberg Nov 27, 2022
fe7b171
Updated configuration docs
JoshuaKGoldberg Nov 27, 2022
d021117
Updated configs exports
JoshuaKGoldberg Nov 27, 2022
c843741
Merge branch 'v6'
JoshuaKGoldberg Nov 27, 2022
2e92921
Updated generation script
JoshuaKGoldberg Nov 28, 2022
763a10b
Merge branch 'v6'
JoshuaKGoldberg Dec 8, 2022
d16370a
Revert CHANGELOG.md change
JoshuaKGoldberg Dec 8, 2022
4089c1d
Switch to ts-node/esm loader
JoshuaKGoldberg Dec 8, 2022
ed459fd
Merge branch 'v6'
JoshuaKGoldberg Dec 11, 2022
41cce4f
Merge branch 'v6' into config-inclusions
JoshuaKGoldberg Dec 16, 2022
81e9557
Fix post-merge type failure
JoshuaKGoldberg Dec 16, 2022
97965ee
pin ts-node to 10.9.0
JoshuaKGoldberg Dec 16, 2022
de26b3e
Merge branch 'v6'
JoshuaKGoldberg Dec 16, 2022
d294820
Switch to tsx for all but Docusaurus
JoshuaKGoldberg Dec 16, 2022
df4ffd6
Fix post-merge generate-breaking-changes issues
JoshuaKGoldberg Dec 16, 2022
6f8f3cc
Switched generation to explicitly include lesser rules
JoshuaKGoldberg Dec 16, 2022
1d05507
Include recommended in strict
JoshuaKGoldberg Dec 16, 2022
ded136e
More granular caching in prepare-install/action.yml
JoshuaKGoldberg Dec 17, 2022
4fc72ba
Fix type checking issues with generate-configs.mts
JoshuaKGoldberg Dec 17, 2022
0980718
Adjusted docs, tests, and RulesTable
JoshuaKGoldberg Dec 17, 2022
717eb93
Adjusted rule docs pages and more RulesTable fixes
JoshuaKGoldberg Dec 17, 2022
208a75b
Swap 💅 to 🎨
JoshuaKGoldberg Dec 17, 2022
83097ba
pin ts-node to 10.7.0
JoshuaKGoldberg Dec 18, 2022
d711d27
Fix docs post-merge artifact
JoshuaKGoldberg Dec 18, 2022
6f5a98e
Err, mostly or completely fix
JoshuaKGoldberg Dec 18, 2022
20a3c15
prefer-reduce-type-parameter back to strict; fix other complaints
JoshuaKGoldberg Dec 18, 2022
1a6281a
Put integration test back
JoshuaKGoldberg Dec 18, 2022
5c350c9
Start updating the snapshot
JoshuaKGoldberg Dec 18, 2022
26fff6f
More snapshot correction
JoshuaKGoldberg Dec 18, 2022
8f0b98e
Put no-unused-vars in recommended
JoshuaKGoldberg Dec 18, 2022
05cacb4
Fix root config to always error; remove unneeded no-unused-vars
JoshuaKGoldberg Dec 18, 2022
818a6de
Some more linting
JoshuaKGoldberg Dec 18, 2022
45f2d9c
Merge branch 'v6' into config-inclusions
JoshuaKGoldberg Jan 19, 2023
45d5ae5
Undo action.yml changes
JoshuaKGoldberg Jan 19, 2023
122e95b
Added todo
JoshuaKGoldberg Jan 19, 2023
e747315
Fix no-extra-semi.ts and configs.test.ts
JoshuaKGoldberg Feb 4, 2023
32811c6
Merge branch 'v6' into config-inclusions
JoshuaKGoldberg Feb 4, 2023
47bf5d3
Merge branch 'v6'
JoshuaKGoldberg Feb 4, 2023
f041254
Update packages/eslint-plugin/tools/generate-configs.mts
JoshuaKGoldberg Feb 4, 2023
2611c58
Last few review fixups
JoshuaKGoldberg Feb 4, 2023
7bacfdf
lil 'a' typo
JoshuaKGoldberg Feb 4, 2023
c94af6f
Merge branch 'v6'
JoshuaKGoldberg Feb 4, 2023
3260492
No more .mts needed
JoshuaKGoldberg Feb 4, 2023
0c5d1fe
Adjust eslint-plugin/tools/generate files to build
JoshuaKGoldberg Feb 4, 2023
ce77d04
Fix casing
JoshuaKGoldberg Feb 4, 2023
aa470c5
...and extensions
JoshuaKGoldberg Feb 4, 2023
a807b42
git mv for casing
JoshuaKGoldberg Feb 5, 2023
ee09857
Merge branch '6'
JoshuaKGoldberg Feb 6, 2023
06e6f09
Simplify old recommended-requiring-type-checking include; delete file
JoshuaKGoldberg Feb 14, 2023
48e2f11
Merge branch 'v6'
JoshuaKGoldberg Feb 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 9 additions & 9 deletions .eslintrc.js
Expand Up @@ -17,8 +17,8 @@ module.exports = {
extends: [
'eslint:recommended',
'plugin:eslint-plugin/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:@typescript-eslint/recommended-type-checked',
// TODO: consider enabling strict-type-checked and/or stylistic-type-checked
],
parserOptions: {
sourceType: 'module',
Expand Down Expand Up @@ -94,7 +94,7 @@ module.exports = {
},
],
'@typescript-eslint/no-unused-vars': [
'warn',
'error',
{ varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
],

Expand Down Expand Up @@ -122,7 +122,7 @@ module.exports = {
'no-console': 'error',
'no-process-exit': 'error',
'no-fallthrough': [
'warn',
'error',
{ commentPattern: '.*intentional fallthrough.*' },
],

Expand Down Expand Up @@ -223,17 +223,17 @@ module.exports = {
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'eslint-plugin/consistent-output': 'off', // Might eventually be removed from `eslint-plugin/recommended`: https://github.com/not-an-aardvark/eslint-plugin-eslint-plugin/issues/284
'jest/no-disabled-tests': 'warn',
'jest/no-disabled-tests': 'error',
'jest/no-focused-tests': 'error',
'jest/no-alias-methods': 'error',
'jest/no-identical-title': 'error',
'jest/no-jasmine-globals': 'error',
'jest/no-test-prefixes': 'error',
'jest/no-done-callback': 'error',
'jest/no-test-return-statement': 'error',
'jest/prefer-to-be': 'warn',
'jest/prefer-to-contain': 'warn',
'jest/prefer-to-have-length': 'warn',
'jest/prefer-to-be': 'error',
'jest/prefer-to-contain': 'error',
'jest/prefer-to-have-length': 'error',
'jest/prefer-spy-on': 'error',
'jest/valid-expect': 'error',
'jest/no-deprecated-functions': 'error',
Expand Down Expand Up @@ -312,7 +312,7 @@ module.exports = {
},
// tools and tests
{
files: ['**/tools/**/*.ts', '**/tests/**/*.ts'],
files: ['**/tools/**/*.*t*', '**/tests/**/*.ts'],
rules: {
// allow console logs in tools and tests
'no-console': 'off',
Expand Down
2 changes: 0 additions & 2 deletions docs/Custom_Rules.mdx
Expand Up @@ -63,7 +63,6 @@ export const rule = createRule({
docs: {
description:
'Function declaration names should start with an upper-case letter.',
recommended: 'warn',
},
messages: {
uppercase: 'Start this name with an upper-case letter.',
Expand Down Expand Up @@ -256,7 +255,6 @@ export const rule = createRule({
meta: {
docs: {
description: 'Avoid looping over enums.',
recommended: 'error',
},
messages: {
loopOverEnum: 'Do not loop over enums.',
Expand Down
141 changes: 0 additions & 141 deletions docs/linting/CONFIGURATIONS.mdx

This file was deleted.