You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.4 KiB
46 lines
1.4 KiB
{ |
|
"root": true, |
|
"env": { |
|
"browser": true, |
|
"commonjs": true, |
|
"node": true, |
|
"mocha": true |
|
}, |
|
"extends": ["eslint:recommended"], |
|
"installedESLint": true, |
|
"rules": { |
|
"array-bracket-spacing": ["warn", "never"], |
|
"arrow-body-style": ["warn", "as-needed"], |
|
"arrow-parens": ["warn", "as-needed"], |
|
"arrow-spacing": "warn", |
|
"brace-style": "warn", |
|
"camelcase": "warn", |
|
"comma-spacing": ["warn", {"after": true}], |
|
"dot-notation": "warn", |
|
"indent": ["warn", 2, { |
|
"SwitchCase": 1, |
|
"FunctionDeclaration": {"parameters": 1}, |
|
"MemberExpression": 1, |
|
"CallExpression": {"arguments": 1} |
|
}], |
|
"key-spacing": ["warn", {"beforeColon": false, "afterColon": true, "mode": "minimum"}], |
|
"keyword-spacing": "warn", |
|
"no-console": "off", |
|
"no-empty": "off", |
|
"no-multi-spaces": "warn", |
|
"no-redeclare": "off", |
|
"no-restricted-globals": ["warn", "Promise"], |
|
"no-trailing-spaces": "warn", |
|
"no-undef": "error", |
|
"no-unused-vars": ["warn", {"args": "none"}], |
|
"padded-blocks": ["warn", "never"], |
|
"object-curly-spacing": ["warn", "never"], |
|
"quotes": ["warn", "single"], |
|
"react/prop-types": "off", |
|
"react/jsx-no-bind": "off", |
|
"semi": ["warn", "always"], |
|
"space-before-blocks": ["warn", "always"], |
|
"space-before-function-paren": ["warn", "never"], |
|
"space-in-parens": ["warn", "never"] |
|
} |
|
}
|
|
|