eslint-config-brightspace
Advanced tools
Comparing version 0.5.3 to 0.6.0
@@ -0,1 +1,3 @@ | ||
const { sortMemberRules } = require('./sort-member-config'); | ||
module.exports = { | ||
@@ -36,4 +38,5 @@ "extends": "./index.js", | ||
"lit/no-invalid-html": 2, | ||
"lit/no-value-attribute": 2 | ||
"lit/no-value-attribute": 2, | ||
...sortMemberRules | ||
} | ||
}; |
{ | ||
"name": "eslint-config-brightspace", | ||
"version": "0.5.3", | ||
"version": "0.6.0", | ||
"description": "Common Brightspace eslint configs.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,1 +1,3 @@ | ||
const { sortMemberRules } = require('./sort-member-config'); | ||
module.exports = { | ||
@@ -8,3 +10,4 @@ "extends": "./index.js", | ||
"plugins": [ | ||
"html" | ||
"html", | ||
"sort-class-members" | ||
], | ||
@@ -16,4 +19,5 @@ "globals": { | ||
"rules": { | ||
"strict": 0 | ||
"strict": 0, | ||
...sortMemberRules | ||
} | ||
}; |
@@ -49,5 +49,5 @@ # eslint-config-brightspace | ||
To use `polymer-config`, consumers should install the [eslint-plugin-html](https://github.com/BenoitZugmeyer/eslint-plugin-html) plugin to extract and lint JavaScript contained in `.html` web component files. | ||
To use `polymer-config`, consumers should install the [eslint-plugin-html](https://github.com/BenoitZugmeyer/eslint-plugin-html) plugin to extract and lint JavaScript contained in `.html` web component files. [eslint-plugin-sort-class-members](https://github.com/bryanrsmith/eslint-plugin-sort-class-members) plugin is required to ensure consistency in class format | ||
To use `lit-config`, consumers should install the [eslint-plugin-html](https://github.com/BenoitZugmeyer/eslint-plugin-html) and [eslint-plugin-lit](https://github.com/43081j/eslint-plugin-lit) plugins. | ||
To use `lit-config`, consumers should install the [eslint-plugin-html](https://github.com/BenoitZugmeyer/eslint-plugin-html), [eslint-plugin-sort-class-members](https://github.com/bryanrsmith/eslint-plugin-sort-class-members), and [eslint-plugin-lit](https://github.com/43081j/eslint-plugin-lit) plugins. | ||
@@ -54,0 +54,0 @@ See the [eslint rules](http://eslint.org/docs/rules/) for more details on rule configuration. See the [eslint shareable configs](http://eslint.org/docs/developer-guide/shareable-configs.html) for more details on creating configs. |
19813
15
218