mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-15 15:10:31 -08:00
51 lines
1.4 KiB
Text
51 lines
1.4 KiB
Text
{
|
|
"rules": {
|
|
"unicorn/prevent-abbreviations": [
|
|
"error",
|
|
{
|
|
"whitelist": {
|
|
"Props": true,
|
|
"props": true,
|
|
"getInitialProps": true,
|
|
"mapStateToProps": true
|
|
}
|
|
}
|
|
],
|
|
"unicorn/no-reduce": [0],
|
|
"sonarjs/cognitive-complexity": ["error", 30],
|
|
"react/jsx-props-no-spreading": [0],
|
|
"react/require-default-props": [1, { "ignoreFunctionalComponents": true }],
|
|
"import/no-extraneous-dependencies": [2, { "devDependencies": true }],
|
|
"react/static-property-placement": [0],
|
|
"react/jsx-filename-extension": [1, { "extensions": [".js"] }],
|
|
"react/forbid-prop-types": [0],
|
|
"import/prefer-default-export": [0],
|
|
"no-restricted-syntax": [0],
|
|
"camelcase": [0],
|
|
"linebreak-style": [0]
|
|
},
|
|
"parser": "babel-eslint",
|
|
"extends": [
|
|
"airbnb",
|
|
"airbnb/hooks",
|
|
"standard",
|
|
"plugin:flowtype/recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:unicorn/recommended",
|
|
"prettier",
|
|
"prettier/flowtype",
|
|
"prettier/react",
|
|
"prettier/standard",
|
|
"prettier/unicorn",
|
|
"plugin:import/errors",
|
|
"plugin:import/warnings",
|
|
"plugin:promise/recommended",
|
|
"plugin:sonarjs/recommended"
|
|
],
|
|
"plugins": ["flowtype", "prettier", "react", "html", "unicorn", "import", "react-hooks", "jsx-a11y", "sonarjs"],
|
|
"globals": {
|
|
"window": true,
|
|
"document": true,
|
|
"fetch": true
|
|
}
|
|
}
|