-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[meta] consistently indent .eslintrc with tabs
- Loading branch information
Showing
1 changed file
with
79 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,82 @@ | ||
{ | ||
"root": true, | ||
"extends": ["airbnb-base", "plugin:eslint-plugin/recommended"], | ||
"plugins": ["eslint-plugin"], | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"sourceType": "script", | ||
}, | ||
"ignorePatterns": [ | ||
"coverage/", | ||
".nyc_output/", | ||
], | ||
"rules": { | ||
"comma-dangle": [2, "always-multiline"], | ||
"object-shorthand": [2, "always", { | ||
"ignoreConstructors": false, | ||
"avoidQuotes": false, // this is the override vs airbnb | ||
}], | ||
"max-len": [2, 120, { | ||
"ignoreStrings": true, | ||
"ignoreTemplateLiterals": true, | ||
"ignoreComments": true, | ||
}], | ||
"consistent-return": 0, | ||
"root": true, | ||
"extends": ["airbnb-base", "plugin:eslint-plugin/recommended"], | ||
"plugins": ["eslint-plugin"], | ||
"env": { | ||
"es6": true, | ||
"node": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"sourceType": "script", | ||
}, | ||
"ignorePatterns": [ | ||
"coverage/", | ||
".nyc_output/", | ||
], | ||
"rules": { | ||
"comma-dangle": [2, "always-multiline"], | ||
"object-shorthand": [2, "always", { | ||
"ignoreConstructors": false, | ||
"avoidQuotes": false, // this is the override vs airbnb | ||
}], | ||
"max-len": [2, 120, { | ||
"ignoreStrings": true, | ||
"ignoreTemplateLiterals": true, | ||
"ignoreComments": true, | ||
}], | ||
"consistent-return": 0, | ||
|
||
"prefer-destructuring": [2, { "array": false, "object": false }, { "enforceForRenamedProperties": false }], | ||
"prefer-object-spread": 0, // until node 8 is required | ||
"prefer-rest-params": 0, // until node 6 is required | ||
"prefer-spread": 0, // until node 6 is required | ||
"function-call-argument-newline": 1, // TODO: enable | ||
"function-paren-newline": 0, | ||
"no-plusplus": [2, {"allowForLoopAfterthoughts": true}], | ||
"no-param-reassign": 1, | ||
"no-restricted-syntax": [2, { | ||
"selector": "ObjectPattern", | ||
"message": "Object destructuring is not compatible with Node v4" | ||
}], | ||
"strict": [2, "safe"], | ||
"valid-jsdoc": [2, { | ||
"requireReturn": false, | ||
"requireParamDescription": false, | ||
"requireReturnDescription": false, | ||
}], | ||
"prefer-destructuring": [2, { "array": false, "object": false }, { "enforceForRenamedProperties": false }], | ||
"prefer-object-spread": 0, // until node 8 is required | ||
"prefer-rest-params": 0, // until node 6 is required | ||
"prefer-spread": 0, // until node 6 is required | ||
"function-call-argument-newline": 1, // TODO: enable | ||
"function-paren-newline": 0, | ||
"no-plusplus": [2, {"allowForLoopAfterthoughts": true}], | ||
"no-param-reassign": 1, | ||
"no-restricted-syntax": [2, { | ||
"selector": "ObjectPattern", | ||
"message": "Object destructuring is not compatible with Node v4" | ||
}], | ||
"strict": [2, "safe"], | ||
"valid-jsdoc": [2, { | ||
"requireReturn": false, | ||
"requireParamDescription": false, | ||
"requireReturnDescription": false, | ||
}], | ||
|
||
"eslint-plugin/consistent-output": 0, | ||
"eslint-plugin/require-meta-docs-description": [2, { "pattern": "^(Enforce|Require|Disallow)" }], | ||
"eslint-plugin/require-meta-schema": 0, | ||
"eslint-plugin/require-meta-type": 0 | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": "tests/**", | ||
"rules": { | ||
"no-template-curly-in-string": 1, | ||
}, | ||
}, | ||
{ | ||
"files": "markdown.config.js", | ||
"rules": { | ||
"no-console": 0, | ||
}, | ||
}, | ||
{ | ||
"files": ".github/workflows/*.js", | ||
"parserOptions": { | ||
"ecmaVersion": 2019, | ||
}, | ||
"rules": { | ||
"camelcase": 0, | ||
"no-console": 0, | ||
"no-restricted-syntax": 0, | ||
}, | ||
}, | ||
], | ||
} | ||
"eslint-plugin/consistent-output": 0, | ||
"eslint-plugin/require-meta-docs-description": [2, { "pattern": "^(Enforce|Require|Disallow)" }], | ||
"eslint-plugin/require-meta-schema": 0, | ||
"eslint-plugin/require-meta-type": 0 | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": "tests/**", | ||
"rules": { | ||
"no-template-curly-in-string": 1, | ||
}, | ||
}, | ||
{ | ||
"files": "markdown.config.js", | ||
"rules": { | ||
"no-console": 0, | ||
}, | ||
}, | ||
{ | ||
"files": ".github/workflows/*.js", | ||
"parserOptions": { | ||
"ecmaVersion": 2019, | ||
}, | ||
"rules": { | ||
"camelcase": 0, | ||
"no-console": 0, | ||
"no-restricted-syntax": 0, | ||
}, | ||
}, | ||
], | ||
} |