Framework for building UIs for OpenStack projects dealing with complex input data
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.

.eslintrc 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833
  1. # For a detailed list of all options please see here:
  2. # http://eslint.org/docs/configuring/
  3. # By default, ESLint uses Espree as its parser.
  4. parser: espree
  5. # Enable eslint-plugin-angular
  6. plugins:
  7. - angular
  8. # Set up globals
  9. globals:
  10. angular: false
  11. # Most environment options are not explicitly enabled or disabled, only
  12. # included here for completeness' sake. They are commented out, because the
  13. # global updates.py script would otherwise override them during a global
  14. # requirements synchronization.
  15. #
  16. # Individual projects should choose which platforms they deploy to.
  17. env:
  18. # browser global variables.
  19. browser: true
  20. # Node.js global variables and Node.js-specific rules.
  21. # node: true
  22. # web workers global variables.
  23. # worker: true
  24. # defines require() and define() as global variables as per the amd spec.
  25. # amd: true
  26. # Adds all of the Jasmine testing global variables for version 1.3 and 2.0.
  27. jasmine: true
  28. # phantomjs global variables.
  29. # phantomjs: true
  30. # jquery global variables.
  31. # jquery: true
  32. # prototypejs global variables.
  33. # prototypejs: true
  34. # shelljs global variables.
  35. # shelljs: true
  36. # meteor global variables.
  37. # meteor: true
  38. # OpenStack uses Jasmine, not Mocha.
  39. mocha: false
  40. # Openstack does not support ES6 at its present level of adoption.
  41. es6: false
  42. # Below we activate and configure the linting rules for all javascript in
  43. # OpenStack. These will be synchronized across all projects that make use of
  44. # them.
  45. rules:
  46. #############################################################################
  47. # Possible Errors
  48. #############################################################################
  49. # Disallow trailing commas, as those break some browsers.
  50. # http://eslint.org/docs/rules/comma-dangle
  51. comma-dangle:
  52. - 2
  53. - "never"
  54. # Prevent the assignment of a variable in a conditional.
  55. # http://eslint.org/docs/rules/no-cond-assign
  56. no-cond-assign: 2
  57. # Do not permit the use of console logging statements.
  58. # http://eslint.org/docs/rules/no-console
  59. no-console: 2
  60. # Do not permit if (true) or if(false)
  61. # http://eslint.org/docs/rules/no-constant-condition
  62. no-constant-condition: 2
  63. # Do not permit ASCII 0-31 (control characters) in regular expressions.
  64. # http://eslint.org/docs/rules/no-control-regex
  65. no-control-regex: 2
  66. # Do not permit debugger; statements.
  67. # http://eslint.org/docs/rules/no-debugger
  68. no-debugger: 2
  69. # Do not permit duplicate argument names in function declaration.
  70. # http://eslint.org/docs/rules/no-dupe-args
  71. no-dupe-args: 2
  72. # Do not permit duplicate keys in object declarations.
  73. # http://eslint.org/docs/rules/no-dupe-keys
  74. no-dupe-keys: 2
  75. # Do not permit duplicate cases in switch statements.
  76. # http://eslint.org/docs/rules/no-duplicate-case
  77. no-duplicate-case: 2
  78. # Disallow empty regex character classes. (/[]/)
  79. # http://eslint.org/docs/rules/no-empty-character-class
  80. no-empty-character-class: 2
  81. # Disallow empty block statements.
  82. # http://eslint.org/docs/rules/no-empty
  83. no-empty: 0 # TODO(krotscheck): Activate & Fix
  84. # Disallow assigning of the exception parameter in a catch block.
  85. # http://eslint.org/docs/rules/no-ex-assign
  86. no-ex-assign: 2
  87. # Disallow the use of double negation (!!foo) if already in a boolean context
  88. # http://eslint.org/docs/rules/no-extra-boolean-cast
  89. no-extra-boolean-cast: 2
  90. # Disallow extraneous parentheses around functions.
  91. # http://eslint.org/docs/rules/no-extra-parens
  92. no-extra-parens:
  93. - 0 # TODO(krotscheck): Activate & Fix
  94. - "functions"
  95. # Disallow extraneous semicolons.
  96. # http://eslint.org/docs/rules/no-extra-semi
  97. no-extra-semi: 2
  98. # Disallow overwriting functions written as function declarations
  99. # http://eslint.org/docs/rules/no-func-assign
  100. no-func-assign: 2
  101. # Disallow function or variable declarations in nested blocks
  102. # http://eslint.org/docs/rules/no-inner-declarations
  103. no-inner-declarations: 2
  104. # Disallow invalid regular expression strings in the RegExp constructor
  105. # http://eslint.org/docs/rules/no-invalid-regexp
  106. no-invalid-regexp: 2
  107. # Disallow irregular whitespace outside of strings and comments
  108. # http://eslint.org/docs/rules/no-irregular-whitespace
  109. no-irregular-whitespace: 2
  110. # Disallow negation of the left operand of an in expression
  111. # http://eslint.org/docs/rules/no-negated-in-lhs
  112. no-negated-in-lhs: 2
  113. # Disallow the use of object properties of the global object (Math and JSON) as functions
  114. # http://eslint.org/docs/rules/no-obj-calls
  115. no-obj-calls: 2
  116. # Disallow multiple spaces in a regular expression literal
  117. # http://eslint.org/docs/rules/no-regex-spaces
  118. no-regex-spaces: 2
  119. # Disallow reserved words being used as object literal keys
  120. # Disabled- this is for ECMA3 backwards compatibility only.
  121. # http://eslint.org/docs/rules/no-reserved-keys
  122. no-reserved-keys: 0
  123. # Disallow sparse arrays
  124. # http://eslint.org/docs/rules/no-sparse-arrays
  125. no-sparse-arrays: 2
  126. # Disallow unreachable statements
  127. # http://eslint.org/docs/rules/no-unreachable
  128. no-unreachable: 2
  129. # Disallow comparisons with the value NaN
  130. # http://eslint.org/docs/rules/use-isnan
  131. use-isnan: 2
  132. # Ensure JSDoc comments are valid
  133. # http://eslint.org/docs/rules/valid-jsdoc
  134. valid-jsdoc: 0 # TODO(krotscheck): Activate & Fix
  135. # Ensure that the results of typeof are compared against a valid string
  136. # http://eslint.org/docs/rules/valid-typeof
  137. valid-typeof: 2
  138. #############################################################################
  139. # Best Practices
  140. #############################################################################
  141. # Enforces getter/setter pairs in objects
  142. # http://eslint.org/docs/rules/accessor-pairs
  143. accessor-pairs: 2
  144. # Treat var statements as if they were block scoped
  145. # http://eslint.org/docs/rules/block-scoped-var
  146. block-scoped-var: 0 # TODO(krotscheck): Activate & Fix
  147. # Specify the maximum cyclomatic complexity allowed in a program
  148. # http://eslint.org/docs/rules/complexity
  149. complexity:
  150. - 1
  151. - 10
  152. # Require return statements to either always or never specify values
  153. # http://eslint.org/docs/rules/consistent-return
  154. consistent-return: 0 # TODO(krotscheck): Activate & Fix
  155. # Specify curly brace conventions for all control statements
  156. # http://eslint.org/docs/rules/curly
  157. curly: 2
  158. # Require default case in switch statements
  159. # http://eslint.org/docs/rules/default-case
  160. default-case: 0 # TODO(krotscheck): Activate & Fix
  161. # encourages use of dot notation whenever possible
  162. # http://eslint.org/docs/rules/dot-notation
  163. dot-notation: 2
  164. # Enforces consistent newlines before or after dots
  165. # http://eslint.org/docs/rules/dot-location
  166. dot-location: 0
  167. # Require the use of === and !==
  168. # http://eslint.org/docs/rules/eqeqeq
  169. eqeqeq: 0 # TODO(krotscheck): Activate & Fix
  170. # Make sure for-in loops have an if statement
  171. # http://eslint.org/docs/rules/guard-for-in
  172. guard-for-in: 1
  173. # Disallow the use of alert, confirm, and prompt
  174. # http://eslint.org/docs/rules/no-alert
  175. no-alert: 2
  176. # Disallow use of arguments.caller or arguments.callee
  177. # http://eslint.org/docs/rules/no-caller
  178. no-caller: 2
  179. # Disallow division operators explicitly at beginning of regular expression
  180. # http://eslint.org/docs/rules/no-div-regex
  181. no-div-regex: 2
  182. # Disallow else after a return in an if
  183. # http://eslint.org/docs/rules/no-else-return
  184. no-else-return: 0 # TODO(krotscheck): Activate & Fix
  185. # Disallow use of labels for anything other then loops and switches
  186. # http://eslint.org/docs/rules/no-empty-label
  187. no-empty-label: 2
  188. # Disallow comparisons to null without a type-checking operator
  189. # http://eslint.org/docs/rules/no-eq-null
  190. no-eq-null: 2
  191. # Disallow use of eval()
  192. # http://eslint.org/docs/rules/no-eval
  193. no-eval: 2
  194. # Disallow adding to native types
  195. # http://eslint.org/docs/rules/no-extend-native
  196. no-extend-native: 2
  197. # Disallow unnecessary function binding
  198. # http://eslint.org/docs/rules/no-extra-bind
  199. no-extra-bind: 2
  200. # Disallow fallthrough of case statements
  201. # http://eslint.org/docs/rules/no-fallthrough
  202. no-fallthrough: 2
  203. # Disallow the use of leading or trailing decimal points in numeric literals
  204. # http://eslint.org/docs/rules/no-floating-decimal
  205. no-floating-decimal: 2
  206. # Disallow use of eval()-like methods
  207. # http://eslint.org/docs/rules/no-implied-eval
  208. no-implied-eval: 2
  209. # Disallow usage of __iterator__ property
  210. # http://eslint.org/docs/rules/no-iterator
  211. no-iterator: 2
  212. # Disallow use of labeled statements
  213. # http://eslint.org/docs/rules/no-labels
  214. no-labels: 2
  215. # Disallow unnecessary nested blocks
  216. # http://eslint.org/docs/rules/no-lone-blocks
  217. no-lone-blocks: 2
  218. # Disallow creation of functions within loops
  219. # http://eslint.org/docs/rules/no-loop-func
  220. no-loop-func: 2
  221. # Disallow use of multiple spaces
  222. # http://eslint.org/docs/rules/no-multi-spaces
  223. no-multi-spaces: 0 # TODO(krotscheck): Activate & Fix
  224. # Disallow use of multiline strings
  225. # http://eslint.org/docs/rules/no-multi-str
  226. no-multi-str: 2
  227. # Disallow reassignments of native objects
  228. # http://eslint.org/docs/rules/no-native-reassign
  229. no-native-reassign: 2
  230. # Disallow use of new operator for Function object
  231. # http://eslint.org/docs/rules/no-new-func
  232. no-new-func: 2
  233. # Disallows creating new instances of String,Number, and Boolean
  234. # http://eslint.org/docs/rules/no-new-wrappers
  235. no-new-wrappers: 2
  236. # Disallow use of new operator when not part of the assignment or comparison
  237. # http://eslint.org/docs/rules/no-new
  238. no-new: 0 # TODO(krotscheck): Activate & Fix
  239. # Disallow use of octal escape sequences in string literals, such as var foo = "Copyright \251";
  240. # http://eslint.org/docs/rules/no-octal-escape
  241. no-octal-escape: 2
  242. # Disallow use of octal literals
  243. # http://eslint.org/docs/rules/no-octal
  244. no-octal: 2
  245. # Disallow reassignment of function parameters
  246. # http://eslint.org/docs/rules/no-param-reassign
  247. no-param-reassign: 0 # TODO(krotscheck): Activate & Fix
  248. # Disallow use of process.env
  249. #
  250. # Please consolidate all your env access to one single file, and apply
  251. # by-line exceptions there.
  252. #
  253. # http://eslint.org/docs/rules/no-process-env
  254. no-process-env: 2
  255. # Disallow usage of __proto__ property
  256. # http://eslint.org/docs/rules/no-proto
  257. no-proto: 2
  258. # Disallow declaring the same variable more than once
  259. # http://eslint.org/docs/rules/no-redeclare
  260. no-redeclare: 0 # TODO(krotscheck): Activate & Fix
  261. # Disallow use of assignment in return statement
  262. # http://eslint.org/docs/rules/no-return-assign
  263. no-return-assign: 2
  264. # Disallow use of javascript: urls.
  265. # http://eslint.org/docs/rules/no-script-url
  266. no-script-url: 2
  267. # Disallow comparisons where both sides are exactly the same
  268. # http://eslint.org/docs/rules/no-self-compare
  269. no-self-compare: 2
  270. # Disallow use of comma operator
  271. # http://eslint.org/docs/rules/no-sequences
  272. no-sequences: 2
  273. # Restrict what can be thrown as an exception
  274. # http://eslint.org/docs/rules/no-throw-literal
  275. no-throw-literal: 2
  276. # Disallow usage of expressions in statement position
  277. # http://eslint.org/docs/rules/no-unused-expressions
  278. no-unused-expressions: 2
  279. # Disallow use of void operator
  280. # http://eslint.org/docs/rules/no-void
  281. no-void: 2
  282. # Disallow usage of configurable warning terms in comments - e.g. TODO
  283. # http://eslint.org/docs/rules/no-warning-comments
  284. no-warning-comments:
  285. - 1
  286. - terms:
  287. - "todo"
  288. - "xxx"
  289. - "fixme"
  290. # Disallow use of the with statement
  291. # http://eslint.org/docs/rules/no-with
  292. no-with: 2
  293. # Require use of the second argument for parseInt()
  294. # http://eslint.org/docs/rules/radix
  295. radix: 0 # TODO(krotscheck): Activate & Fix
  296. # Requires to declare all vars on top of their containing scope
  297. #
  298. # http://eslint.org/docs/rules/vars-on-top
  299. vars-on-top: 0
  300. # Require immediate function invocation to be wrapped in parentheses
  301. # http://eslint.org/docs/rules/wrap-iife
  302. wrap-iife:
  303. - 2
  304. - "any"
  305. # Require or disallow Yoda conditions.
  306. # http://eslint.org/docs/rules/yoda
  307. yoda:
  308. - 0 # TODO(krotscheck): Activate & Fix
  309. - "never"
  310. #############################################################################
  311. # Strict Mode
  312. #############################################################################
  313. # (Deprecated) require or disallow the "use strict" pragma in global scope
  314. # http://eslint.org/docs/rules/global-strict
  315. global-strict: 0
  316. # (Deprecated) disallow unnecessary use of "use strict";
  317. # http://eslint.org/docs/rules/no-extra-strict
  318. no-extra-strict: 0
  319. # controls location of Use Strict Directives
  320. # http://eslint.org/docs/rules/strict
  321. strict:
  322. - 0 # TODO(krotscheck): Activate & Fix
  323. - "function"
  324. #############################################################################
  325. # Variable declaration rules
  326. #############################################################################
  327. # Disallow the catch clause parameter name being the same as a variable in
  328. # the outer scope
  329. # http://eslint.org/docs/rules/no-catch-shadow
  330. no-catch-shadow: 2
  331. # Disallow deletion of variables
  332. # http://eslint.org/docs/rules/no-delete-var
  333. no-delete-var: 2
  334. # Disallow labels that share a name with a variable
  335. # http://eslint.org/docs/rules/no-label-var
  336. no-label-var: 2
  337. # Disallow shadowing of names such as arguments
  338. # http://eslint.org/docs/rules/no-shadow-restricted-names
  339. no-shadow-restricted-names: 2
  340. # Disallow declaration of variables already declared in the outer scope
  341. # http://eslint.org/docs/rules/no-shadow
  342. no-shadow: 0 # TODO(krotscheck): Activate & Fix
  343. # Disallow use of undefined when initializing variables
  344. # http://eslint.org/docs/rules/no-undef-init
  345. no-undef-init: 2
  346. # Disallow use of undeclared variables unless mentioned in a /*global */ block
  347. # http://eslint.org/docs/rules/no-undef
  348. no-undef: 0 # TODO(krotscheck): Activate & Fix
  349. # Disallow use of undefined variable
  350. # http://eslint.org/docs/rules/no-undefined
  351. no-undefined: 0 # TODO(krotscheck): Activate & Fix
  352. # Disallow declaration of variables that are not used in the code
  353. # http://eslint.org/docs/rules/no-unused-vars
  354. no-unused-vars: 0 # TODO(krotscheck): Activate & Fix
  355. # Disallow use of variables before they are defined
  356. # http://eslint.org/docs/rules/no-use-before-define
  357. no-use-before-define: 0 # TODO(krotscheck): Activate & Fix
  358. #############################################################################
  359. # Node.js rules
  360. #############################################################################
  361. # Enforces error handling in callbacks
  362. # http://eslint.org/docs/rules/handle-callback-err
  363. handle-callback-err: 2
  364. # Disallow mixing regular variable and require declarations
  365. # http://eslint.org/docs/rules/no-mixed-requires
  366. no-mixed-requires: 2
  367. # Disallow use of new operator with the require function
  368. # http://eslint.org/docs/rules/no-new-require
  369. no-new-require: 2
  370. # Disallow string concatenation with __dirname and __filename
  371. # http://eslint.org/docs/rules/no-path-concat
  372. no-path-concat: 2
  373. # Disallow process.exit()
  374. # http://eslint.org/docs/rules/no-process-exit
  375. no-process-exit: 2
  376. # Restrict usage of specified node modules
  377. # http://eslint.org/docs/rules/no-restricted-modules
  378. no-restricted-modules: 0
  379. # Disallow use of synchronous methods
  380. # http://eslint.org/docs/rules/no-sync
  381. no-sync: 2
  382. #############################################################################
  383. # Stylistic Changes
  384. #############################################################################
  385. # Enforce one true brace style
  386. # http://eslint.org/docs/rules/brace-style
  387. brace-style: 0 # TODO(krotscheck): Activate & Fix
  388. # Require camel case names
  389. # http://eslint.org/docs/rules/camelcase
  390. camelcase:
  391. - 2
  392. - properties: "never"
  393. # Enforce spacing before and after comma
  394. # http://eslint.org/docs/rules/comma-spacing
  395. comma-spacing: 0 # TODO(krotscheck): Activate & Fix
  396. # Enforce one true comma style
  397. # http://eslint.org/docs/rules/comma-style
  398. comma-style: 2
  399. # Enforces consistent naming when capturing the current execution context
  400. # http://eslint.org/docs/rules/consistent-this
  401. consistent-this:
  402. - 0 # TODO(krotscheck): Activate & Fix
  403. - "self"
  404. # Enforce newline at the end of file, with no multiple empty lines
  405. # http://eslint.org/docs/rules/eol-last
  406. eol-last: 2
  407. # Require function expressions to have a name
  408. # http://eslint.org/docs/rules/func-names
  409. func-names: 0 # TODO(krotscheck): Activate & Fix
  410. # Enforces use of function declarations or expressions
  411. # http://eslint.org/docs/rules/func-style
  412. func-style: 0
  413. # This option sets a specific tab width for your code
  414. # http://eslint.org/docs/rules/indent
  415. indent:
  416. - 2 # TODO(krotscheck): Activate & Fix
  417. - 2
  418. # Enforces spacing between keys and values in object literal properties
  419. # http://eslint.org/docs/rules/key-spacing
  420. key-spacing: 0 # TODO(krotscheck): Activate & Fix
  421. # Enforces empty lines around comments
  422. # http://eslint.org/docs/rules/lines-around-comment
  423. lines-around-comment: 0 # TODO(krotscheck): Activate & Fix
  424. # Disallow mixed 'LF' and 'CRLF' as linebreaks
  425. # http://eslint.org/docs/rules/linebreak-style
  426. linebreak-style:
  427. - 2
  428. - "unix"
  429. # Specify the maximum depth callbacks can be nested
  430. # http://eslint.org/docs/rules/max-nested-callbacks
  431. max-nested-callbacks:
  432. - 0 # TODO(krotscheck): Activate & Fix
  433. - 3
  434. # Require a capital letter for constructors
  435. # http://eslint.org/docs/rules/new-cap
  436. new-cap: 0 # TODO(krotscheck): Activate & Fix
  437. # Disallow the omission of parentheses when invoking a constructor
  438. # http://eslint.org/docs/rules/new-parens
  439. new-parens: 2
  440. # allow/disallow an empty newline after var statement
  441. # http://eslint.org/docs/rules/newline-after-var
  442. newline-after-var: 0
  443. # Disallow use of the Array constructor
  444. # http://eslint.org/docs/rules/no-array-constructor
  445. no-array-constructor: 0 # TODO(krotscheck): Activate & Fix
  446. # Disallow use of the continue statement
  447. # http://eslint.org/docs/rules/no-continue
  448. no-continue: 0
  449. # Disallow comments inline after code
  450. # http://eslint.org/docs/rules/no-inline-comments
  451. no-inline-comments: 0
  452. # disallow if as the only statement in an else block
  453. # http://eslint.org/docs/rules/no-lonely-if
  454. no-lonely-if: 0
  455. # Disallow mixed spaces and tabs for indentation
  456. # http://eslint.org/docs/rules/no-mixed-spaces-and-tabs
  457. no-mixed-spaces-and-tabs: 2
  458. # Disallow multiple empty lines
  459. # http://eslint.org/docs/rules/no-multiple-empty-lines
  460. no-multiple-empty-lines:
  461. - 2
  462. - max: 1
  463. # Disallow nested ternary expressions
  464. # http://eslint.org/docs/rules/no-nested-ternary
  465. no-nested-ternary: 0
  466. # Disallow use of the Object constructor
  467. # http://eslint.org/docs/rules/no-new-object
  468. no-new-object: 1
  469. # (Deprecated) Disallow space before semicolon
  470. # http://eslint.org/docs/rules/no-space-before-semi
  471. no-space-before-semi: 0
  472. # Disallow space between function identifier and application
  473. # http://eslint.org/docs/rules/no-spaced-func
  474. no-spaced-func: 0 # TODO(krotscheck): Activate & Fix
  475. # Disallow the use of ternary operators
  476. # http://eslint.org/docs/rules/no-ternary
  477. no-ternary: 0
  478. # Disallow trailing whitespace at the end of lines
  479. # http://eslint.org/docs/rules/no-trailing-spaces
  480. no-trailing-spaces: 2
  481. # Disallow dangling underscores in identifiers
  482. # http://eslint.org/docs/rules/no-underscore-dangle
  483. no-underscore-dangle: 0 # TODO(krotscheck): Activate & Fix
  484. # Disallow the use of Boolean literals in conditional expressions
  485. # http://eslint.org/docs/rules/no-unneeded-ternary
  486. no-unneeded-ternary: 0 # TODO(krotscheck): Activate & Fix
  487. # Disallow wrapping of non-IIFE statements in parens
  488. # http://eslint.org/docs/rules/no-wrap-func
  489. no-wrap-func: 0 # TODO(krotscheck): Activate & Fix
  490. # Require or disallow padding inside curly braces
  491. # http://eslint.org/docs/rules/object-curly-spacing
  492. object-curly-spacing: 0 # TODO(krotscheck): Activate & Fix
  493. # Allow or disallow one variable declaration per function
  494. # http://eslint.org/docs/rules/one-var
  495. one-var:
  496. - 2
  497. - uninitialized: "always"
  498. initialized: "never"
  499. # Prevent assignment operator shorthand where possible
  500. # http://eslint.org/docs/rules/operator-assignment
  501. operator-assignment:
  502. - 0 # TODO(krotscheck): Activate & Fix
  503. - "never"
  504. # Enforce operators to be placed before or after line breaks
  505. # http://eslint.org/docs/rules/operator-linebreak
  506. operator-linebreak: 2
  507. # Enforce padding within blocks
  508. # http://eslint.org/docs/rules/padded-blocks
  509. padded-blocks: 0
  510. # Require quotes around object literal property names
  511. # http://eslint.org/docs/rules/quote-props
  512. quote-props: 0 # TODO(krotscheck): Activate & Fix
  513. # Specify whether backticks, double or single quotes should be used
  514. # http://eslint.org/docs/rules/quotes
  515. quotes:
  516. - 0 # TODO(krotscheck): Activate & Fix
  517. - 'single'
  518. # Enforce spacing before and after semicolons
  519. # http://eslint.org/docs/rules/semi-spacing
  520. semi-spacing: 0 # TODO(krotscheck): Activate & Fix
  521. # Require or disallow use of semicolons instead of ASI
  522. # http://eslint.org/docs/rules/semi
  523. semi:
  524. - 2
  525. - 'always'
  526. # Sort variables within the same declaration block
  527. # http://eslint.org/docs/rules/sort-vars
  528. sort-vars: 0
  529. # (Deprecated) Require a space after function names
  530. # http://eslint.org/docs/rules/space-after-function-name
  531. space-after-function-name: 0
  532. # Require a space after certain keywords
  533. # http://eslint.org/docs/rules/space-after-keywords
  534. space-after-keywords: 2
  535. # require or disallow space before blocks
  536. # http://eslint.org/docs/rules/space-before-blocks
  537. space-before-blocks:
  538. - 2
  539. - "always"
  540. # Require or disallow space before function opening parenthesis
  541. # http://eslint.org/docs/rules/space-before-function-paren
  542. space-before-function-paren:
  543. - 0 # TODO(krotscheck): Activate & Fix
  544. - "always"
  545. # (Deprecated) Require or disallow space before function parentheses
  546. # http://eslint.org/docs/rules/space-before-function-parentheses
  547. space-before-function-parentheses: 0
  548. # Require or disallow spaces inside brackets
  549. # http://eslint.org/docs/rules/space-in-brackets
  550. space-in-brackets: 0 # TODO(krotscheck): Activate & Fix
  551. # require or disallow spaces inside parentheses
  552. # http://eslint.org/docs/rules/space-in-parens
  553. space-in-parens: 0 # TODO(krotscheck): Activate & Fix
  554. # Require spaces around operators
  555. # http://eslint.org/docs/rules/space-infix-ops
  556. space-infix-ops: 2
  557. # Require a space after return, throw, and case
  558. # http://eslint.org/docs/rules/space-return-throw-case
  559. space-return-throw-case: 2
  560. # Require or disallow spaces before/after unary operators (words on by default, nonwords)
  561. # http://eslint.org/docs/rules/space-unary-ops
  562. space-unary-ops:
  563. - 2
  564. - words: true
  565. nonwords: false
  566. # (deprecated) Require or disallow spaces before/after unary operators (words on by default, nonwords)
  567. # http://eslint.org/docs/rules/space-unary-word-ops
  568. space-unary-word-ops: 0
  569. # Require or disallow a space immediately following the // in a line comment
  570. # http://eslint.org/docs/rules/spaced-line-comment
  571. spaced-line-comment: 0 # TODO(krotscheck): Activate & Fix
  572. # require regex literals to be wrapped in parentheses
  573. # http://eslint.org/docs/rules/wrap-regex
  574. wrap-regex: 0
  575. #############################################################################
  576. # ECMAScript 6 (All Off)
  577. #############################################################################
  578. # enforce the spacing around the * in generator functions
  579. # http://eslint.org/docs/rules/generator-star-spacing
  580. generator-star-spacing: 0
  581. # (deprecated) enforce the position of the * in generator functions
  582. # http://eslint.org/docs/rules/generator-star
  583. generator-star: 0
  584. # require let or const instead of var
  585. # http://eslint.org/docs/rules/no-var
  586. no-var: 0
  587. # require method and property shorthand syntax for object literals
  588. # http://eslint.org/docs/rules/object-shorthand
  589. object-shorthand: 0
  590. # suggest using of const declaration for variables that are never modified after declared
  591. # http://eslint.org/docs/rules/prefer-const
  592. prefer-const: 0
  593. #############################################################################
  594. # Legacy
  595. #############################################################################
  596. # specify the maximum depth that blocks can be nested
  597. # http://eslint.org/docs/rules/max-depth
  598. max-depth: 0
  599. # specify the maximum length of a line in your program
  600. # http://eslint.org/docs/rules/max-len
  601. max-len:
  602. - 2 # TODO(krotscheck): Activate & Fix
  603. - 100
  604. # Limits the number of parameters that can be used in function declaration.
  605. # http://eslint.org/docs/rules/max-params
  606. max-params: 0
  607. # Specify the maximum number of statements allowed in a function
  608. # http://eslint.org/docs/rules/max-statements
  609. max-statements: 0
  610. # Disallow use of bitwise operators
  611. # http://eslint.org/docs/rules/no-bitwise
  612. no-bitwise: 0
  613. # Disallow use of unary operators, ++ and --
  614. # http://eslint.org/docs/rules/no-plusplus
  615. no-plusplus: 0
  616. # We only support ECMA5, disable everything else.
  617. ecmaFeatures:
  618. arrowFunctions: false
  619. binaryLiterals: false
  620. blockBindings: false
  621. classes: false
  622. defaultParams: false
  623. destructuring: false
  624. forOf: false
  625. generators: false
  626. modules: false
  627. objectLiteralComputedProperties: false
  628. objectLiteralDuplicateProperties: false
  629. objectLiteralShorthandMethods: false
  630. objectLiteralShorthandProperties: false
  631. octalLiterals: false
  632. regexUFlag: false
  633. regexYFlag: false
  634. restParams: false
  635. spread: false
  636. superInFunctions: false
  637. templateStrings: false
  638. unicodeCodePointEscapes: false
  639. globalReturn: false
  640. jsx: false