read-xml
Version:
Read a xml file respecting its encoding information
83 lines (74 loc) • 1.79 kB
Plain Text
{
// change to eslint-config-airbnb/base for a config without react rules
"extends": "eslint-config-airbnb/base", // https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb/.eslintrc
// Allow the following global variables
"env": {
"browser": true, // browser global variables
"node": true, // Node.js global variables and Node.js scoping.
"mocha": true // adds all of the Mocha testing global variables.
},
"rules": {
/**
* ES6
*/
"prefer-const": 0,
/**
* Variables
*/
"no-shadow": [2, {
"builtinGlobals": true
}],
"no-unused-vars": [2, {
"vars": "all",
"args": "after-used"
}],
"no-use-before-define": [2, "nofunc"],
/**
* Possible errors
*/
"comma-dangle": [2, "never"],
"no-inner-declarations": [2, "both"],
/**
* Best practices
*/
"consistent-return": 0,
"curly": 2,
"dot-notation": [2, {
"allowKeywords": true,
"allowPattern": "^[a-z]+(_[a-z]+)+$"
}],
"eqeqeq": [2, "allow-null"],
"no-eq-null": 0,
"no-redeclare": [2, {
"builtinGlobals": true
}],
"wrap-iife": [2, "inside"],
/**
* Style
*/
"indent": [2, 2, {
"VariableDeclarator": {
"var": 2,
"let": 2,
"const": 3
},
"SwitchCase": 1
}],
"func-names": 0,
"no-multiple-empty-lines": [2, {
"max": 1
}],
"no-extra-parens": [2, "functions"],
"one-var": 0,
"space-before-function-paren": [2, "never"],
/**
* Node Style
*/
"node/no-missing-import": 2,
"node/no-missing-require": 2,
"node/no-unpublished-import": 2,
"node/no-unpublished-require": 2,
"node/shebang": 2
},
"plugins": ["node"]
}