@nihalgonsalves/esconfig 0.2.6 → 0.3.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/.eslintrc.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @ts-check
2
2
 
3
- /** @type import('eslint-define-config').EslintConfig */
3
+ /** @type import('eslint-define-config').ESLintConfig */
4
4
  module.exports = {
5
5
  parser: '@typescript-eslint/parser',
6
6
  plugins: ['@typescript-eslint', 'import'],
@@ -8,9 +8,11 @@ module.exports = {
8
8
  project: './**/tsconfig*.json',
9
9
  },
10
10
  extends: [
11
+ 'eslint:recommended',
11
12
  'airbnb-typescript/base',
12
13
  'plugin:@typescript-eslint/recommended',
13
14
  'plugin:@typescript-eslint/recommended-requiring-type-checking',
15
+ 'plugin:@typescript-eslint/strict',
14
16
  'prettier',
15
17
  'plugin:import/typescript',
16
18
  ],
@@ -1,6 +1,6 @@
1
1
  // @ts-check
2
2
 
3
- /** @type import('eslint-define-config').EslintConfig */
3
+ /** @type import('eslint-define-config').ESLintConfig */
4
4
  module.exports = {
5
5
  extends: ['airbnb-typescript', 'airbnb/hooks', 'prettier'],
6
6
  plugins: ['@typescript-eslint', 'import', 'react'],
package/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
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
+ ## [0.3.0](https://github.com/nihalgonsalves/esconfig/compare/v0.2.6...v0.3.0) (2023-07-01)
6
+
7
+ ### ⚠ BREAKING CHANGES
8
+
9
+ - new @typescript-eslint rules
10
+
11
+ ### Features
12
+
13
+ - turn on @typescript-eslint/strict ([9d675c4](https://github.com/nihalgonsalves/esconfig/commit/9d675c4ba31fb96643850069d6bcb58056e0a9fa))
14
+
5
15
  ### [0.2.6](https://github.com/nihalgonsalves/esconfig/compare/v0.2.5...v0.2.6) (2023-07-01)
6
16
 
7
17
  ### [0.2.5](https://github.com/nihalgonsalves/esconfig/compare/v0.2.4...v0.2.5) (2023-06-04)
@@ -1,4 +1,5 @@
1
1
  // @ts-check
2
+ /* eslint-env node */
2
3
 
3
4
  /** @type import('eslint-define-config').Rules */
4
5
  module.exports = {
@@ -28,16 +29,15 @@ module.exports = {
28
29
  alphabetize: { order: 'asc' },
29
30
  },
30
31
  ],
31
- 'no-unsafe-optional-chaining': 'error',
32
- 'no-void': ['error', { allowAsStatement: true }],
33
32
  '@typescript-eslint/no-unused-vars': [
34
33
  'error',
35
34
  { ignoreRestSiblings: true, argsIgnorePattern: '^_' },
36
35
  ],
37
- '@typescript-eslint/consistent-type-imports': 'error',
36
+ '@typescript-eslint/consistent-type-imports': [
37
+ 'error',
38
+ { fixStyle: 'inline-type-imports' },
39
+ ],
38
40
  '@typescript-eslint/consistent-type-definitions': ['error', 'type'],
39
- '@typescript-eslint/prefer-optional-chain': 'error',
40
- '@typescript-eslint/prefer-nullish-coalescing': 'error',
41
41
  '@typescript-eslint/ban-ts-comment': [
42
42
  'error',
43
43
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nihalgonsalves/esconfig",
3
- "version": "0.2.6",
3
+ "version": "0.3.0",
4
4
  "description": "Shared ECMAScript Config (TS, Lint, Prettier)",
5
5
  "main": "index.js",
6
6
  "repository": "git@github.com:nihalgonsalves/esconfig.git",