@nfq/eslint-config 2.3.2 → 2.4.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.4.1](https://github.com/nfqde/eslint-config-nfq/compare/v2.4.0...v2.4.1) (2023-05-28)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **no-magic-numbers:** Add wait function to exceptions ([#42](https://github.com/nfqde/eslint-config-nfq/issues/42)) ([dc05ae3](https://github.com/nfqde/eslint-config-nfq/commit/dc05ae3bac294007931d30fa677aee0ff47f131d))
11
+
12
+ ## [2.4.0](https://github.com/nfqde/eslint-config-nfq/compare/v2.3.2...v2.4.0) (2023-05-28)
13
+
14
+
15
+ ### Features
16
+
17
+ * **Cypress:** Add rule exeptions for cypress tests ([#41](https://github.com/nfqde/eslint-config-nfq/issues/41)) ([59a5882](https://github.com/nfqde/eslint-config-nfq/commit/59a5882bf16d965f26710eb46ab30104db1ac537))
18
+
5
19
  ### [2.3.2](https://github.com/nfqde/eslint-config-nfq/compare/v2.3.1...v2.3.2) (2023-05-17)
6
20
 
7
21
 
package/index.js CHANGED
@@ -3,6 +3,7 @@ const plugins = require('./config/plugins');
3
3
  const settings = require('./config/settings');
4
4
  const rules = require('./rules');
5
5
  const typescript = require('./rules/typescript');
6
+ const typescriptCypress = require('./rules/typescript-cypress-exeptions');
6
7
 
7
8
  module.exports = {
8
9
  env: {
@@ -13,6 +14,16 @@ module.exports = {
13
14
  extends: rules,
14
15
  globals: global,
15
16
  overrides: [
17
+ {
18
+ files: ['**/*.cy.{ts,cts,mts,tsx}'],
19
+ parser: '@typescript-eslint/parser',
20
+ parserOptions: {project: '**/tsconfig*.json'},
21
+ plugins: ['@typescript-eslint'],
22
+ rules: {
23
+ ...typescript.rules,
24
+ ...typescriptCypress.rules
25
+ }
26
+ },
16
27
  {
17
28
  files: ['**/*.{ts,cts,mts,tsx}'],
18
29
  parser: '@typescript-eslint/parser',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nfq/eslint-config",
3
- "version": "2.3.2",
3
+ "version": "2.4.1",
4
4
  "engines": {
5
5
  "node": ">= 12.0.0"
6
6
  },
@@ -10,7 +10,7 @@ module.exports = {
10
10
  ignore: [0, 1],
11
11
  ignoreArrayIndexes: true,
12
12
  ignoreArrays: true,
13
- ignoreFunctions: ['setTimeout', 'setInterval', 'spacing']
13
+ ignoreFunctions: ['setTimeout', 'setInterval', 'spacing', 'wait']
14
14
  }
15
15
  ], // disallow magic numbers http://eslint.org/docs/rules/no-magic-numbers
16
16
  'accessor-pairs': [
@@ -0,0 +1,13 @@
1
+ /* eslint-disable no-inline-comments */
2
+ module.exports = {
3
+ rules: {
4
+ '@nfq/no-magic-numbers': 'off',
5
+ 'max-len': 'off',
6
+ 'max-lines': 'off',
7
+ 'max-lines-per-function': 'off',
8
+ 'newline-per-chained-call': 'off',
9
+ 'promise/always-return': 'off',
10
+ 'promise/catch-or-return': 'off',
11
+ 'promise/prefer-await-to-then': 'off'
12
+ }
13
+ };