Skip to content

Commit

Permalink
style: migrate deprecated eslint formatting rules to @Stylistic
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyRL committed Nov 13, 2023
1 parent faf053b commit 8940d4a
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 18 deletions.
37 changes: 19 additions & 18 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,26 @@
"prefer-const": 2,
"prefer-regex-literals": 1,
"require-await": 2,
"spaced-comment": 2,
// layout & formatting
"arrow-parens": 2,
"arrow-spacing": 2,
"comma-spacing": 2,
"comma-style": 2,
"func-call-spacing": 2,
"keyword-spacing": 2,
"linebreak-style": 2,
"lines-around-comment": 2,
"no-multiple-empty-lines": 2,
"no-trailing-spaces": 2,
"rest-spread-spacing": 2,
"semi": 2,
"space-before-blocks": 2,
"space-in-parens": 2,
"space-infix-ops": 2,
"space-unary-ops": 2,
// plugin specific
// previous eslint formatting rules
"@stylistic/js/arrow-parens": 2,
"@stylistic/js/arrow-spacing": 2,
"@stylistic/js/comma-spacing": 2,
"@stylistic/js/comma-style": 2,
"@stylistic/js/function-call-spacing": 2,
"@stylistic/js/keyword-spacing": 2,
"@stylistic/js/linebreak-style": 2,
"@stylistic/js/lines-around-comment": 2,
"@stylistic/js/no-multiple-empty-lines": 2,
"@stylistic/js/no-trailing-spaces": 2,
"@stylistic/js/rest-spread-spacing": 2,
"@stylistic/js/semi": 2,
"@stylistic/js/space-before-blocks": 2,
"@stylistic/js/space-in-parens": 2,
"@stylistic/js/space-infix-ops": 2,
"@stylistic/js/space-unary-ops": 2,
"@stylistic/js/spaced-comment": 2,
// https://github.com/eslint-community/eslint-plugin-n
"n/no-extraneous-require": [
"error",
{
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,15 @@
},
"devDependencies": {
"@microsoft/eslint-formatter-sarif": "3.0.0",
"@stylistic/eslint-plugin-js": "1.2.0",
"@types/aes-js": "3.1.4",
"@types/crypto-js": "4.2.1",
"@types/eslint": "8.44.6",
"@types/eslint-config-prettier": "6.11.3",
"@types/etag": "1.8.3",
"@types/fs-extra": "11.0.4",
"@types/git-rev-sync": "2.0.2",
"@types/html-to-text": "9.0.4",
"@types/imapflow": "1.0.16",
"@types/jsdom": "21.1.5",
"@types/json-bigint": "1.0.4",
Expand Down
26 changes: 26 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8940d4a

Please sign in to comment.