2018-08-26 11:30:20 +03:00
|
|
|
{
|
|
|
|
"plugins": ["jest"],
|
|
|
|
"env": {
|
|
|
|
"jest/globals": true
|
|
|
|
},
|
2020-08-22 09:06:41 +03:00
|
|
|
"parserOptions": {
|
|
|
|
"tsconfigRootDir": ".",
|
|
|
|
"createDefaultProgram": true
|
|
|
|
},
|
2018-08-26 11:30:20 +03:00
|
|
|
"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",
|
2020-08-22 09:10:31 +03:00
|
|
|
"react/display-name": "off",
|
2020-08-22 09:06:41 +03:00
|
|
|
"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:10:31 +03:00
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"react/display-name": "off"
|
|
|
|
}
|
2018-08-26 11:30:20 +03:00
|
|
|
}
|
2020-08-22 09:06:41 +03:00
|
|
|
]
|
2018-08-26 11:30:20 +03:00
|
|
|
}
|