.eslintrc.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {
  2. "env": {
  3. "browser": true,
  4. "node": true
  5. },
  6. "globals": {
  7. "lunr": true
  8. },
  9. "extends": "eslint:recommended",
  10. "plugins": [
  11. "spellcheck"
  12. ],
  13. "rules": {
  14. "spellcheck/spell-checker": [1,
  15. {
  16. "lang": "en_GB",
  17. "skipWords": [
  18. "lunr", "val", "param", "idx", "utils", "namespace", "eslint", "latin",
  19. "str", "len", "sqrt", "wildcard", "concat", "metadata", "fn", "params",
  20. "lexeme", "lex", "pos", "typedef", "wildcards", "lexemes", "fns", "stemmer",
  21. "attrs", "tf", "idf", "lookups", "whitelist", "whitelisted", "tokenizer",
  22. "whitespace", "automata", "i", "obj", "anymore", "lexer", "var", "refs",
  23. "serializable", "tis", "twas", "int", "args", "unshift", "plugins", "upsert",
  24. "upserting", "readonly", "baz", "tokenization", "lunrjs", "com", "olivernn",
  25. "github", "js"
  26. ]
  27. }
  28. ],
  29. "no-constant-condition": [
  30. "error",
  31. { "checkLoops": false }
  32. ],
  33. "no-redeclare": "off",
  34. "dot-location": [
  35. "error",
  36. "property"
  37. ],
  38. "no-alert": "error",
  39. "no-caller": "error",
  40. "no-eval": "error",
  41. "no-implied-eval": "error",
  42. "no-extend-native": "error",
  43. "no-implicit-globals": "error",
  44. "no-multi-spaces": "error",
  45. "array-bracket-spacing": "error",
  46. "block-spacing": "error",
  47. "brace-style": [
  48. "error",
  49. "1tbs",
  50. { "allowSingleLine": true }
  51. ],
  52. "camelcase": "error",
  53. "comma-dangle": "error",
  54. "comma-spacing": "error",
  55. "comma-style": "error",
  56. "computed-property-spacing": "error",
  57. "func-style": "error",
  58. "indent": [
  59. "error",
  60. 2,
  61. { "VariableDeclarator": 2, "SwitchCase": 1 }
  62. ],
  63. "key-spacing": "error",
  64. "keyword-spacing": "error",
  65. "linebreak-style": "error",
  66. "new-cap": "error",
  67. "no-trailing-spaces": "error",
  68. "no-whitespace-before-property": "error",
  69. "semi": ["error", "never"],
  70. "space-before-function-paren": ["error", "always"],
  71. "space-in-parens": "error",
  72. "space-infix-ops": "error"
  73. }
  74. }