Skip to content

Commit

Permalink
eslint migration (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeknovy authored Jan 6, 2022
1 parent 0c48f20 commit 657097e
Show file tree
Hide file tree
Showing 156 changed files with 2,750 additions and 2,025 deletions.
22 changes: 22 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 13,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"object-curly-spacing": ["error", "always"],
"quotes": ["error", "double", { "allowTemplateLiterals": true }]
}
};
15 changes: 15 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Static Analysis
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Install modules
run: npm install
- name: Run ESLint
run: npm run lint

1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ branches:
install: npm install

script:
- ng lint
- npm run test:headless
- node publish-pact.js

Expand Down
8 changes: 4 additions & 4 deletions e2e/src/app.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { AppPage } from './app.po';
import { AppPage } from "./app.po";

describe('workspace-project App', () => {
describe("workspace-project App", () => {
let page: AppPage;

beforeEach(() => {
page = new AppPage();
});

it('should display welcome message', () => {
it("should display welcome message", () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('Welcome to app-aaa!');
expect(page.getTitleText()).toEqual("Welcome to app-aaa!");
});
});
6 changes: 3 additions & 3 deletions e2e/src/app.po.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { browser, by, element } from 'protractor';
import { browser, by, element } from "protractor";

export class AppPage {
navigateTo() {
return browser.get('/');
return browser.get("/");
}

getTitleText() {
return element(by.css('app-root h1')).getText();
return element(by.css("app-root h1")).getText();
}
}
Loading

0 comments on commit 657097e

Please sign in to comment.