1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-17 22:09:04 +00:00
trezor-wallet/.eslintrc

58 lines
1.5 KiB
Plaintext
Raw Normal View History

2018-07-30 10:23:30 +00:00
{
"extends": [
"eslint-config-airbnb",
"plugin:flowtype/recommended",
"plugin:jest/recommended"
],
2018-09-20 11:56:24 +00:00
"globals": {
"COMMITHASH": true
},
2018-07-30 10:23:30 +00:00
"env": {
"browser": true,
"jest": true
},
"rules": {
2018-09-23 06:28:12 +00:00
"import/prefer-default-export": 0,
2018-09-21 12:01:41 +00:00
"no-use-before-define": 0,
2018-09-05 12:54:24 +00:00
"no-plusplus": 0,
2018-08-17 10:32:57 +00:00
"class-methods-use-this": 0,
2018-08-15 13:26:03 +00:00
"react/require-default-props": 0,
"react/forbid-prop-types": 0,
"react/destructuring-assignment": 0,
2018-07-30 10:23:30 +00:00
"react/jsx-one-expression-per-line": 0,
"react/jsx-indent": [2, 4],
"react/jsx-indent-props": [2, 4],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"]}],
"indent": [2, 4, { "SwitchCase": 1 }],
"no-confusing-arrow": [2,{ "allowParens": true }],
"no-console": 0,
"no-alert": 0,
"no-prototype-builtins": 0,
"new-cap": 0,
"max-len": 0,
"eol-last": 0,
"spaced-comment": 0
},
"plugins": [
"import",
2018-08-14 12:56:47 +00:00
"react",
2018-07-30 10:23:30 +00:00
"jest",
"flowtype"
],
"settings": {
2018-08-13 14:35:49 +00:00
"import/resolver": {
2018-08-14 12:56:47 +00:00
"babel-module": {}
},
2018-07-30 10:23:30 +00:00
"import/ignore": [
"\\.(scss|less|css)$"
]
},
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
}
}