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.
 
 
 
 

87 lines
2.3 KiB

{
"parser": "babel-eslint",
"extends": ["airbnb", "plugin:flowtype/recommended", "prettier", "prettier/react"],
"plugins": ["flowtype"],
"globals": {
"__ENV__": false,
"__DEV__": false,
"__TEST__": false,
"__PROD__": false,
"__SENTRY_URL__": false,
"__GIT_REVISION__": false,
"__PRINT_MODE__": false,
"__GLOBAL_STYLES__": false,
"__APP_VERSION__": false,
"__STORYBOOK_ENV__": false,
"__static": false,
"window": false,
"document": false,
"HTMLDivElement": false,
"ResizeObserver": false,
"jest": false,
"describe": false,
"beforeEach": false,
"afterEach": false,
"test": false,
"it": false,
"expect": false,
"requestAnimationFrame": false,
"cancelAnimationFrame": false
},
"rules": {
"camelcase": 0,
"global-require": 0,
"import/no-extraneous-dependencies": 0,
"import/no-named-as-default": 0,
"import/prefer-default-export": 0,
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/label-has-for": 0,
"prefer-destructuring": 0,
"new-cap": 0,
"no-await-in-loop": 0,
"no-restricted-globals": 0,
"no-unused-expressions": 0,
"no-nested-ternary": 0,
"no-param-reassign": 0,
"no-plusplus": 0,
"no-return-assign": 0,
"no-shadow": 0,
"no-underscore-dangle": 0,
"no-console": 2,
"no-unused-vars": ["error", { "argsIgnorePattern": "^_", "vars": "all", "args": "after-used", "ignoreRestSiblings": true }],
"no-use-before-define": 0,
"no-restricted-syntax": 0,
"no-prototype-builtins": 0,
"no-void": 0,
"react/forbid-prop-types": 0,
"react/jsx-curly-brace-presence": 0,
"react/jsx-filename-extension": 0,
"react/jsx-no-target-blank": 0,
"react/jsx-no-literals": [1, {"noStrings": false}],
"react/prefer-stateless-function": 0,
"react/require-default-props": 0,
"react/no-multi-comp": 0,
"react/sort-comp": [1, {
order: [
'static-methods',
'lifecycle',
'everything-else',
'render'
]
}]
},
"settings": {
"import/resolver": {
"babel-module": {},
},
"flowtype": {
"onlyFilesWithFlowAnnotation": true,
}
},
"overrides": [{
"files": [ "*stories.js" ],
"rules": {
"react/jsx-no-literals": 0
}
}]
}