eslint-config-brightspace 2.6.0 → 2.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/configs/base.js CHANGED
@@ -1,12 +1,15 @@
1
1
  // nr = not as per eslint:recommended
2
2
  import js from '@eslint/js';
3
+ import stylistic from '@stylistic/eslint-plugin';
3
4
 
4
5
  export default [js.configs.recommended, {
6
+ 'plugins': {
7
+ '@stylistic': stylistic
8
+ },
5
9
  'rules': {
6
10
  'comma-spacing': 2, // nr
7
11
  'eol-last': 2, // nr
8
12
  'eqeqeq': [2, 'always', { 'null': 'ignore' }], // nr
9
- 'indent': [2, 'tab', { 'SwitchCase': 1 }], // nr
10
13
  'keyword-spacing': 2,
11
14
  'linebreak-style': ['error', 'unix'], // nr
12
15
  'new-parens': 2, // nr
@@ -41,6 +44,7 @@ export default [js.configs.recommended, {
41
44
  'space-in-parens': [2, 'never'],
42
45
  'space-infix-ops': 2, // nr
43
46
  'strict': [2, 'global'], // nr
44
- 'valid-typeof': 2
47
+ 'valid-typeof': 2,
48
+ '@stylistic/indent': [2, 'tab', { 'SwitchCase': 1 }]
45
49
  }
46
50
  }];
package/configs/lit.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import browserConfig from './browser.js';
2
- import lit from 'eslint-plugin-lit';
2
+ import * as lit from 'eslint-plugin-lit';
3
3
  import { getSortMemberRules } from '../utils.js';
4
4
 
5
5
  const sortMemberRules = getSortMemberRules([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-brightspace",
3
- "version": "2.6.0",
3
+ "version": "2.6.2",
4
4
  "description": "Common Brightspace eslint configs.",
5
5
  "exports": {
6
6
  ".": "./index.js"
@@ -32,6 +32,7 @@
32
32
  "homepage": "https://github.com/Brightspace/eslint-config-brightspace",
33
33
  "dependencies": {
34
34
  "@babel/eslint-parser": ">= 7",
35
+ "@stylistic/eslint-plugin": "^4",
35
36
  "eslint": ">= 7",
36
37
  "eslint-plugin-html": "^8",
37
38
  "eslint-plugin-import": "^2",