Mailspring/.eslintrc

75 lines
2.6 KiB
Plaintext
Raw Normal View History

2016-06-19 18:02:32 +08:00
{
"parser": "babel-eslint",
"extends": "airbnb",
"globals": {
2016-11-22 06:00:32 +08:00
"NylasEnv": false,
"$n": false,
"waitsForPromise": false,
"advanceClock": false,
"TEST_ACCOUNT_ID": false,
"TEST_ACCOUNT_NAME": false,
"TEST_ACCOUNT_EMAIL": false,
"TEST_ACCOUNT_ALIAS_EMAIL": false
2016-06-19 18:02:32 +08:00
},
"env": {
"browser": true,
"node": true,
"jasmine": true
},
"rules": {
"arrow-body-style": "off",
2016-11-22 06:00:32 +08:00
"arrow-parens": "off",
"class-methods-use-this": "off",
2016-06-19 18:02:32 +08:00
"prefer-arrow-callback": ["error", {"allowNamedFunctions": true}],
"eqeqeq": ["error", "smart"],
"id-length": "off",
"object-curly-spacing": "off",
"max-len": "off",
"new-cap": ["error", {"capIsNew": false}],
2016-11-22 06:00:32 +08:00
"newline-per-chained-call": "off",
"no-bitwise": "off",
"no-lonely-if": "off",
"no-console": "off",
"no-continue": "off",
2016-06-19 18:02:32 +08:00
"no-constant-condition": "off",
"no-loop-func": "off",
2016-11-22 06:00:32 +08:00
"no-plusplus": "off",
2016-06-19 18:02:32 +08:00
"no-shadow": "error",
"no-underscore-dangle": "off",
"object-shorthand": "off",
"quotes": "off",
"quote-props": ["error", "consistent-as-needed", { "keywords": true }],
"no-param-reassign": ["error", { "props": false }],
"semi": "off",
2016-11-22 06:00:32 +08:00
"no-mixed-operators": "off",
"import/extensions": ["error", "never", { "json": "always" }],
"import/no-unresolved": ["error", {"ignore": ["nylas-exports", "nylas-component-kit", "electron", "nylas-store", "react-dom/server", "nylas-observables", "windows-shortcuts", "moment-round", "better-sqlite3", "chrono-node", "event-kit", "enzyme"]}],
2016-11-22 06:00:32 +08:00
"import/no-extraneous-dependencies": "off",
"import/newline-after-import": "off",
"import/prefer-default-export": "off",
2016-06-19 18:02:32 +08:00
"react/no-multi-comp": "off",
2016-11-22 06:00:32 +08:00
"react/no-find-dom-node": "off",
"react/no-string-refs": "off",
"react/no-unused-prop-types": "off",
"react/forbid-prop-types": "off",
"jsx-a11y/no-static-element-interactions": "off",
2016-06-19 18:02:32 +08:00
"react/prop-types": ["error", {"ignore": ["children"]}],
2016-11-22 06:00:32 +08:00
"react/sort-comp": "error",
"no-restricted-syntax": [
"error", "ForInStatement", "LabeledStatement", "WithStatement"
],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}],
"no-useless-return": "off"
2016-06-19 18:02:32 +08:00
},
"settings": {
2016-11-22 06:00:32 +08:00
"import/core-modules": [ "nylas-exports", "nylas-component-kit", "electron", "nylas-store", "nylas-observables" ],
2016-06-19 18:02:32 +08:00
"import/resolver": {"node": {"extensions": [".es6", ".jsx", ".coffee", ".json", ".cjsx", ".js"]}}
}
}