GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tools: simplify .eslintrc.js · nodejs/node@0f45c90

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .eslintrc.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.eslintrc.js‎

Copy file name to clipboardExpand all lines: .eslintrc.js
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ module.exports = {
117117
// https://eslint.org/docs/rules/
118118
'accessor-pairs': 'error',
119119
'array-callback-return': 'error',
120-
'arrow-parens': ['error', 'always'],
121-
'arrow-spacing': ['error', { before: true, after: true }],
120+
'arrow-parens': 'error',
121+
'arrow-spacing': 'error',
122122
'block-scoped-var': 'error',
123123
'block-spacing': 'error',
124124
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
@@ -161,9 +161,9 @@ module.exports = {
161161
ObjectExpression: 'first',
162162
SwitchCase: 1,
163163
}],
164-
'key-spacing': ['error', { mode: 'strict' }],
164+
'key-spacing': 'error',
165165
'keyword-spacing': 'error',
166-
'linebreak-style': ['error', 'unix'],
166+
'linebreak-style': 'error',
167167
'max-len': ['error', {
168168
code: 120,
169169
ignorePattern: '^// Flags:',
@@ -177,7 +177,7 @@ module.exports = {
177177
'no-constant-condition': ['error', { checkLoops: false }],
178178
'no-constructor-return': 'error',
179179
'no-duplicate-imports': 'error',
180-
'no-else-return': ['error', { allowElseIf: true }],
180+
'no-else-return': 'error',
181181
'no-extra-parens': ['error', 'functions'],
182182
'no-lonely-if': 'error',
183183
'no-mixed-requires': 'error',
@@ -284,7 +284,7 @@ module.exports = {
284284
named: 'never',
285285
asyncArrow: 'always',
286286
}],
287-
'space-in-parens': ['error', 'never'],
287+
'space-in-parens': 'error',
288288
'space-infix-ops': 'error',
289289
'space-unary-ops': 'error',
290290
'spaced-comment': ['error', 'always', {

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.