kopia lustrzana https://github.com/c9/core
Extend .eslintrc according to code conventions
rodzic
795fbd108b
commit
e5ea48c928
27
.eslintrc
27
.eslintrc
|
@ -19,7 +19,7 @@ extends:
|
|||
|
||||
rules:
|
||||
handle-callback-err: 1
|
||||
max-len: [1, 125, 4]
|
||||
max-len: [1, 140, 4, { ignorePattern: "\": " }]
|
||||
no-debugger: 1
|
||||
no-undef: 1
|
||||
no-inner-declarations: [1, "functions"]
|
||||
|
@ -48,6 +48,13 @@ rules:
|
|||
no-unused-vars: [1, {vars: "all", args: "none"}]
|
||||
semi: 2
|
||||
no-extra-semi: 2
|
||||
one-var: [1, "never"]
|
||||
arrow-parens: 1
|
||||
no-confusing-arrow: 1
|
||||
camelcase: [1, { properties: "never" }]
|
||||
id-blacklist: [1, "uname", "cb", "acct"]
|
||||
default-case: 1
|
||||
eqeqeq: [1, "smart"]
|
||||
|
||||
// React rules
|
||||
react/jsx-curly-spacing: 1
|
||||
|
@ -76,9 +83,21 @@ rules:
|
|||
react/jsx-pascal-case: 1
|
||||
react/jsx-uses-react: 1
|
||||
|
||||
default-case: 1
|
||||
keyword-spacing: [1, {"before": true, "after": true, "overrides": { "catch": {"after": true } }}]
|
||||
key-spacing: [1, { beforeColon: false, afterColon: true, mode: "strict" }]
|
||||
space-in-parens: [1, "never"]
|
||||
// space-before-function-paren: [2, {"named": "never", "anonymous": "never"}]
|
||||
space-infix-ops: [1]
|
||||
arrow-spacing: 1
|
||||
generator-star-spacing: [1, {"before": false, "after": true}]
|
||||
space-before-blocks: [1, "always"]
|
||||
// TODO: after eslint update in IDE
|
||||
// space-before-function-paren: [1, {"named": "never", "anonymous": "ignore"}]
|
||||
// object-curly-newline: [1, { ObjectExpression: { "multiline": true }, "ObjectPattern": "never" }]
|
||||
// DISABLED: causes issue with define(function() in client-side code
|
||||
// indent: [1, 4, { SwitchCase: 1, outerIIFEBody: 0, MemberExpression: 1, FunctionDeclaration: { body: 0, parameters: 1 }, FunctionExpression: { body: 0, parameters: 1 } }]
|
||||
object-curly-spacing: [1, "always", { objectsInObjects: false, arraysInObjects: false }]
|
||||
spaced-comment: 1
|
||||
// valid-jsdoc: [1, { requireReturn: false, requireParamDescription: false, prefer: { "return": "return" } }]
|
||||
comma-spacing: 1
|
||||
no-multi-spaces: 1
|
||||
no-lone-blocks: 1
|
||||
// valid-jsdoc: [1, { requireReturn: false, requireParamDescription: false, prefer: { "return": "return" } }]
|
||||
|
|
Ładowanie…
Reference in New Issue