forked from WrenSecurity/wrenidm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request WrenSecurity#161 from karelmaxa/upgrade-ui
Upgrade ESLint and Babel. Use Wren Security ESLint conventions.
- Loading branch information
Showing
219 changed files
with
18,200 additions
and
13,242 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": "> 0.25%, not dead" | ||
} | ||
] | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"root": true, | ||
"extends": "@wrensecurity/eslint-config", | ||
"parser": "@babel/eslint-parser", | ||
"env": { | ||
"amd": true, | ||
"browser": true, | ||
"qunit": true, | ||
"es6": true | ||
}, | ||
"rules": { | ||
"arrow-parens": ["error", "always"], | ||
"arrow-spacing": "error", | ||
"indent": ["error", 4, { | ||
"FunctionDeclaration": { | ||
"parameters": 2 | ||
}, | ||
"FunctionExpression": { | ||
"parameters": 2 | ||
}, | ||
"SwitchCase": 1, | ||
"VariableDeclarator": 1 | ||
}], | ||
"no-alert": "error", | ||
"no-catch-shadow": "error", | ||
"no-empty-character-class": "error", | ||
"no-extend-native": "error", | ||
"no-mixed-spaces-and-tabs": "error", | ||
"no-multiple-empty-lines": "error", | ||
"no-multi-str": "error", | ||
"no-native-reassign": "error", | ||
"no-unused-vars": "warn", // Temporarily changed to warning due to many inconsistencies | ||
"no-void": "error" | ||
} | ||
} |
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
Oops, something went wrong.