Skip to content

Commit

Permalink
Remove node 10.x from smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
meganindya committed Nov 26, 2020
1 parent ff43807 commit 8ba17b5
Show file tree
Hide file tree
Showing 7 changed files with 8,448 additions and 8,456 deletions.
58 changes: 29 additions & 29 deletions .eslintrc.json
@@ -1,31 +1,31 @@
{
"parser": "babel-eslint",
"env": {
"es6": true,
"browser": true,
"node": true
},
"extends": ["eslint:recommended", "prettier"],
"rules": {
"no-console": "warn",
"no-mixed-spaces-and-tabs": "warn",
// "no-unused-vars": "warn",
"no-use-before-define": "error",
"indent": ["warn", 4, { "SwitchCase": 1 }],
"quotes": ["warn", "double", { "avoidEscape": true }],
"semi": "error",
"max-len": [
"warn",
{
"code": 100,
"ignoreTrailingComments": true,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"no-trailing-spaces": ["warn", { "skipBlankLines": true, "ignoreComments": true }],
"no-duplicate-case": "error",
"no-irregular-whitespace": "warn"
}
"parser": "babel-eslint",
"env": {
"es6": true,
"browser": true,
"node": true
},
"extends": ["eslint:recommended", "prettier"],
"rules": {
"no-console": "warn",
"no-mixed-spaces-and-tabs": "warn",
// "no-unused-vars": "warn",
"no-use-before-define": "error",
"indent": ["warn", 4, { "SwitchCase": 1 }],
"quotes": ["warn", "double", { "avoidEscape": true }],
"semi": "error",
"max-len": [
"warn",
{
"code": 100,
"ignoreTrailingComments": true,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"no-trailing-spaces": ["warn", { "skipBlankLines": true, "ignoreComments": true }],
"no-duplicate-case": "error",
"no-irregular-whitespace": "warn"
}
}
51 changes: 22 additions & 29 deletions .github/linters/.eslintrc.yml
@@ -1,35 +1,28 @@
{
"parser": "babel-eslint",
"env": {
"es6": true,
"browser": true,
"node": true
},
#"extends": "eslint:recommended",
"rules": {
"indent": ["warn", 4, {
"SwitchCase": 1
}],
"no-mixed-spaces-and-tabs": "warn",
#"no-unused-vars": "warn",
"quotes": ["warn", "double", {
"avoidEscape": true
}],
"semi": ["warn", "always", {
"omitLastInOneLineBlock": true
}],
"max-len": ["warn", {
"parser": "babel-eslint",
"env": { "es6": true, "browser": true, "node": true },
"extends": ["eslint:recommended"],
"rules": {
"no-console": "warn",
"no-mixed-spaces-and-tabs": "warn",
# "no-unused-vars": "warn",
"no-use-before-define": "error",
"indent": ["warn", 4, { "SwitchCase": 1 }],
"quotes": ["warn", "double", { "avoidEscape": true }],
"semi": "error",
"max-len":
[
"warn",
{
"code": 100,
"ignoreTrailingComments": true,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}],
"no-trailing-spaces": ["error", {
"skipBlankLines": true,
"ignoreComments": true
}],
"no-duplicate-case": "error",
"no-irregular-whitespace": "error"
}
"ignoreTemplateLiterals": true,
},
],
"no-trailing-spaces": ["warn", { "skipBlankLines": true, "ignoreComments": true }],
"no-duplicate-case": "error",
"no-irregular-whitespace": "warn",
},
}
20 changes: 10 additions & 10 deletions .github/workflows/linter.yml
Expand Up @@ -3,21 +3,21 @@ name: Linter
# Triggers the workflow on push or pull request events only for the master branch
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:
runs-on: ubuntu-latest

steps:
# Checks-out repository under $GITHUB_WORKSPACE, so job can access it
- uses: actions/checkout@v2
# Checks-out repository under $GITHUB_WORKSPACE, so job can access it
- uses: actions/checkout@v2

# Runs the linter
- name: Super-Linter
uses: docker://github/super-linter:v3.3.0
env:
VALIDATE_ALL_CODEBASE: false
DISABLE_ERRORS: true
# Runs the linter
- name: Super-Linter
uses: docker://github/super-linter:v3.3.0
env:
VALIDATE_ALL_CODEBASE: false
DISABLE_ERRORS: true
23 changes: 11 additions & 12 deletions .github/workflows/node.js.yml
Expand Up @@ -5,25 +5,24 @@ name: Node.js CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
node-version: [12.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
36 changes: 18 additions & 18 deletions .prettierrc.json
@@ -1,20 +1,20 @@
{
"printWidth": 100,
"tabWidth": 4,
"useTabs": false,
"semi": true,
"singleQuote": false,
"quoteProps": "consistent",
"trailingComma": "none",
"bracketSpacing": true,
"arrowParens": "always",
"endOfLine": "lf",
"overrides": [
{
"files": ["*.html", "*.css", "*.scss"],
"options": {
"tabWidth": 2
}
}
]
"printWidth": 100,
"tabWidth": 4,
"useTabs": false,
"semi": true,
"singleQuote": false,
"quoteProps": "consistent",
"trailingComma": "none",
"bracketSpacing": true,
"arrowParens": "always",
"endOfLine": "lf",
"overrides": [
{
"files": ["*.json", "*.yml", "*.html", "*.css", "*.scss"],
"options": {
"tabWidth": 2
}
}
]
}

0 comments on commit 8ba17b5

Please sign in to comment.