mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-18 00:55:35 +00:00
* tools: enable linter for TypeScript files and code snippets * types: remove remaning namespaces * tools: remove unused Babel decorator plugin
68 lines
1.6 KiB
JSON
68 lines
1.6 KiB
JSON
{
|
|
"ignorePatterns": [
|
|
"projects/**/*"
|
|
],
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"*.ts"
|
|
],
|
|
"parserOptions": {
|
|
"project": [
|
|
"examples/angular-example/tsconfig.json",
|
|
"examples/angular-example/e2e/tsconfig.json"
|
|
],
|
|
"createDefaultProgram": true
|
|
},
|
|
"extends": [
|
|
"plugin:@angular-eslint/ng-cli-compat",
|
|
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
|
|
"plugin:@angular-eslint/template/process-inline-templates"
|
|
],
|
|
"rules": {
|
|
"@angular-eslint/component-selector": [
|
|
"error",
|
|
{
|
|
"type": "element",
|
|
"prefix": "app",
|
|
"style": "kebab-case"
|
|
}
|
|
],
|
|
"@angular-eslint/directive-selector": [
|
|
"error",
|
|
{
|
|
"type": "attribute",
|
|
"prefix": "app",
|
|
"style": "camelCase"
|
|
}
|
|
],
|
|
"@typescript-eslint/semi": ["error", "never"],
|
|
"dot-notation": "error",
|
|
"import/no-unresolved": "off",
|
|
"import/prefer-default-export": "off",
|
|
"indent": "error",
|
|
"no-empty-function": "off",
|
|
"no-shadow": "error",
|
|
"no-unused-expressions": "error",
|
|
"no-use-before-define": "off",
|
|
"quotes": "error",
|
|
"semi": ["error", "never"]
|
|
}
|
|
},
|
|
{
|
|
"files": ["e2e/**/*.ts"],
|
|
"rules": {
|
|
"import/no-extraneous-dependencies": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"star.html"
|
|
],
|
|
"extends": [
|
|
"plugin:@angular-eslint/template/recommended"
|
|
],
|
|
"rules": {}
|
|
}
|
|
]
|
|
}
|