eslint-config-seek 11.1.2 → 11.1.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.
package/base.js CHANGED
@@ -4,6 +4,9 @@ const root = require('find-root')(process.cwd());
4
4
  const OFF = 0;
5
5
  const ERROR = 2;
6
6
 
7
+ const rulesDirPlugin = require('eslint-plugin-rulesdir');
8
+ rulesDirPlugin.RULES_DIR = path.join(__dirname, 'rules');
9
+
7
10
  const baseRules = {
8
11
  // Possible Errors
9
12
  'no-console': ERROR,
@@ -217,9 +220,9 @@ const baseConfig = {
217
220
  env: {
218
221
  '@finsit/cypress/globals': true,
219
222
  },
220
- plugins: ['@finsit/cypress', 'eslint-plugin-local-rules'],
223
+ plugins: ['@finsit/cypress', 'rulesdir'],
221
224
  rules: {
222
- 'local-rules/unsafe-to-chain-command': ERROR,
225
+ 'rulesdir/unsafe-to-chain-command': ERROR,
223
226
  },
224
227
  },
225
228
  ],
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "eslint-config-seek",
3
- "version": "11.1.2",
3
+ "version": "11.1.3",
4
4
  "description": "ESLint configuration used by SEEK",
5
5
  "main": "index.js",
6
6
  "files": [
7
7
  "index.js",
8
8
  "base.js",
9
9
  "extensions.js",
10
- "eslint-local-rules/*"
10
+ "rules/*"
11
11
  ],
12
12
  "repository": {
13
13
  "type": "git",
@@ -30,9 +30,9 @@
30
30
  "eslint-import-resolver-typescript": "3.5.3",
31
31
  "eslint-plugin-import": "^2.27.5",
32
32
  "eslint-plugin-jest": "^27.2.1",
33
- "eslint-plugin-local-rules": "^1.3.2",
34
33
  "eslint-plugin-react": "^7.32.2",
35
34
  "eslint-plugin-react-hooks": "^4.6.0",
35
+ "eslint-plugin-rulesdir": "^0.2.2",
36
36
  "find-root": "^1.1.0"
37
37
  },
38
38
  "devDependencies": {
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- 'unsafe-to-chain-command': require('./unsafe-to-chain-command.js'),
3
- };