mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-19 16:13:06 +00:00
refactor: replace TSLint with ESLint
This commit is contained in:
committed by
Jovan Krunić
parent
67fb4a43c9
commit
d696215d08
49
angular.json
49
angular.json
@@ -20,7 +20,8 @@
|
||||
"main": "src/main.ts",
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"tsConfig": "src/tsconfig.app.json",
|
||||
"assets": [{
|
||||
"assets": [
|
||||
{
|
||||
"glob": "**/*",
|
||||
"input": "src/assets",
|
||||
"output": "assets"
|
||||
@@ -36,7 +37,8 @@
|
||||
"output": "./svg"
|
||||
}
|
||||
],
|
||||
"styles": [{
|
||||
"styles": [
|
||||
{
|
||||
"input": "src/theme/variables.scss"
|
||||
},
|
||||
{
|
||||
@@ -47,10 +49,12 @@
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"fileReplacements": [{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.prod.ts"
|
||||
}],
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.prod.ts"
|
||||
}
|
||||
],
|
||||
"optimization": true,
|
||||
"outputHashing": "all",
|
||||
"sourceMap": false,
|
||||
@@ -84,8 +88,8 @@
|
||||
"fake": {
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.fake.ts"
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.fake.ts"
|
||||
}
|
||||
],
|
||||
"optimization": true,
|
||||
@@ -144,7 +148,8 @@
|
||||
"karmaConfig": "src/karma.conf.js",
|
||||
"styles": [],
|
||||
"scripts": [],
|
||||
"assets": [{
|
||||
"assets": [
|
||||
{
|
||||
"glob": "favicon.ico",
|
||||
"input": "src/",
|
||||
"output": "/"
|
||||
@@ -164,10 +169,20 @@
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-devkit/build-angular:tslint",
|
||||
"builder": "@angular-eslint/builder:lint",
|
||||
"options": {
|
||||
"tsConfig": ["src/tsconfig.app.json", "src/tsconfig.spec.json"],
|
||||
"exclude": ["**/node_modules/**"]
|
||||
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"],
|
||||
"eslintConfig": ".eslintrc.json",
|
||||
"ignorePath": ".eslintignore"
|
||||
}
|
||||
},
|
||||
"lint:fix": {
|
||||
"builder": "@angular-eslint/builder:lint",
|
||||
"options": {
|
||||
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"],
|
||||
"fix": true,
|
||||
"eslintConfig": ".eslintrc.json",
|
||||
"ignorePath": ".eslintignore"
|
||||
}
|
||||
},
|
||||
"ionic-cordova-build": {
|
||||
@@ -213,17 +228,19 @@
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-devkit/build-angular:tslint",
|
||||
"builder": "@angular-eslint/builder:lint",
|
||||
"options": {
|
||||
"tsConfig": "e2e/tsconfig.e2e.json",
|
||||
"exclude": ["**/node_modules/**"]
|
||||
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"],
|
||||
"eslintConfig": ".eslintrc.json",
|
||||
"ignorePath": ".eslintignore"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"cli": {
|
||||
"defaultCollection": "@ionic/angular-toolkit"
|
||||
"defaultCollection": "@ionic/angular-toolkit",
|
||||
"analytics": false
|
||||
},
|
||||
"schematics": {
|
||||
"@ionic/angular-toolkit:component": {
|
||||
|
||||
Reference in New Issue
Block a user