Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 5 changed files with 575 additions and 213 deletions.
29 changes: 29 additions & 0 deletions .eslintrc.js
@@ -0,0 +1,29 @@
/**
* We are using the .JS version of an ESLint config file here so that we can
* add lots of comments to better explain and document the setup.
*/
module.exports = {
/**
* See packages/eslint-plugin/src/configs/README.md
* for what this recommended config contains.
*/
extends: ['plugin:@angular-eslint/recommended'],
rules: {
// ORIGINAL tslint.json -> "directive-selector": [true, "attribute", "app", "camelCase"],
'@angular-eslint/directive-selector': [
'error',
{ type: 'attribute', prefix: 'app', style: 'camelCase' },
],

// ORIGINAL tslint.json -> "component-selector": [true, "element", "app", "kebab-case"],
'@angular-eslint/component-selector': [
'error',
{ type: 'element', prefix: 'app', style: 'kebab-case' },
],
},
parserOptions: {
ecmaVersion: 2020,
project: ['./tsconfig.app.json', './tsconfig.spec.json', './e2e/tsconfig.json'],
sourceType: "module",
},
};
3 changes: 2 additions & 1 deletion angular.json
Expand Up @@ -98,8 +98,9 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"eslintConfig": ".eslintrc.js",
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
Expand Down

0 comments on commit 0dda94c

Please sign in to comment.