This repository has been archived by the owner on May 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use native ES2015 without transpilation: no modules and no webpack. Update eslint configuration files. Fix linter errors.
- Loading branch information
1 parent
5c7983b
commit ee410ae
Showing
81 changed files
with
1,218 additions
and
1,137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,144 @@ | ||
root: true | ||
|
||
parserOptions: | ||
ecmaVersion: 8 | ||
|
||
env: | ||
es6: true | ||
node: true | ||
|
||
extends: "eslint" | ||
extends: | ||
"eslint:recommended" | ||
|
||
rules: | ||
consistent-return: 0 | ||
new-cap: [2, {capIsNew: false}] | ||
no-use-before-define: [2, "nofunc"] | ||
require-jsdoc: 0 | ||
space-before-function-paren: [2, {"anonymous": "always", "named": "never"}] | ||
spaced-comment: [0, "always", { exceptions: ["-"]}] | ||
array-callback-return: "error" | ||
arrow-body-style: ["error", "as-needed"] | ||
arrow-parens: ["error", "as-needed"] | ||
arrow-spacing: "error" | ||
indent: ["error", 4, {SwitchCase: 1}] | ||
block-spacing: "error" | ||
brace-style: ["error", "1tbs"] | ||
camelcase: ["error", { properties: "never" }] | ||
callback-return: ["error", ["cb", "callback", "next"]] | ||
class-methods-use-this: "error" | ||
comma-spacing: "error" | ||
comma-style: ["error", "last"] | ||
consistent-return: "error" | ||
curly: ["error", "all"] | ||
default-case: "error" | ||
dot-notation: ["error", { allowKeywords: true }] | ||
eol-last: "error" | ||
eqeqeq: "error" | ||
func-call-spacing: "error" | ||
func-style: ["error", "declaration"] | ||
generator-star-spacing: "error" | ||
guard-for-in: "error" | ||
key-spacing: ["error", { beforeColon: false, afterColon: true }] | ||
keyword-spacing: "error" | ||
lines-around-comment: ["error", { | ||
beforeBlockComment: true, | ||
afterBlockComment: false, | ||
beforeLineComment: true, | ||
afterLineComment: false | ||
}] | ||
new-cap: "error" | ||
newline-after-var: "error" | ||
new-parens: "error" | ||
no-alert: "error" | ||
no-array-constructor: "error" | ||
no-caller: "error" | ||
no-confusing-arrow: "error" | ||
no-console: "error" | ||
no-delete-var: "error" | ||
no-eval: "error" | ||
no-extend-native: "error" | ||
no-extra-bind: "error" | ||
no-fallthrough: "error" | ||
no-floating-decimal: "error" | ||
no-global-assign: "error" | ||
no-implied-eval: "error" | ||
no-invalid-this: "error" | ||
no-iterator: "error" | ||
no-label-var: "error" | ||
no-labels: "error" | ||
no-lone-blocks: "error" | ||
no-loop-func: "error" | ||
no-mixed-spaces-and-tabs: ["error", false] | ||
no-multi-spaces: "error" | ||
no-multi-str: "error" | ||
no-native-reassign: "off" | ||
no-nested-ternary: "error" | ||
no-new: "error" | ||
no-new-func: "error" | ||
no-new-object: "error" | ||
no-new-wrappers: "error" | ||
no-octal: "error" | ||
no-octal-escape: "error" | ||
no-process-exit: "error" | ||
no-proto: "error" | ||
no-redeclare: "error" | ||
no-return-assign: "error" | ||
no-script-url: "error" | ||
no-self-assign: "error" | ||
no-sequences: "error" | ||
no-shadow: "error" | ||
no-shadow-restricted-names: "error" | ||
no-tabs: "error" | ||
no-trailing-spaces: "error" | ||
no-undef: ["error", {typeof: true}] | ||
no-undef-init: "error" | ||
no-undefined: "error" | ||
no-underscore-dangle: ["error", {allowAfterThis: true}] | ||
no-unmodified-loop-condition: "error" | ||
no-unused-expressions: "error" | ||
no-unused-vars: ["error", {vars: "all", args: "after-used"}] | ||
# no-use-before-define: "error" | ||
no-use-before-define: ["error", "nofunc"] | ||
no-useless-computed-key: "error" | ||
no-useless-concat: "error" | ||
no-useless-constructor: "error" | ||
no-useless-escape: "error" | ||
no-useless-return: "error" | ||
no-with: "error" | ||
no-var: "error" | ||
object-curly-spacing: ["error", "always"] | ||
object-shorthand: "error" | ||
one-var-declaration-per-line: "error" | ||
prefer-arrow-callback: "error" | ||
prefer-const: "error" | ||
prefer-template: "error" | ||
quotes: ["error", "double"] | ||
quote-props: ["error", "as-needed"] | ||
radix: "error" | ||
# require-jsdoc: "error" | ||
require-jsdoc: "off" | ||
semi: "error" | ||
semi-spacing: ["error", {before: false, after: true}] | ||
space-before-blocks: "error" | ||
space-before-function-paren: ["error", "never"] | ||
space-in-parens: "error" | ||
space-infix-ops: "error" | ||
space-unary-ops: ["error", {words: true, nonwords: false}] | ||
spaced-comment: ["error", "always", { exceptions: ["-"]}] | ||
strict: ["error", "global"] | ||
template-curly-spacing: ["error", "never"] | ||
valid-jsdoc: ["error", { | ||
prefer: { "return": "returns"}, | ||
preferType: { | ||
"String": "string", | ||
"Number": "number", | ||
"Boolean": "boolean", | ||
"object": "Object", | ||
"function": "Function" | ||
} | ||
}] | ||
wrap-iife: "error" | ||
yield-star-spacing: "error" | ||
yoda: ["error", "never"] | ||
|
||
# Previously on by default in node environment | ||
no-catch-shadow: "off" | ||
no-mixed-requires: "error" | ||
no-new-require: "error" | ||
no-path-concat: "error" | ||
handle-callback-err: ["error", "err"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
"use strict"; | ||
|
||
module.exports = function (config) { | ||
module.exports = config => { | ||
config.set({ | ||
|
||
basePath: "", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
"use strict"; | ||
|
||
(function () { | ||
var app = { | ||
{ | ||
const app = { | ||
templateUrl: "app/common/app.html", | ||
controller: "AppController" | ||
}; | ||
|
||
angular | ||
.module("common") | ||
.component("app", app); | ||
}()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
"use strict"; | ||
|
||
(function () { | ||
{ | ||
angular | ||
.module("common") | ||
.controller("AppController", AppController); | ||
|
||
AppController.$inject = []; | ||
function AppController() { | ||
var vm = this; | ||
const vm = this; | ||
|
||
vm.tabSelectedIndex = 0; | ||
|
||
vm.next = function () { | ||
vm.next = () => { | ||
vm.tabSelectedIndex = Math.min(vm.tabSelectedIndex + 1, 6); | ||
}; | ||
vm.previous = function () { | ||
vm.previous = () => { | ||
vm.tabSelectedIndex = Math.max(vm.tabSelectedIndex - 1, 0); | ||
}; | ||
} | ||
|
||
}()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
"use strict"; | ||
|
||
(function () { | ||
angular | ||
.module("components.account", []); | ||
|
||
}()); | ||
angular | ||
.module("components.account", []); |
Oops, something went wrong.