@niondigital/eslint-config-base 1.6.0 → 1.6.1

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.
Files changed (3) hide show
  1. package/index.js +8 -10
  2. package/package.json +5 -3
  3. package/test.test.js +5 -0
package/index.js CHANGED
@@ -1,7 +1,12 @@
1
1
  /* eslint-env node */
2
2
  module.exports = {
3
3
  parser: '@typescript-eslint/parser',
4
- extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'eslint-config-airbnb'],
4
+ extends: [
5
+ 'eslint:recommended',
6
+ 'plugin:@typescript-eslint/recommended',
7
+ 'eslint-config-airbnb',
8
+ 'plugin:jest/recommended'
9
+ ],
5
10
  plugins: ['@typescript-eslint', 'eslint-plugin-unused-imports'],
6
11
  rules: {
7
12
  'comma-dangle': 'off',
@@ -104,16 +109,9 @@ module.exports = {
104
109
  overrides: [
105
110
  {
106
111
  files: ['**/*.test.{j,t}s?(x)'],
107
- extends: [
108
- 'eslint:recommended',
109
- 'plugin:@typescript-eslint/recommended',
110
- 'eslint-config-airbnb',
111
- 'plugin:jest/recommended'
112
- ],
113
- plugins: ['@typescript-eslint', 'eslint-plugin-unused-imports', 'jest'],
112
+ plugins: ['jest'],
114
113
  env: {
115
- 'jest/globals': true,
116
- jest: true
114
+ 'jest/globals': true
117
115
  },
118
116
  rules: {
119
117
  'jest/no-disabled-tests': 'warn',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@niondigital/eslint-config-base",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "niondigital base eslint config",
5
5
  "keywords": [
6
6
  "eslint",
@@ -46,6 +46,7 @@
46
46
  "eslint-plugin-jest": "^28.8.0",
47
47
  "eslint-plugin-unused-imports": "^4.1.3",
48
48
  "in-publish": "^2.0.1",
49
+ "jest": "^29.7.0",
49
50
  "safe-publish-latest": "^2.0.0",
50
51
  "typescript": "^5.4.5",
51
52
  "typescript-eslint": "^7.11.0"
@@ -57,10 +58,11 @@
57
58
  "eslint-import-resolver-typescript": "^3.6.1",
58
59
  "eslint-plugin-import": "^2.29.1",
59
60
  "eslint-plugin-jest": "^28.8.0",
60
- "eslint-plugin-unused-imports": "^4.1.3"
61
+ "eslint-plugin-unused-imports": "^4.1.3",
62
+ "jest": "*"
61
63
  },
62
64
  "engines": {
63
65
  "node": ">=18.0.0"
64
66
  },
65
- "gitHead": "eae84527664a7010b9f227a0a4be145c10af7821"
67
+ "gitHead": "0bed73a3665fad079059bfd176f6e679ebd8f4a4"
66
68
  }
package/test.test.js ADDED
@@ -0,0 +1,5 @@
1
+ describe('yo', () => {
2
+ it('works', () => {
3
+ expect(1).toBe(1);
4
+ });
5
+ });