shlink-web-client/.eslintrc

59 lines
1.5 KiB
Text
Raw Normal View History

{
"plugins": ["jest"],
"env": {
"jest/globals": true
},
2020-08-22 09:06:41 +03:00
"parserOptions": {
"tsconfigRootDir": ".",
"createDefaultProgram": true
},
"globals": {
"process": true,
"setImmediate": true
},
2020-08-22 09:06:41 +03:00
"overrides": [
{
"files": ["**/*.js"],
"extends": [
"adidas-env/browser",
"adidas-env/module",
"adidas-env/node",
"adidas-es9",
"adidas-babel",
"adidas-react"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"comma-dangle": ["error", "always-multiline"],
"no-invalid-this": "off",
"no-inline-comments": "off",
"no-console": "warn",
"template-curly-spacing": ["error", "never"],
"no-warning-comments": "off",
"no-undefined": "off",
"indent": ["error", 2, {"SwitchCase": 1}],
"no-empty-function": "off",
"lines-around-comment": "off",
"no-magic-numbers": "off",
"react/no-array-index-key": "off",
"react/no-did-update-set-state": "off",
"react/jsx-curly-spacing": ["error", "never"],
"react/jsx-indent-props": ["error", 2],
"react/jsx-first-prop-new-line": ["error", "multiline-multiprop"],
"react/jsx-closing-bracket-location": ["error", "tag-aligned"],
"react/jsx-filename-extension": ["error", {"extensions": [".js", ".jsx"]}]
}
},
{
"files": ["**/*.ts", "**/*.tsx"],
"extends": [
"@shlinkio/js-coding-standard"
]
}
2020-08-22 09:06:41 +03:00
]
}