mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Updated eslint config; (#4722)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
+4
-6
@@ -54,17 +54,17 @@ module.exports = {
|
|||||||
/**
|
/**
|
||||||
* Best practices
|
* Best practices
|
||||||
*/
|
*/
|
||||||
'consistent-return': 2, // http://eslint.org/docs/rules/consistent-return
|
'consistent-return': 0, // http://eslint.org/docs/rules/consistent-return
|
||||||
'curly': [2, 'multi-line'], // http://eslint.org/docs/rules/curly
|
'curly': [2, 'multi-line'], // http://eslint.org/docs/rules/curly
|
||||||
'default-case': 2, // http://eslint.org/docs/rules/default-case
|
'default-case': 2, // http://eslint.org/docs/rules/default-case
|
||||||
'dot-notation': [2, { // http://eslint.org/docs/rules/dot-notation
|
'dot-notation': [2, { // http://eslint.org/docs/rules/dot-notation
|
||||||
'allowKeywords': true
|
'allowKeywords': true
|
||||||
}],
|
}],
|
||||||
'eqeqeq': 2, // http://eslint.org/docs/rules/eqeqeq
|
'eqeqeq': [2, "smart"], // http://eslint.org/docs/rules/eqeqeq
|
||||||
'guard-for-in': 2, // http://eslint.org/docs/rules/guard-for-in
|
'guard-for-in': 2, // http://eslint.org/docs/rules/guard-for-in
|
||||||
'no-caller': 2, // http://eslint.org/docs/rules/no-caller
|
'no-caller': 2, // http://eslint.org/docs/rules/no-caller
|
||||||
'no-else-return': 2, // http://eslint.org/docs/rules/no-else-return
|
'no-else-return': 2, // http://eslint.org/docs/rules/no-else-return
|
||||||
'no-eq-null': 2, // http://eslint.org/docs/rules/no-eq-null
|
'no-eq-null': 0, // http://eslint.org/docs/rules/no-eq-null
|
||||||
'no-eval': 2, // http://eslint.org/docs/rules/no-eval
|
'no-eval': 2, // http://eslint.org/docs/rules/no-eval
|
||||||
'no-extend-native': 2, // http://eslint.org/docs/rules/no-extend-native
|
'no-extend-native': 2, // http://eslint.org/docs/rules/no-extend-native
|
||||||
'no-extra-bind': 2, // http://eslint.org/docs/rules/no-extra-bind
|
'no-extra-bind': 2, // http://eslint.org/docs/rules/no-extra-bind
|
||||||
@@ -114,9 +114,7 @@ module.exports = {
|
|||||||
}],
|
}],
|
||||||
'comma-style': [2, 'last'], // http://eslint.org/docs/rules/comma-style
|
'comma-style': [2, 'last'], // http://eslint.org/docs/rules/comma-style
|
||||||
'eol-last': 2, // http://eslint.org/docs/rules/eol-last
|
'eol-last': 2, // http://eslint.org/docs/rules/eol-last
|
||||||
'func-names': [
|
'func-names': 0, // http://eslint.org/docs/rules/func-names
|
||||||
1, 'as-needed'
|
|
||||||
], // http://eslint.org/docs/rules/func-names
|
|
||||||
'key-spacing': [2, { // http://eslint.org/docs/rules/key-spacing
|
'key-spacing': [2, { // http://eslint.org/docs/rules/key-spacing
|
||||||
'beforeColon': false,
|
'beforeColon': false,
|
||||||
'afterColon': true
|
'afterColon': true
|
||||||
|
|||||||
Reference in New Issue
Block a user