Skip to content

Commit

Permalink
[eslint] fix indentation and whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 12, 2022
1 parent 6ee1437 commit aaa9d1f
Show file tree
Hide file tree
Showing 11 changed files with 420 additions and 429 deletions.
81 changes: 36 additions & 45 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,50 +1,41 @@
{
"root": true,
"root": true,

"extends": "@ljharb",
"extends": "@ljharb",

"rules": {
"array-bracket-newline": 0,
"array-bracket-spacing": 1,
"array-callback-return": 1,
"brace-style": 1,
"comma-spacing": 1,
"complexity": 0,
"consistent-return": 1,
"curly": 1,
"eqeqeq": 1,
"func-style": 1,
"indent": [1, 4],
"max-depth": 0,
"max-lines-per-function": 1,
"max-statements": 0,
"multiline-comment-style": 0,
"no-else-return": 1,
"no-lonely-if": 1,
"no-negated-condition": 1,
"no-param-reassign": 1,
"no-shadow": 1,
"no-template-curly-in-string": 0,
"no-trailing-spaces": 1,
"no-use-before-define": 1,
"no-useless-escape": 1,
"nonblock-statement-body-position": 1,
"object-curly-spacing": 1,
"prefer-regex-literals": 1,
"quotes": 1,
"space-before-blocks": 1,
"space-before-function-paren": 1,
"space-infix-ops": 1,
"spaced-comment": 1,
"wrap-regex": 1,
},
"rules": {
"array-bracket-newline": 0,
"array-callback-return": 1,
"brace-style": 1,
"complexity": 0,
"consistent-return": 1,
"curly": 1,
"eqeqeq": 1,
"func-style": 1,
"max-depth": 0,
"max-lines-per-function": 1,
"max-statements": 0,
"multiline-comment-style": 0,
"no-else-return": 1,
"no-lonely-if": 1,
"no-negated-condition": 1,
"no-param-reassign": 1,
"no-shadow": 1,
"no-template-curly-in-string": 0,
"no-use-before-define": 1,
"no-useless-escape": 1,
"nonblock-statement-body-position": 1,
"prefer-regex-literals": 1,
"quotes": 1,
"wrap-regex": 1,
},

"overrides": [
{
"files": "example/**",
"rules": {
"no-console": 0,
},
},
],
"overrides": [
{
"files": "example/**",
"rules": {
"no-console": 0,
},
},
],
}
2 changes: 1 addition & 1 deletion example/quote.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';

var quote = require('../').quote;
var s = quote([ 'a', 'b c d', '$f', '"g"' ]);
var s = quote(['a', 'b c d', '$f', '"g"']);
console.log(s);
Loading

0 comments on commit aaa9d1f

Please # to comment.