@nfq/eslint-config 3.0.2 → 3.1.0

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
+ ## [3.1.0](https://github.com/nfqde/eslint-config-nfq/compare/v3.0.3...v3.1.0) (2023-10-05)
6
+
7
+
8
+ ### Features
9
+
10
+ * **NewRule:** Add new rule ([#53](https://github.com/nfqde/eslint-config-nfq/issues/53)) ([94151e5](https://github.com/nfqde/eslint-config-nfq/commit/94151e5a7f633eb4c0c34456ef03ef60933ac34c))
11
+
12
+ ### [3.0.3](https://github.com/nfqde/eslint-config-nfq/compare/v3.0.2...v3.0.3) (2023-08-23)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **Rules:** Add another exception ([#52](https://github.com/nfqde/eslint-config-nfq/issues/52)) ([55de89f](https://github.com/nfqde/eslint-config-nfq/commit/55de89f018a682864fd6e77b439e2c239c5c904b))
18
+
5
19
  ### [3.0.2](https://github.com/nfqde/eslint-config-nfq/compare/v3.0.1...v3.0.2) (2023-08-23)
6
20
 
7
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nfq/eslint-config",
3
- "version": "3.0.2",
3
+ "version": "3.1.0",
4
4
  "engines": {
5
5
  "node": ">= 12.0.0"
6
6
  },
@@ -51,7 +51,7 @@
51
51
  "devDependencies": {
52
52
  "@babel/core": "^7.22.10",
53
53
  "@babel/eslint-parser": "^7.22.10",
54
- "@nfq/eslint-plugin": "^0.6.1",
54
+ "@nfq/eslint-plugin": "^0.7.1",
55
55
  "@typescript-eslint/eslint-plugin": "^6.4.1",
56
56
  "@typescript-eslint/parser": "^6.4.1",
57
57
  "eslint": "^8.47.0",
package/rules/style.js CHANGED
@@ -5,6 +5,7 @@ const SPACE_INDENT = 4;
5
5
 
6
6
  module.exports = {
7
7
  rules: {
8
+ '@nfq/object-property-newline': 'error', // enforce "same line" or "multiple line" on object properties. https://eslint.org/docs/rules/object-property-newline
8
9
  'array-bracket-newline': ['error', 'consistent'], // object option alternative: { multiline: true, minItems: 3 } enforce line breaks after opening and before closing array brackets https://eslint.org/docs/rules/array-bracket-newline
9
10
  'array-bracket-spacing': ['error', 'never'], // enforce spacing inside array brackets https://eslint.org/docs/rules/array-bracket-spacing
10
11
  'array-element-newline': ['error', 'consistent'], // enforce line breaks between array elements https://eslint.org/docs/rules/array-element-newline
@@ -279,7 +280,7 @@ module.exports = {
279
280
  {multiline: true}
280
281
  ], // enforce line breaks between braces https://eslint.org/docs/rules/object-curly-newline
281
282
  'object-curly-spacing': ['error', 'never'], // require padding inside curly braces https://eslint.org/docs/rules/object-curly-spacing
282
- 'object-property-newline': 'error', // enforce "same line" or "multiple line" on object properties. https://eslint.org/docs/rules/object-property-newline
283
+ 'object-property-newline': 'off', // enforce "same line" or "multiple line" on object properties. https://eslint.org/docs/rules/object-property-newline
283
284
  'one-var': ['off', 'never'], // allow just one var statement per function https://eslint.org/docs/rules/one-var
284
285
  'one-var-declaration-per-line': ['error', 'always'], // require a newline around variable declaration https://eslint.org/docs/rules/one-var-declaration-per-line
285
286
  'operator-assignment': ['error', 'always'], // require assignment operator shorthand where possible or prohibit it entirely https://eslint.org/docs/rules/operator-assignment
@@ -301,19 +302,19 @@ module.exports = {
301
302
  prev: ['const', 'let', 'var']
302
303
  },
303
304
  {
304
- blankLine: "always",
305
- prev: "directive",
306
- next: "*"
305
+ blankLine: 'always',
306
+ prev: 'directive',
307
+ next: '*'
307
308
  },
308
309
  {
309
- blankLine: "any",
310
- prev: "directive",
311
- next: "directive"
310
+ blankLine: 'any',
311
+ prev: 'directive',
312
+ next: 'directive'
312
313
  },
313
314
  {
314
- blankLine: "always",
315
- prev: "*",
316
- next: "return"
315
+ blankLine: 'always',
316
+ prev: '*',
317
+ next: 'return'
317
318
  }
318
319
  ], // Require or disallow padding lines between statements https://eslint.org/docs/rules/padding-line-between-statements
319
320
  'prefer-exponentiation-operator': 'error', // Disallow the use of Math.pow in favor of the ** operator https://eslint.org/docs/rules/prefer-exponentiation-operator
@@ -3,6 +3,7 @@ module.exports = {
3
3
  rules: {
4
4
  '@nfq/no-magic-numbers': 'off',
5
5
  '@typescript-eslint/no-unused-expression': 'off',
6
+ '@typescript-eslint/no-unused-expressions': 'off',
6
7
  'max-len': 'off',
7
8
  'max-lines': 'off',
8
9
  'max-lines-per-function': 'off',