Skip to content

Commit c850653

Browse files
authored
infra: switch to @stylistic/eslint-plugin (#3069)
1 parent 1a94e96 commit c850653

File tree

3 files changed

+180
-6
lines changed

3 files changed

+180
-6
lines changed

eslint.config.js

+15-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/* eslint-disable @typescript-eslint/no-unsafe-argument */
33
import { fixupPluginRules, includeIgnoreFile } from '@eslint/compat';
44
import eslint from '@eslint/js';
5+
import stylistic from '@stylistic/eslint-plugin';
56
import eslintPluginDeprecation from 'eslint-plugin-deprecation';
67
import eslintPluginJsdoc from 'eslint-plugin-jsdoc';
78
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
@@ -100,10 +101,6 @@ export default tseslint.config(
100101
'@typescript-eslint/no-unsafe-assignment': 'off',
101102
'@typescript-eslint/no-unsafe-call': 'off',
102103
'@typescript-eslint/no-unsafe-member-access': 'off',
103-
'@typescript-eslint/padding-line-between-statements': [
104-
'error',
105-
{ blankLine: 'always', prev: 'block-like', next: '*' },
106-
],
107104
'@typescript-eslint/prefer-regexp-exec': 'error',
108105
'@typescript-eslint/restrict-plus-operands': [
109106
'error',
@@ -129,6 +126,20 @@ export default tseslint.config(
129126
},
130127
//#endregion
131128

129+
//#region stylistic
130+
{
131+
plugins: {
132+
'@stylistic': stylistic,
133+
},
134+
rules: {
135+
'@stylistic/padding-line-between-statements': [
136+
'error',
137+
{ blankLine: 'always', prev: 'block-like', next: '*' },
138+
],
139+
},
140+
},
141+
//#endregion
142+
132143
//#region deprecation
133144
{
134145
plugins: {

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
"@eslint-types/unicorn": "52.0.0",
100100
"@eslint/compat": "1.1.1",
101101
"@eslint/js": "9.9.0",
102+
"@stylistic/eslint-plugin": "2.6.4",
102103
"@types/node": "20.16.1",
103104
"@types/sanitize-html": "2.13.0",
104105
"@types/semver": "7.5.8",

pnpm-lock.yaml

+164-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)