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.

291 lines
8.3 KiB

  1. {
  2. "globals": {
  3. "$": false,
  4. "_": false,
  5. "fuzzy": false,
  6. "jQuery": false,
  7. "moment": false,
  8. "odoo": false,
  9. "openerp": false,
  10. "self": false
  11. },
  12. "env": {
  13. "browser": true
  14. },
  15. "rules": {
  16. "no-alert": "error",
  17. "no-array-constructor": "error",
  18. "no-bitwise": "off",
  19. "no-caller": "error",
  20. "no-case-declarations": "error",
  21. "no-catch-shadow": "error",
  22. "no-class-assign": "error",
  23. "no-cond-assign": "error",
  24. "no-confusing-arrow": "error",
  25. "no-console": "off",
  26. "no-const-assign": "error",
  27. "no-constant-condition": "error",
  28. "no-continue": "off",
  29. "no-control-regex": "error",
  30. "no-debugger": "error",
  31. "no-delete-var": "error",
  32. "no-div-regex": "error",
  33. "no-dupe-args": "error",
  34. "no-dupe-class-members": "error",
  35. "no-dupe-keys": "error",
  36. "no-duplicate-case": "error",
  37. "no-duplicate-imports": "error",
  38. "no-else-return": "error",
  39. "no-empty": "error",
  40. "no-empty-character-class": "error",
  41. "no-empty-function": "error",
  42. "no-empty-pattern": "error",
  43. "no-eq-null": "error",
  44. "no-eval": "error",
  45. "no-ex-assign": "error",
  46. "no-extend-native": "error",
  47. "no-extra-bind": "error",
  48. "no-extra-boolean-cast": "error",
  49. "no-extra-label": "error",
  50. "no-extra-parens": ["error", "all", {
  51. "nestedBinaryExpressions": false
  52. }],
  53. "no-extra-semi": "error",
  54. "no-fallthrough": "error",
  55. "no-floating-decimal": "error",
  56. "no-func-assign": "error",
  57. "no-implicit-coercion": ["error", {
  58. "allow": ["~"]
  59. }],
  60. "no-implicit-globals": "error",
  61. "no-implied-eval": "error",
  62. "no-inline-comments": "error",
  63. "no-inner-declarations": "error",
  64. "no-invalid-regexp": "error",
  65. "no-invalid-this": "off",
  66. "no-irregular-whitespace": "error",
  67. "no-iterator": "error",
  68. "no-label-var": "error",
  69. "no-labels": "error",
  70. "no-lone-blocks": "error",
  71. "no-lonely-if": "error",
  72. "no-loop-func": "off",
  73. "no-magic-numbers": "off",
  74. "no-mixed-operators": "error",
  75. "no-mixed-requires": "error",
  76. "no-mixed-spaces-and-tabs": "error",
  77. "no-multi-spaces": "error",
  78. "no-multi-str": "error",
  79. "no-multiple-empty-lines": "error",
  80. "no-native-reassign": "error",
  81. "no-negated-condition": "error",
  82. "no-negated-in-lhs": "error",
  83. "no-nested-ternary": "off",
  84. "no-new": "error",
  85. "no-new-func": "error",
  86. "no-new-object": "error",
  87. "no-new-require": "error",
  88. "no-new-symbol": "error",
  89. "no-new-wrappers": "error",
  90. "no-obj-calls": "error",
  91. "no-octal": "error",
  92. "no-octal-escape": "error",
  93. "no-param-reassign": "error",
  94. "no-path-concat": "error",
  95. "no-plusplus": "off",
  96. "no-process-env": "error",
  97. "no-process-exit": "error",
  98. "no-proto": "error",
  99. "no-prototype-builtins": "error",
  100. "no-redeclare": "error",
  101. "no-regex-spaces": "error",
  102. "no-restricted-globals": "error",
  103. "no-restricted-imports": "error",
  104. "no-restricted-modules": "error",
  105. "no-restricted-syntax": "error",
  106. "no-return-assign": "error",
  107. "no-script-url": "error",
  108. "no-self-assign": "error",
  109. "no-self-compare": "error",
  110. "no-sequences": "error",
  111. "no-shadow": "error",
  112. "no-shadow-restricted-names": "error",
  113. "no-whitespace-before-property": "error",
  114. "no-spaced-func": "error",
  115. "no-sparse-arrays": "error",
  116. "no-sync": "error",
  117. "no-tabs": "error",
  118. "no-ternary": "off",
  119. "no-trailing-spaces": "error",
  120. "no-this-before-super": "error",
  121. "no-throw-literal": "error",
  122. "no-undef": "error",
  123. "no-undef-init": "error",
  124. "no-undefined": "off",
  125. "no-unexpected-multiline": "error",
  126. "no-underscore-dangle": "off",
  127. "no-unmodified-loop-condition": "error",
  128. "no-unneeded-ternary": "error",
  129. "no-unreachable": "error",
  130. "no-unsafe-finally": "error",
  131. "no-unused-expressions": "error",
  132. "no-unused-labels": "error",
  133. "no-unused-vars": "error",
  134. "no-use-before-define": "error",
  135. "no-useless-call": "error",
  136. "no-useless-computed-key": "error",
  137. "no-useless-concat": "error",
  138. "no-useless-constructor": "error",
  139. "no-useless-escape": "error",
  140. "no-useless-rename": "error",
  141. "no-void": "error",
  142. "no-var": "off",
  143. "no-warning-comments": "off",
  144. "no-with": "error",
  145. "array-bracket-spacing": "off",
  146. "array-callback-return": "error",
  147. "arrow-body-style": "error",
  148. "arrow-parens": "error",
  149. "arrow-spacing": "off",
  150. "accessor-pairs": "error",
  151. "block-scoped-var": "off",
  152. "block-spacing": ["error", "always"],
  153. "brace-style": "error",
  154. "callback-return": "error",
  155. "camelcase": "off",
  156. "capitalized-comments": ["error", "always", {
  157. "ignoreConsecutiveComments": true,
  158. "ignoreInlineComments": true
  159. }],
  160. "comma-dangle": ["error", "always-multiline"],
  161. "comma-spacing": ["error", {
  162. "before": false,
  163. "after": true
  164. }],
  165. "comma-style": "error",
  166. "complexity": [
  167. "error",
  168. 15
  169. ],
  170. "computed-property-spacing": "off",
  171. "consistent-return": "off",
  172. "consistent-this": "off",
  173. "constructor-super": "error",
  174. "curly": "error",
  175. "default-case": "off",
  176. "dot-location": ["error", "property"],
  177. "dot-notation": "error",
  178. "eol-last": "error",
  179. "eqeqeq": "error",
  180. "func-names": "off",
  181. "func-style": "off",
  182. "generator-star-spacing": "off",
  183. "global-require": "error",
  184. "guard-for-in": "off",
  185. "handle-callback-err": "error",
  186. "id-blacklist": "error",
  187. "id-length": "off",
  188. "id-match": "error",
  189. "indent": "error",
  190. "init-declarations": "error",
  191. "jsx-quotes": "error",
  192. "key-spacing": "off",
  193. "keyword-spacing": "error",
  194. "linebreak-style": [
  195. "error",
  196. "unix"
  197. ],
  198. "lines-around-comment": "error",
  199. "max-depth": "error",
  200. "max-len": ["error", {
  201. "code": 80,
  202. "ignorePattern": "odoo\\.define\\(",
  203. "tabWidth": 4
  204. }],
  205. "max-lines": "off",
  206. "max-nested-callbacks": "error",
  207. "max-params": "off",
  208. "max-statements": "off",
  209. "max-statements-per-line": "error",
  210. "multiline-ternary": "off",
  211. "new-cap": "off",
  212. "new-parens": "error",
  213. "newline-after-var": "off",
  214. "newline-before-return": "off",
  215. "newline-per-chained-call": "off",
  216. "object-curly-newline": ["error", { "consistent": true }],
  217. "object-curly-spacing": ["error", "never"],
  218. "object-property-newline": ["error", {
  219. "allowAllPropertiesOnSameLine": true
  220. }],
  221. "object-shorthand": "off",
  222. "one-var": "off",
  223. "one-var-declaration-per-line": "off",
  224. "operator-assignment": "error",
  225. "operator-linebreak": "error",
  226. "padded-blocks": "off",
  227. "prefer-arrow-callback": "off",
  228. "prefer-const": "error",
  229. "prefer-reflect": "off",
  230. "prefer-rest-params": "off",
  231. "prefer-spread": "off",
  232. "prefer-template": "off",
  233. "quote-props": "off",
  234. "quotes": "off",
  235. "radix": "error",
  236. "require-yield": "error",
  237. "rest-spread-spacing": "off",
  238. "semi": [
  239. "error",
  240. "always"
  241. ],
  242. "semi-spacing": "error",
  243. "sort-imports": "error",
  244. "sort-vars": "off",
  245. "space-before-blocks": "error",
  246. "space-before-function-paren": "error",
  247. "space-in-parens": "off",
  248. "space-infix-ops": "off",
  249. "space-unary-ops": "off",
  250. "spaced-comment": ["error", "always"],
  251. "strict": ["error", "function"],
  252. "template-curly-spacing": "off",
  253. "unicode-bom": "error",
  254. "use-isnan": "error",
  255. "valid-jsdoc": ["error", {
  256. "prefer": {
  257. "arg": "param",
  258. "argument": "param",
  259. "augments": "extends",
  260. "constructor": "class",
  261. "exception": "throws",
  262. "func": "function",
  263. "method": "function",
  264. "prop": "property",
  265. "return": "returns",
  266. "virtual": "abstract",
  267. "yield": "yields"
  268. },
  269. "preferType": {
  270. "array": "Array",
  271. "bool": "Boolean",
  272. "boolean": "Boolean",
  273. "number": "Number",
  274. "object": "Object",
  275. "str": "String",
  276. "string": "String"
  277. },
  278. "requireParamDescription": false,
  279. "requireReturn": false,
  280. "requireReturnDescription": false,
  281. "requireReturnType": false
  282. }],
  283. "valid-typeof": "error",
  284. "vars-on-top": "off",
  285. "wrap-iife": "error",
  286. "wrap-regex": "error",
  287. "yield-star-spacing": "off",
  288. "yoda": "error"
  289. },
  290. "parserOptions": {}
  291. }