airshipui/web/.eslintrc.json
Schiefelbein, Andrew 9f415a19c0 Update eslint with rules that were used in coreui
Change-Id: Ib5b92e12e7bee4c70f24c181a275484068abb682
2020-05-21 15:34:37 -05:00

68 lines
1.6 KiB
JSON
Executable File

{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"es6": true
},
"plugins": [
"eslint-plugin-html",
"html"
],
"rules": {
"array-bracket-newline": "error",
"curly": "error",
"eqeqeq": "error",
"indent": [
"error",
4,
{
"MemberExpression": "off",
"SwitchCase": 1
}
],
"multiline-ternary": [
"error",
"always-multiline"
],
"new-cap": "off",
"no-mixed-operators": "off",
"no-redeclare": "error",
"no-unused-expressions": "error",
"no-unused-vars": "error",
"no-useless-escape": "error",
"object-curly-spacing": [
"error",
"always"
],
"prefer-destructuring": [
"error",
{
"object": true,
"array": false
}
],
"quotes": [
"error",
"double"
],
"semi-style": [
"error",
"last"
],
"unicorn/explicit-length-check": "off",
"unicorn/filename-case": "off",
"unicorn/import-index": "off",
"unicorn/prefer-includes": "off",
"unicorn/prefer-node-append": "off",
"unicorn/prefer-node-remove": "off",
"unicorn/prefer-query-selector": "off",
"unicorn/prefer-text-content": "off",
"unicorn/prevent-abbreviations": "off"
}
}