Skip to content

Commit

Permalink
add eslint and @swimlane/eslint-config (swimlane#443)
Browse files Browse the repository at this point in the history
* add eslint and @swimlane/eslint-config

* add eslint into the GH pipeline
  • Loading branch information
Hypercubed authored Apr 4, 2022
1 parent fd858ea commit 8f47844
Show file tree
Hide file tree
Showing 9 changed files with 1,287 additions and 15 deletions.
29 changes: 29 additions & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
root: true
extends:
- '@swimlane'
- prettier
overrides:
- files:
- '*.ts'
parser: '@typescript-eslint/parser'
parserOptions:
project:
- tsconfig.json
createDefaultProgram: true
extends:
- '@swimlane/eslint-config/typescript'
- plugin:@angular-eslint/recommended
- plugin:@angular-eslint/template/process-inline-templates
- prettier
rules:
'@typescript-eslint/no-explicit-any': off
'@typescript-eslint/no-unused-vars': off # should be fixed later
'@angular-eslint/directive-class-suffix': off
'@angular-eslint/component-class-suffix': off
'@typescript-eslint/no-inferrable-types': off
'@angular-eslint/no-input-rename': off
'@angular-eslint/no-output-native': off # This should be fixed in a future release
- files:
- '*.html'
extends:
- plugin:@angular-eslint/template/recommended
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"typescript.check.workspaceVersion": false
}
"typescript.check.workspaceVersion": false,
"cSpell.words": ["throttleable"]
}
18 changes: 18 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@
"scripts": [],
"assets": ["src/favicon.ico", "src/assets"]
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": ["src/**/*.ts"]
}
}
}
},
Expand All @@ -99,6 +105,12 @@
"devServerTarget": "ngxGraph:serve:production"
}
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": ["e2e/**/*.ts"]
}
}
}
},
Expand Down Expand Up @@ -128,6 +140,12 @@
"tsConfig": "projects/swimlane/ngx-graph/tsconfig.spec.json",
"karmaConfig": "projects/swimlane/ngx-graph/karma.conf.js"
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": ["projects/swimlane/ngx-graph/**/*.ts"]
}
}
}
}
Expand Down
Loading

0 comments on commit 8f47844

Please sign in to comment.