Skip to content

Commit

Permalink
Merge pull request #20 from Brightspace/Enforce_const_let_in_Lit_Config
Browse files Browse the repository at this point in the history
Add const and var rules to lit config
  • Loading branch information
svanherk authored Mar 27, 2019
2 parents 741ec6b + b803dbb commit 0800111
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion lit-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ module.exports = {
"extends": "./index.js",
"parser": "babel-eslint",
"env": {
"browser": true
"browser": true,
"es6": true
},
"plugins": [
"lit", "html"
Expand All @@ -12,6 +13,16 @@ module.exports = {
"Promise": false
},
"rules": {
"arrow-spacing": 2,
"no-confusing-arrow": 2,
"no-duplicate-imports": 2,
"no-useless-constructor": 2,
"no-var": 2,
"prefer-arrow-callback": 2,
"prefer-const": 2,
"prefer-spread": 2,
"prefer-template": 2,
"sort-imports": [2, { "ignoreCase": true }],
"strict": [2, "never"],
"lit/no-duplicate-template-bindings": 2,
"lit/no-legacy-template-syntax": 2,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-brightspace",
"version": "0.5.1",
"version": "0.5.2",
"description": "Common Brightspace eslint configs.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 0800111

Please sign in to comment.