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": {
|
2020-08-22 09:47:19 +03:00
|
|
|
"max-len": ["error", {
|
|
|
|
"code": 120,
|
|
|
|
"ignoreStrings": true,
|
2020-08-26 19:55:40 +03:00
|
|
|
"ignoreTemplateLiterals": true,
|
|
|
|
"ignoreComments": true
|
2020-08-22 09:47:19 +03:00
|
|
|
}],
|
|
|
|
"no-mixed-operators": "off",
|
2020-08-22 09:06:41 +03:00
|
|
|
"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": {
|
2020-08-22 09:47:19 +03:00
|
|
|
"max-len": ["error", {
|
|
|
|
"code": 120,
|
|
|
|
"ignoreStrings": true,
|
2020-08-24 19:52:52 +03:00
|
|
|
"ignoreTemplateLiterals": true,
|
2020-08-26 19:55:40 +03:00
|
|
|
"ignoreComments": true
|
2020-08-22 09:47:19 +03:00
|
|
|
}],
|
|
|
|
"no-mixed-operators": "off",
|
2020-08-27 20:12:09 +03:00
|
|
|
"react/display-name": "off",
|
|
|
|
"@typescript-eslint/require-array-sort-compare": "off"
|
2020-08-22 09:10:31 +03:00
|
|
|
}
|
2018-08-26 11:30:20 +03:00
|
|
|
}
|
2020-08-22 09:06:41 +03:00
|
|
|
]
|
2018-08-26 11:30:20 +03:00
|
|
|
}
|