3050556dc0
- check in more restrictive mode = request types - define main types in static/js/core/types.js
57 lines
1.4 KiB
JSON
57 lines
1.4 KiB
JSON
{
|
|
"files": {
|
|
"includes": ["static/**/*.js", "static/**/*.css", "static/**/*.json", "!static/js/vendors/"]
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 4,
|
|
"lineWidth": 160,
|
|
"lineEnding": "lf"
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"correctness": {
|
|
"noUnusedVariables": "warn",
|
|
"noUndeclaredVariables": "error",
|
|
"noUnreachable": "warn",
|
|
"noUnsafeFinally": "error"
|
|
},
|
|
"nursery": {
|
|
"useExplicitType": "error"
|
|
},
|
|
"security": {
|
|
"noGlobalEval": "error"
|
|
},
|
|
"style": {
|
|
"noDescendingSpecificity": "off"
|
|
},
|
|
"complexity": {
|
|
"noImportantStyles": "off"
|
|
}
|
|
}
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"indentStyle": "space",
|
|
"indentWidth": 4,
|
|
"quoteStyle": "single",
|
|
"semicolons": "always",
|
|
"trailingCommas": "none",
|
|
"bracketSameLine": false,
|
|
"bracketSpacing": true,
|
|
"operatorLinebreak": "after"
|
|
}
|
|
},
|
|
"css": {
|
|
"linter": {
|
|
"enabled": true
|
|
},
|
|
"formatter": {
|
|
"enabled": true
|
|
}
|
|
}
|
|
}
|