@nihalgonsalves/esconfig 0.2.5 → 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 +3 -1
- package/.eslintrc.react.js +1 -1
- package/CHANGELOG.md +12 -0
- package/eslint-rules-base.js +5 -5
- package/package.json +8 -8
package/.eslintrc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
|
|
3
|
-
/** @type import('eslint-define-config').
|
|
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
|
],
|
package/.eslintrc.react.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
|
|
3
|
-
/** @type import('eslint-define-config').
|
|
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,18 @@
|
|
|
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
|
+
|
|
15
|
+
### [0.2.6](https://github.com/nihalgonsalves/esconfig/compare/v0.2.5...v0.2.6) (2023-07-01)
|
|
16
|
+
|
|
5
17
|
### [0.2.5](https://github.com/nihalgonsalves/esconfig/compare/v0.2.4...v0.2.5) (2023-06-04)
|
|
6
18
|
|
|
7
19
|
### [0.2.4](https://github.com/nihalgonsalves/esconfig/compare/v0.2.3...v0.2.4) (2023-02-28)
|
package/eslint-rules-base.js
CHANGED
|
@@ -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':
|
|
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.
|
|
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",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"prepare": "husky install"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
30
|
-
"@typescript-eslint/parser": "^5.
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "^5.60.1",
|
|
30
|
+
"@typescript-eslint/parser": "^5.60.1",
|
|
31
31
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
32
32
|
"eslint-config-prettier": "^8.8.0",
|
|
33
33
|
"eslint-plugin-import": "^2.27.5",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"eslint-plugin-react-hooks": "^4.6.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@commitlint/cli": "^17.6.
|
|
40
|
-
"@commitlint/config-conventional": "^17.6.
|
|
41
|
-
"eslint": "^8.
|
|
42
|
-
"eslint-define-config": "^1.
|
|
39
|
+
"@commitlint/cli": "^17.6.6",
|
|
40
|
+
"@commitlint/config-conventional": "^17.6.6",
|
|
41
|
+
"eslint": "^8.44.0",
|
|
42
|
+
"eslint-define-config": "^1.21.0",
|
|
43
43
|
"husky": "^8.0.3",
|
|
44
44
|
"prettier": "^2.8.8",
|
|
45
45
|
"standard-version": "^9.5.0",
|
|
46
|
-
"typescript": "^5.1.
|
|
46
|
+
"typescript": "^5.1.6"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"eslint": "^8.42.0",
|