eslint-config-nodebb 1.0.2 → 1.0.3

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 (2) hide show
  1. package/index.js +3 -1
  2. package/package.json +3 -2
package/index.js CHANGED
@@ -1,9 +1,11 @@
1
+ const { configs } = require('@eslint/js');
1
2
  module.exports = [
3
+ configs.recommended,
2
4
  {
3
5
  files: ['**/*.js'],
4
6
  languageOptions: {
5
7
  ecmaVersion: 2020,
6
- sourceType: 'script', // equivalent to your v8 "parserOptions.sourceType"
8
+ sourceType: 'script',
7
9
  globals: {
8
10
  // Node.js globals are implied, no need to redefine unless custom ones are used
9
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-nodebb",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,7 +13,8 @@
13
13
  "./public": "./public.js"
14
14
  },
15
15
  "peerDependencies": {
16
- "eslint": "^9.x"
16
+ "eslint": "^9.x",
17
+ "eslint-plugin-import": "2.x"
17
18
  },
18
19
  "license": "ISC"
19
20
  }