mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-05 04:55:50 +01:00
34 lines
840 B
JavaScript
34 lines
840 B
JavaScript
module.exports = {
|
|
extends: [
|
|
"react-app",
|
|
"plugin:prettier/recommended",
|
|
"plugin:flowtype/recommended"
|
|
],
|
|
rules: {
|
|
semi: ["error", "always"],
|
|
quotes: ["error", "double"],
|
|
"jsx-a11y/href-no-hash": [0],
|
|
"flowtype/no-types-missing-file-annotation": 2,
|
|
"no-console": "error"
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ["*.ts", "*.tsx"],
|
|
parser: "@typescript-eslint/parser",
|
|
extends: [
|
|
"react-app",
|
|
"plugin:prettier/recommended",
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
rules: {
|
|
semi: ["error", "always"],
|
|
quotes: ["error", "double"],
|
|
"jsx-a11y/href-no-hash": [0],
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
"@typescript-eslint/ban-ts-ignore": "warn",
|
|
"no-console": "error"
|
|
}
|
|
}
|
|
]
|
|
};
|